saladin
26-06-2007 14:14:46
Hi,
In my project I'm using wxPython to create a window and then pass the handle to ogre as its render window just like in the demos. All the resizing, redrawing and events handling are done with wxPython. wxTimer class raises an event which tell the scene to update as well as calling renderOneFrame() by a certain interval.
It works well but I noticed I can't seem to get a frame rate higher than 65 fps even when the polygon count is really low. On the same machine if I let python-ogre's mainloop render the same scene, the fps is around 300.
I tried changing the timer interval to smaller. However that did nothing in terms of helping the scene to update more often ... it only changed the value associated with the timer event. Tried turning of v-sync in my video card settings too. That didn't help either.
Could it be that a wxWindow cannot redraw more often than 60 times per second?
I'm wondering if anyone can shine some light on this.
In my project I'm using wxPython to create a window and then pass the handle to ogre as its render window just like in the demos. All the resizing, redrawing and events handling are done with wxPython. wxTimer class raises an event which tell the scene to update as well as calling renderOneFrame() by a certain interval.
It works well but I noticed I can't seem to get a frame rate higher than 65 fps even when the polygon count is really low. On the same machine if I let python-ogre's mainloop render the same scene, the fps is around 300.
I tried changing the timer interval to smaller. However that did nothing in terms of helping the scene to update more often ... it only changed the value associated with the timer event. Tried turning of v-sync in my video card settings too. That didn't help either.
Could it be that a wxWindow cannot redraw more often than 60 times per second?
I'm wondering if anyone can shine some light on this.