diff options
author | Filippos Karapetis | 2010-08-29 00:58:27 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-08-29 00:58:27 +0000 |
commit | b0b4ddcc5232485100fd42dcd14d164a8d2eaeac (patch) | |
tree | 19f31a33915bbe69621b408f0ada79faef4e282a /engines | |
parent | 9096848e4b0411daa3cd54a677bafc13e2312082 (diff) | |
download | scummvm-rg350-b0b4ddcc5232485100fd42dcd14d164a8d2eaeac.tar.gz scummvm-rg350-b0b4ddcc5232485100fd42dcd14d164a8d2eaeac.tar.bz2 scummvm-rg350-b0b4ddcc5232485100fd42dcd14d164a8d2eaeac.zip |
SCI: Fixed bug #3037874 - "SCI1.1: High cpu usage when a textbox is displayed"
svn-id: r52432
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kevent.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp index 3395811700..29447d99a1 100644 --- a/engines/sci/engine/kevent.cpp +++ b/engines/sci/engine/kevent.cpp @@ -23,6 +23,8 @@ * */ +#include "common/system.h" + #include "sci/sci.h" #include "sci/engine/features.h" #include "sci/engine/state.h" @@ -162,6 +164,11 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) { g_sci->_soundCmd->updateSci0Cues(); } + // Wait a bit here, so that the CPU isn't maxed out when the game + // is waiting for user input (e.g. when showing text boxes) - bug + // #3037874. + g_system->delayMillis(10); + return s->r_acc; } |