On Wed, Aug 1, 2018 at 9:44 AM, Luca Bacci via gtk-list <gtk-list@gnome.org>
wrote:

> I suggest you use GStreamer, you can build a video by pushing bitmap
> frames and it does everything else for you.
>
> Otherwise, you can animate a DrawingArea. Set up a 60hz timer on your own.
> The timer callback simply calls
> gtk_widget_queue_draw_area()
> <https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-queue-draw-area>.
> Then, on the draw_func of your drawingarea you display the bitmaps, one
> after another.
> That's the simplest solution but can have lower timing quality
>

in GTK3, this is almost certainly not the best way to do this. You want to
use a frame timer based on the refresh/vblank cycle of the monitor.
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to