GNOME Bugzilla – Bug 693934
Add gdk_frame_clock_begin/end_updating()
Last modified: 2013-02-18 16:15:58 UTC
Add an API to start or stop continually updating the frame clock. This is a slight convenience for applcations and avoids the problem of getting one more frame run after an animation stops, but the primary motivation for this is because it looks like we might have to use timeBeginPeriod()/timeEndPeriod() on Windows to get reasonably accurate timing, and for that we'll need to know if there is an animation running.
Created attachment 236337 [details] [review] Add gdk_frame_clock_begin/end_updating()
Created attachment 236599 [details] [review] win32: Predict presentation time This just copies what X11 does sans the WM sync protocol stuff.
Created attachment 236600 [details] [review] win32: Request higher precision timers during animations The default windows timer resolution is 16msec, which is to little for fluent animations (say at 60Hz). So, while a paint clock is active we temporarily raise the timer resolution to 1 msec.
first patch and a version of the last pushed, the second isn't really right as it has no way to sync with the real presentation time.