Hi Eric,

GdkFrameClock does not help with this issue -- I tried it. If your render
time is small enough to not cause problems (frame drops) then calling
gtk_widget_queue_draw()
from the tick callback compared to calling from the draw function itself
does not give a difference. :(

On Mon, Feb 6, 2017 at 1:10 AM, <cecas...@aol.com> wrote:

>
> 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
>
>
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to