[Scummvm-git-logs] scummvm master -> 9633c972c45f1b82f03bd797e76f7babb9112b76

sev- noreply at scummvm.org
Fri Jul 24 14:34:08 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
9633c972c4 DIRECTOR: Yield to the backend during long Lingo repeat loops


Commit: 9633c972c45f1b82f03bd797e76f7babb9112b76
    https://github.com/scummvm/scummvm/commit/9633c972c45f1b82f03bd797e76f7babb9112b76
Author: Toshiyuki Yasuno (yasuno45 at gmail.com)
Date: 2026-07-24T16:34:04+02:00

Commit Message:
DIRECTOR: Yield to the backend during long Lingo repeat loops

On Emscripten, updateScreen() may skip the swap, so force a yield here; a no-op elsewhere.

Assisted-by: Claude Code:claude-opus-4.8

Changed paths:
    engines/director/lingo/lingo.cpp


diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index c22f6d02e67..9c4773c3e77 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -665,6 +665,8 @@ bool Lingo::execute(int targetFrame) {
 			if (g_system->getMillis() - lastUpdate > 20) {
 				lastUpdate = g_system->getMillis();
 				g_system->updateScreen();
+				// On Emscripten, updateScreen() may skip the swap, so force a yield here; a no-op elsewhere.
+				g_system->delayMillis(0);
 			}
 		}
 




More information about the Scummvm-git-logs mailing list