aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-30 21:24:01 -0400
committerMatthew Hoops2011-09-30 21:24:01 -0400
commit9718b8e8036dbdb211e72c6a3d19781d69152230 (patch)
treeb1fc30c89964e65e7cdeba0bfd379899a6622231 /engines
parentbfb2ad4778cc4a2c1df72d59dbd999f51881a297 (diff)
downloadscummvm-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.cpp4
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;
}