clutter-master-clock: Don't wait for a frame if time goes backwards
authorNeil Roberts <neil@linux.intel.com>
Fri, 5 Feb 2010 21:56:31 +0000 (21:56 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 8 Feb 2010 11:13:55 +0000 (11:13 +0000)
commit24338a7511cd09298695f0a0b51ea6a97fa6786a
tree39fec4ce5e8735dcc898052373f2484c105e2154
parent8ac27e60707b2dfd13ba978b81421423e37ebf98
clutter-master-clock: Don't wait for a frame if time goes backwards

If we aren't syncing to vblank or if the last dispatch didn't cause a
redraw then the master clock will try to wait at least a small amount
of time before dispatching again. However if time goes backwards then
it would not do a dispatch until time catches up again. To fix this it
know just runs a dispatch immediately if time goes backwards.

This is related to Moblin bug #3839. There was a similar fix for this
in 9dc012c07, however that only fixed the case where timelines
wouldn't update. If there are no animations running then the master
clock won't even try updating timelines until time catches up.

http://bugzilla.o-hand.com/show_bug.cgi?id=1974
clutter/clutter-master-clock.c