Skip to content

Commit

Permalink
PEGASUS: Ease off the CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Oct 1, 2011
1 parent bfb2ad4 commit 9718b8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/pegasus/pegasus.cpp
Expand Up @@ -145,8 +145,10 @@ Common::Error PegasusEngine::run() {
_screenDimmer.setBounds(Common::Rect(0, 0, 640, 480));
_screenDimmer.setDisplayOrder(kScreenDimmerOrder);

while (!shouldQuit())
while (!shouldQuit()) {
processShell();
_system->delayMillis(10); // Ease off the CPU
}

return Common::kNoError;
}
Expand Down

0 comments on commit 9718b8e

Please sign in to comment.