[gtk: 3/4] frame clock: schedule in refresh intervals
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 3/4] frame clock: schedule in refresh intervals
- Date: Fri, 5 Jun 2020 18:34:40 +0000 (UTC)
commit f5de46670b4c6bca15a015302e858b72f43498a9
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.
gdk/gdkframeclockidle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c
index 3b54429bf6..1a345c8ec0 100644
--- a/gdk/gdkframeclockidle.c
+++ b/gdk/gdkframeclockidle.c
@@ -559,7 +559,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]