Files
gtk/gdk
Benjamin Otte 8df6e2cdaf frameclock: Make timings history dynamic
Keep at least 1 second of frame timings.

This is necessary for 2 reasons - a real one and a fun one.

First, with the difference in monitor refresh rates, we can have 48Hz
latops as well as 240Hz high refresh rate monitors. That's a factor of
4, and tracking frame rates in both situations reliably is kind of hard
- either we track over too many frames and the fps take a lot of time to
adjust, or we track too little time and the fps fluctuate wildly.

Second, when benchmarking with GDK_DEBUG=no-vsync with a somewhat fast
renderer (*cough*Vulkan*cough*) frame rates can go into insane dimensions
and only very few frames are actually getting presentation times
reported. So to report accurate frame rates in those cases, we need a
*very* large history that can be 1000s of times larger than the usual
history. And that's just a waste for normal usage.
2024-03-10 10:27:36 +01:00
..
2024-01-21 14:02:08 -05:00
2023-05-09 16:43:35 +01:00
2024-02-27 22:01:41 +03:00
2023-09-21 19:51:11 +02:00
2023-10-11 15:43:01 -04:00
2022-09-23 23:33:42 -04:00
2023-05-15 20:30:38 -04:00
2023-05-15 18:22:37 -04:00
2021-09-24 22:50:29 +02:00
2022-10-05 23:01:28 -04:00
2022-09-23 23:33:42 -04:00
2022-09-23 23:33:42 -04:00
2021-05-22 17:25:26 -04:00
2023-05-01 10:40:26 -04:00
2024-01-30 15:19:34 +01:00
2024-02-07 14:41:28 +00:00
2024-01-07 20:44:05 -05:00
2024-01-16 19:45:53 -05:00
2024-01-07 20:44:05 -05:00
2023-10-19 10:06:53 -04:00
2023-12-22 08:47:47 -05:00
2023-03-14 14:56:42 -04:00
2021-09-24 22:50:29 +02:00
2024-01-07 20:44:05 -05:00
2021-09-10 16:56:42 -05:00
2022-09-24 10:03:37 -04:00
2023-03-31 15:11:10 -04:00
2023-07-31 16:51:03 +02:00
2022-09-23 23:33:42 -04:00
2023-03-27 21:29:08 +02:00
2023-03-31 15:11:10 -04:00
2024-01-21 14:02:08 -05:00
2021-05-22 17:25:26 -04:00
2024-01-07 07:22:52 +01:00
2024-01-07 07:22:52 +01:00
2022-09-23 23:33:42 -04:00
2024-01-21 14:02:08 -05:00
2024-01-07 20:44:05 -05:00
2024-01-07 20:44:05 -05:00
2023-07-30 11:40:09 +03:00
2021-05-22 17:25:26 -04:00
2023-12-20 01:51:46 +01:00
2024-03-02 21:47:49 -05:00