From: Ray Strode Date: Wed, 28 May 2008 18:33:01 +0000 (-0400) Subject: Make the throbber less choppy, by always showing every frame X-Git-Tag: 0.1.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bdf9b17618884569dc190279e61f028c4a82aa9;p=thirdparty%2Fplymouth.git Make the throbber less choppy, by always showing every frame --- diff --git a/src/splash-plugins/spinfinity/throbber.c b/src/splash-plugins/spinfinity/throbber.c index af34835e..15f8fbb0 100644 --- a/src/splash-plugins/spinfinity/throbber.c +++ b/src/splash-plugins/spinfinity/throbber.c @@ -161,8 +161,14 @@ on_timeout (throbber_t *throbber) double sleep_time; throbber->now = ply_get_timestamp (); +#ifdef REAL_TIME_ANIMATION animate_at_time (throbber, throbber->now - throbber->start_time); +#else + static double time = 0.0; + time += 1.0 / FRAMES_PER_SECOND; + animate_at_time (throbber, time); +#endif sleep_time = 1.0 / FRAMES_PER_SECOND; sleep_time = MAX (sleep_time - (ply_get_timestamp () - throbber->now),