Re: GtkGlArea render fps is different than monitor frame rate
- From: Ferenc Engárd <ferenc engard gmail com>
- To: Tarnyko <tarnyko tarnyko net>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkGlArea render fps is different than monitor frame rate
- Date: Sat, 4 Feb 2017 23:54:57 +0100
Thanks for the answers!
I have found the root cause in my code: I realized that GtkGlArea render calls are not called automatically for each screen refresh, and the observed ~40Hz was coming from my program (a timer I already forgot triggered redraw with this rate).
What is the common way to request rendering for every screen refresh? Now I have added a gtk_widget_queue_draw() into my render callback itself; is this the best technique?
With this, I got ~59.2Hz, what seems ok, but also indicates that I have significant frame drops (>1%), even with reniced -19 priority process... As I mentioned, my rendering is very fast, <1ms.
It would be desirable if I could get info about the current frame counter, i.e., similar to one in page_flip_handler's sequence in DRM world, because I would like to use some optimizations based on that. Is it possible to get this info?
Thanks,
Ferenc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]