clutter: Reduce default clutter_max_render_time_constant_us to 1000

Now that dynamic max render time uses a new algorithm and takes dispatch
lateness into account, this seems worth a shot. We'll see how it works
out in the wild.

The net result compared to before these changes is still slightly higher
(by ~0.5 ms) minimum latency for me, as measured by
weston-presentation-shm. It should be less vulnerable to frame drops
though.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2500>
This commit is contained in:
Michel Dänzer 2022-07-08 12:52:03 +02:00 committed by Marge Bot
parent ca341ef1ea
commit a16df485db

View File

@ -93,7 +93,7 @@ guint clutter_pick_debug_flags = 0;
/* A constant added to heuristic max render time to account for variations /* A constant added to heuristic max render time to account for variations
* in the estimates. * in the estimates.
*/ */
int clutter_max_render_time_constant_us = 2000; int clutter_max_render_time_constant_us = 1000;
#ifdef CLUTTER_ENABLE_DEBUG #ifdef CLUTTER_ENABLE_DEBUG
static const GDebugKey clutter_debug_keys[] = { static const GDebugKey clutter_debug_keys[] = {