[Scummvm-cvs-logs] scummvm master -> 59aede6228695af605f447c20f2caaf137559043
sev-
sev at scummvm.org
Sun Feb 21 22:54:24 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
59aede6228 SWORD25: Fix bug #6981: High CPU usage on one core
Commit: 59aede6228695af605f447c20f2caaf137559043
https://github.com/scummvm/scummvm/commit/59aede6228695af605f447c20f2caaf137559043
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-02-21T22:53:26+01:00
Commit Message:
SWORD25: Fix bug #6981: High CPU usage on one core
The game loop is implemented in Lua, and there are no delays.
Now we wait 10ms on each event pulling, as we always do.
Changed paths:
engines/sword25/kernel/kernel_script.cpp
diff --git a/engines/sword25/kernel/kernel_script.cpp b/engines/sword25/kernel/kernel_script.cpp
index 1b7c6a6..40dcbd5 100644
--- a/engines/sword25/kernel/kernel_script.cpp
+++ b/engines/sword25/kernel/kernel_script.cpp
@@ -257,6 +257,7 @@ static int processMessages(lua_State *L) {
// to the closeWanted() opcode; see also the TODO comment in there.
lua_pushbooleancpp(L, !Engine::shouldQuit());
+ g_system->delayMillis(10);
return 1;
}
More information about the Scummvm-git-logs
mailing list