diff options
author | Matthew Hoops | 2011-09-30 21:24:01 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-30 21:24:01 -0400 |
commit | 9718b8e8036dbdb211e72c6a3d19781d69152230 (patch) | |
tree | b1fc30c89964e65e7cdeba0bfd379899a6622231 /engines | |
parent | bfb2ad4778cc4a2c1df72d59dbd999f51881a297 (diff) | |
download | scummvm-rg350-9718b8e8036dbdb211e72c6a3d19781d69152230.tar.gz scummvm-rg350-9718b8e8036dbdb211e72c6a3d19781d69152230.tar.bz2 scummvm-rg350-9718b8e8036dbdb211e72c6a3d19781d69152230.zip |
PEGASUS: Ease off the CPU
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pegasus/pegasus.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index 8ecab93b4f..71e4ca0f4d 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -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; } |