[Scummvm-git-logs] scummvm master -> 11aa622e6f609f6c4ede9a3fd55c488a9343c341
sev-
noreply at scummvm.org
Sat Jun 18 09:27:09 UTC 2022
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:
11aa622e6f DIRECTOR: Do not hog CPU
Commit: 11aa622e6f609f6c4ede9a3fd55c488a9343c341
https://github.com/scummvm/scummvm/commit/11aa622e6f609f6c4ede9a3fd55c488a9343c341
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-06-18T11:26:49+02:00
Commit Message:
DIRECTOR: Do not hog CPU
Changed paths:
engines/director/director.cpp
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index f4bec6576f6..92e316fb22f 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -217,14 +217,6 @@ Common::Error DirectorEngine::run() {
bool loop = true;
while (loop) {
-#if defined(__EMSCRIPTEN__)
- // If SDL_HINT_EMSCRIPTEN_ASYNCIFY is enabled, SDL pauses the application and gives
- // back control to the browser automatically by calling emscripten_sleep via SDL_Delay.
- // Without this the page would completely lock up.
- _system->delayMillis(0);
-#endif
-
-
if (_stage->getCurrentMovie())
processEvents();
@@ -247,6 +239,7 @@ Common::Error DirectorEngine::run() {
}
draw();
+ _system->delayMillis(10);
}
return Common::kNoError;
More information about the Scummvm-git-logs
mailing list