mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
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.
This commit is contained in:
parent
91af8a705b
commit
f5de46670b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user