Graphics performance under wxGTK

Yuri Borsky borsky at sbor.ru
Mon Mar 5 12:27:39 PST 2007


Hi Olivier!

Just stumbled over this issue too. My draw is all OpenGL though, but the
issue is still the same:
using continuous timer blocks my app. I managed to get app responsive back
by adding these two lines:

while( theApp->Pending() )
    theApp->Dispatch();

at the end of drawing function, and making sure it does not gets called
recursively.
I still think that there should be a better way. theApp is of course my
wxApp.

Best regards
    Yuri


<olivier.corrio at gmail.com> ÐÉÛÅÔ ×
ÓÏÏÂÝÅÎÉÉ:1173103316.167336.80240 at v33g2000cwv.googlegroups.com...
> Hi,
> i have made a application on wxMSW and these application needs to
> refresh up to 30 frame/s. So to test that before finishing it, i did a
> simple timer.
> On wxMSW i can easily make the timer to 20ms and to have easily 30
> frame/s but on wxGTK it blocks the application, and this one can't
> even respond to size event. I use wxDC to draw on panel. Is there a
> way to speed up the application on wxGTK ? I only use DrawText /
> DrawRectangle on it so i don't understand why wxGTK is far more slower
> than wxMSW. Maybe it is because of my timer to test it ?
> Thanks a lot Olivier
>








More information about the wx-users mailing list