Re: GtkGlArea render fps is different than monitor frame rate




Hi Ferenc,

You should be able to take care of what you are after with GTK. The GdkFrameClock works very well for smooth animation. It will get rid of the jitter. Give it a try. You would just need to set up your code a little differently.

It you are interested in a simple animation with a frame clock, there is one at

https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/battery2.c

The drawing is with cairo but the idea is the same. You could render your GL widget in a similar way and the result will be smooth animation if your drawing times are fast.

Eric




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]