diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-06-08 13:00:09 -0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-06-09 15:03:56 +0100 |
commit | 6705ce6c6a8c7b490714a15c697c1ad24c9bf8b0 (patch) | |
tree | 7388eae1fad4a5ca87ba67c561a4833170b60779 /clutter/clutter-timeline.h | |
parent | dcd8d2831455f1ae950cbab073f37d0ad36d2295 (diff) | |
download | clutter-6705ce6c6a8c7b490714a15c697c1ad24c9bf8b0.tar.gz |
Move elapsed-time calculations into ClutterTimeline
Instead of calculating a delta in the master clock, and passing that
into each timeline, make each timeline individually responsible for
remembering the last time and computing the delta.
This:
- Fixes a problem where we could spin infinitely processing
timeline-only frames with < 1msec differences.
- Makes timelines consistently start timing on the first frame;
instead of doing different things for the first started timeline
and other timelines.
- Improves accuracy of elapsed time computations by avoiding
accumulating microsecond => millisecond truncation errors.
http://bugzilla.openedhand.com/show_bug.cgi?id=1637
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
Diffstat (limited to 'clutter/clutter-timeline.h')
-rw-r--r-- | clutter/clutter-timeline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter/clutter-timeline.h b/clutter/clutter-timeline.h index 3b372408f..2cb83e7d5 100644 --- a/clutter/clutter-timeline.h +++ b/clutter/clutter-timeline.h @@ -155,8 +155,8 @@ void clutter_timeline_advance_to_marker (ClutterTimeline *timeli const gchar *marker_name); /*< private >*/ -void clutter_timeline_advance_delta (ClutterTimeline *timeline, - guint msecs); +void clutter_timeline_do_tick (ClutterTimeline *timeline, + GTimeVal *tick_time); G_END_DECLS |