diff options
author | Alyssa Milburn | 2011-08-12 21:16:47 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-08-12 21:16:47 +0200 |
commit | b631104fd0220190841423614156b76334f59f39 (patch) | |
tree | b5ca04a1d697e0a4f044a0073474ff8748239c57 /engines/composer | |
parent | d13b96737602c66d61b7fd7d343d8cc48b229073 (diff) | |
download | scummvm-rg350-b631104fd0220190841423614156b76334f59f39.tar.gz scummvm-rg350-b631104fd0220190841423614156b76334f59f39.tar.bz2 scummvm-rg350-b631104fd0220190841423614156b76334f59f39.zip |
COMPOSER: Catch up with animations if we're starved of CPU time.
Diffstat (limited to 'engines/composer')
-rw-r--r-- | engines/composer/composer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp index 11bf8e8900..41afc13184 100644 --- a/engines/composer/composer.cpp +++ b/engines/composer/composer.cpp @@ -125,9 +125,9 @@ Common::Error ComposerEngine::run() { } if (lastDrawTime + frameTime <= thisTime) { - // catch up if we're more than 5 frames behind - if (lastDrawTime + (frameTime * 5) <= thisTime) - lastDrawTime = thisTime - (frameTime * 5); + // catch up if we're more than 2 frames behind + if (lastDrawTime + (frameTime * 2) <= thisTime) + lastDrawTime = thisTime; else lastDrawTime += frameTime; |