frameclock: Keep more history
authorBenjamin Otte <otte@redhat.com>
Tue, 9 May 2023 12:38:24 +0000 (14:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 9 May 2023 14:29:41 +0000 (16:29 +0200)
Not all frames get timing info with GDK_DEBUG=no-vsync, so make sure
that even when we render tons of frames, the one frame that does get
timing info is still there when the timing info arrives.

I set it to 128 from 16 now.
This is roughly good enough to go to 5000fps from on a 60Hz monitor.

gdk/gdkframeclock.c

index 656849b411a9ab32656aac2f2e424ec11594e71b..9787be59b97565508bfa63b1a146e844665d81f8 100644 (file)
@@ -79,7 +79,7 @@ static guint signals[LAST_SIGNAL];
 
 static guint fps_counter;
 
-#define FRAME_HISTORY_MAX_LENGTH 16
+#define FRAME_HISTORY_MAX_LENGTH 128
 
 struct _GdkFrameClockPrivate
 {