[gtk/gtk-3-24: 8/11] frame clock: schedule in refresh intervals
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 8/11] frame clock: schedule in refresh intervals
- Date: Mon, 15 Jun 2020 10:51:00 +0000 (UTC)
commit c7c404833fe24a1016a8b92552a811b71aea2cce
Author: Yariv Barkan <21448-yarivb users noreply gitlab gnome org>
Date: Sun May 31 00:23:24 2020 +0300
frame clock: schedule in refresh intervals
When the application does not receive "frame drawn" signals we schedule
the clock to run more or less at intervals equal to the last known
refresh interval. In order to minimize clock skew we have to aim for
exact intervals.
(cherry picked from commit f5de46670b4c6bca15a015302e858b72f43498a9)
gdk/gdkframeclockidle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c
index 92168761bf..d93bb7407f 100644
--- a/gdk/gdkframeclockidle.c
+++ b/gdk/gdkframeclockidle.c
@@ -562,7 +562,7 @@ gdk_frame_clock_paint_idle (void *data)
if (priv->freeze_count == 0)
{
priv->min_next_frame_time = compute_min_next_frame_time (clock_idle,
- priv->frame_time);
+ priv->smoothed_frame_time_base);
maybe_start_idle (clock_idle, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]