From b631104fd0220190841423614156b76334f59f39 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Fri, 12 Aug 2011 21:16:47 +0200 Subject: COMPOSER: Catch up with animations if we're starved of CPU time. --- engines/composer/composer.cpp | 6 +++--- 1 file 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; -- cgit v1.2.3