[Scummvm-cvs-logs] SF.net SVN: scummvm:[45376] scummvm/trunk/engines/sci/engine/kmisc.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sun Oct 25 21:12:12 CET 2009
Revision: 45376
http://scummvm.svn.sourceforge.net/scummvm/?rev=45376&view=rev
Author: m_kiewitz
Date: 2009-10-25 20:12:12 +0000 (Sun, 25 Oct 2009)
Log Message:
-----------
SCI: kGameIsRestarting - another change, setting back delay back to 30msecs, but no delay during initial 50 calls. This seems to make qfg2 and iceman happy.
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kmisc.cpp
Modified: scummvm/trunk/engines/sci/engine/kmisc.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kmisc.cpp 2009-10-25 20:03:10 UTC (rev 45375)
+++ scummvm/trunk/engines/sci/engine/kmisc.cpp 2009-10-25 20:12:12 UTC (rev 45376)
@@ -57,10 +57,16 @@
s->restarting_flags &= ~SCI_GAME_WAS_RESTARTED;
}
+ // Some games seem to get the duration of main loop initially and then switch of animations for the whole game
+ // based on that (qfg2, iceman). We are now running full speed initially to avoid that.
+ if (s->_lastAnimateCounter < 50) {
+ s->_lastAnimateCounter++;
+ return s->r_acc;
+ }
uint32 curTime = g_system->getMillis();
uint32 duration = curTime - s->_lastAnimateTime;
- uint32 neededSleep = 10;
+ uint32 neededSleep = 30;
if (duration < neededSleep) {
gfxop_sleep(s->gfx_state, neededSleep - duration);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list