[Scummvm-cvs-logs] SF.net SVN: scummvm:[52432] scummvm/trunk/engines/sci/engine/kevent.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Aug 29 02:58:27 CEST 2010
Revision: 52432
http://scummvm.svn.sourceforge.net/scummvm/?rev=52432&view=rev
Author: thebluegr
Date: 2010-08-29 00:58:27 +0000 (Sun, 29 Aug 2010)
Log Message:
-----------
SCI: Fixed bug #3037874 - "SCI1.1: High cpu usage when a textbox is displayed"
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kevent.cpp
Modified: scummvm/trunk/engines/sci/engine/kevent.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kevent.cpp 2010-08-29 00:39:33 UTC (rev 52431)
+++ scummvm/trunk/engines/sci/engine/kevent.cpp 2010-08-29 00:58:27 UTC (rev 52432)
@@ -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 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list