Make the throbber less choppy, by always showing every frame

This commit is contained in:
Ray Strode 2008-05-28 14:33:01 -04:00
parent f288f86539
commit 4bdf9b1761

View file

@ -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),