[mutter] clutter/frame-clock: Don't recalculate refresh_interval_us



commit 8b8690c4054b4b25b5bc620dcf5462a6856ae238
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Mon Dec 13 17:25:35 2021 +0800

    clutter/frame-clock: Don't recalculate refresh_interval_us
    
    It was moved to a central location in ba1490ec9c.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2157>

 clutter/clutter/clutter-frame-clock.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c
index 16098b70f9..df359e573a 100644
--- a/clutter/clutter/clutter-frame-clock.c
+++ b/clutter/clutter/clutter-frame-clock.c
@@ -314,8 +314,7 @@ clutter_frame_clock_compute_max_render_time_us (ClutterFrameClock *frame_clock)
   int64_t max_render_time_us;
   int i;
 
-  refresh_interval_us =
-    (int64_t) (0.5 + G_USEC_PER_SEC / frame_clock->refresh_rate);
+  refresh_interval_us = frame_clock->refresh_interval_us;
 
   if (!frame_clock->got_measurements_last_frame ||
       G_UNLIKELY (clutter_paint_debug_flags &


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]