From 9718b8e8036dbdb211e72c6a3d19781d69152230 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 30 Sep 2011 21:24:01 -0400 Subject: PEGASUS: Ease off the CPU --- engines/pegasus/pegasus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') 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; } -- cgit v1.2.3