[Scummvm-cvs-logs] scummvm master -> b631104fd0220190841423614156b76334f59f39
fuzzie
fuzzie at fuzzie.org
Fri Aug 12 21:19:59 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b631104fd0 COMPOSER: Catch up with animations if we're starved of CPU time.
Commit: b631104fd0220190841423614156b76334f59f39
https://github.com/scummvm/scummvm/commit/b631104fd0220190841423614156b76334f59f39
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-08-12T12:16:47-07:00
Commit Message:
COMPOSER: Catch up with animations if we're starved of CPU time.
Changed paths:
engines/composer/composer.cpp
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp
index 11bf8e8..41afc13 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;
More information about the Scummvm-git-logs
mailing list