mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
Switched event loop while/do to do/while, to ensure event handling occurs even when the game is under heavy load
svn-id: r43471
This commit is contained in:
parent
a9eb98c218
commit
58ec3e67ef
@ -1738,7 +1738,7 @@ void CruiseEngine::mainLoop(void) {
|
||||
// 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 @@ void CruiseEngine::mainLoop(void) {
|
||||
|
||||
if (_vm->getDebugger()->isAttached())
|
||||
_vm->getDebugger()->onFrame();
|
||||
}
|
||||
} while (currentTick < lastTick + _gameSpeed);
|
||||
} else {
|
||||
manageEvents();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user