forked from AuroraMiddleware/gtk
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 f5de46670b
)
This commit is contained in:
parent
3466bfdf2d
commit
c7c404833f
@ -562,7 +562,7 @@ gdk_frame_clock_paint_idle (void *data)
|
|||||||
if (priv->freeze_count == 0)
|
if (priv->freeze_count == 0)
|
||||||
{
|
{
|
||||||
priv->min_next_frame_time = compute_min_next_frame_time (clock_idle,
|
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);
|
maybe_start_idle (clock_idle, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user