Confused about wxWindow::Update() vs Refresh()

Michael Hieke michael.hieke at elwi-elektronik.de
Tue Feb 19 01:59:02 PST 2008


Paul Melis wrote:

> Thanks, 2.8 did the trick. The application now also noticeably
> processes the input faster. I guess this must be because the progress
> callbacks now update the progress bar widget immediately without
> starting a new event loop (like the previous version using wxYield
> did).

If you notice this it probably means that you update the progress bar 
way too often.  More than 10..30 times a second does not make sense, as 
the user can't process that information anyway.  Limit the progress bar 
update rate accordingly, and the processing speed might improve even more...

Thanks

-- 
Michael Hieke





More information about the wx-users mailing list