[Scummvm-cvs-logs] SF.net SVN: scummvm:[43471] scummvm/trunk/engines/cruise/cruise_main.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Mon Aug 17 13:51:42 CEST 2009
Revision: 43471
http://scummvm.svn.sourceforge.net/scummvm/?rev=43471&view=rev
Author: dreammaster
Date: 2009-08-17 11:51:42 +0000 (Mon, 17 Aug 2009)
Log Message:
-----------
Switched event loop while/do to do/while, to ensure event handling occurs even when the game is under heavy load
Modified Paths:
--------------
scummvm/trunk/engines/cruise/cruise_main.cpp
Modified: scummvm/trunk/engines/cruise/cruise_main.cpp
===================================================================
--- scummvm/trunk/engines/cruise/cruise_main.cpp 2009-08-17 11:49:07 UTC (rev 43470)
+++ scummvm/trunk/engines/cruise/cruise_main.cpp 2009-08-17 11:51:42 UTC (rev 43471)
@@ -1738,7 +1738,7 @@
// Delay for the specified amount of time, but still respond to events
bool skipEvents = false;
- while (currentTick < lastTick + _gameSpeed) {
+ do {
g_system->delayMillis(10);
currentTick = g_system->getMillis();
@@ -1749,7 +1749,7 @@
if (_vm->getDebugger()->isAttached())
_vm->getDebugger()->onFrame();
- }
+ } while (currentTick < lastTick + _gameSpeed);
} else {
manageEvents();
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