Custom panel refresh rates
James Bigler
bigler at cs.utah.edu
Fri May 11 06:16:23 PDT 2007
I have a wxWidgets application I'm building on windows. I have 3 OpenGL
panels in the main frame for which I'm using Open Scene Graph for the
OpenGL stuff.
In my application I'm able to select an object and move it about. As I
do so I call Refresh() for each of my custom OpenGL panels to get them
to redraw the new updated content.
The problem I'm seeing is that the first of the panels to redraw gets
updates significantly more often than the second which gets more than
the third (a sample ratio is 297/48/21). I tried taking out the code
that does all the rendering and swaps the buffers, but that had no effect.
I traced into Refresh() and it makes some windows API calls
(::RedrawWindow(hWnd, pRect, NULL, flags)). How does Windows determine
which windows to refresh? Is there a way I can get all the windows to
refresh equally?
I'm running on WinXP using wxWidgets 2.6.3 and VS2005 Express Edition.
Thanks,
James
More information about the wx-users
mailing list