From 650df5a16c601bfb442d8e0355acbfdab3d4c99e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 6 Oct 2012 00:12:53 +0300 Subject: TOLTECS: Remove redundant screen updates --- engines/toltecs/script.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/engines/toltecs/script.cpp b/engines/toltecs/script.cpp index 03a2b66088..caa7410462 100644 --- a/engines/toltecs/script.cpp +++ b/engines/toltecs/script.cpp @@ -183,10 +183,7 @@ void ScriptInterpreter::setMainScript(uint slotIndex) { } void ScriptInterpreter::runScript() { - uint32 lastScreenUpdate = 0; - while (!_vm->shouldQuit()) { - if (_vm->_movieSceneFlag) _vm->_mouseButton = 0; @@ -217,17 +214,7 @@ void ScriptInterpreter::runScript() { byte opcode = readByte(); execOpcode(opcode); - - // Update the screen at semi-regular intervals, else the mouse - // cursor will be jerky. - uint32 now = _vm->_system->getMillis(); - if (now < lastScreenUpdate || now - lastScreenUpdate > 10) { - _vm->_system->updateScreen(); - lastScreenUpdate = _vm->_system->getMillis(); - } - } - } byte ScriptInterpreter::readByte() { -- cgit v1.2.3