gdk: Use frame time when calculating the tick time for clock updates

This is how GdkFrameClock is meant to be used: the frame time is meant
to be queried from the GdkFrameClock within its frame signals, rather
from the system monotonic time source.

https://bugzilla.gnome.org/show_bug.cgi?id=755357
This commit is contained in:
Philip Withnall 2015-09-17 16:31:11 +01:00
parent 5545b69a8f
commit 9e8da64636

View File

@ -243,7 +243,7 @@ clutter_master_clock_gdk_update (GdkFrameClock *frame_clock,
_clutter_threads_acquire_lock ();
/* Get the time to use for this frame */
master_clock->cur_tick = g_get_monotonic_time ();
master_clock->cur_tick = gdk_frame_clock_get_frame_time (frame_clock);
#ifdef CLUTTER_ENABLE_DEBUG
/* Update the remaining budget */