[Scummvm-git-logs] scummvm master -> 03f550c7f2c937e7b796daf065870e9ec31a12a1
AndywinXp
noreply at scummvm.org
Sun Apr 9 22:06:16 UTC 2023
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:
03f550c7f2 SCUMM: GUI: Fix lag during main menu rooms
Commit: 03f550c7f2c937e7b796daf065870e9ec31a12a1
https://github.com/scummvm/scummvm/commit/03f550c7f2c937e7b796daf065870e9ec31a12a1
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-04-10T00:06:09+02:00
Commit Message:
SCUMM: GUI: Fix lag during main menu rooms
This enhancement affects those games who use an in-game
room for main menus.
Changed paths:
engines/scumm/scumm.cpp
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index e827ec79273..6707eaf7c16 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -2368,7 +2368,29 @@ Common::Error ScummEngine::go() {
delta = ceil(delta / 3.0) * 3;
}
- // In COMI we put no speed limit while on the main menu.
+ // The following delta value substitutions are aimed at removing
+ // any frame rate limit to main menu rooms in which you can type
+ // custom names for save states. We do this in order to avoid
+ // lag and/or lose keyboard inputs.
+
+ if (_enableEnhancements) {
+ // INDY3:
+ if (_game.id == GID_INDY3 && _currentRoom == 14) {
+ delta = 3;
+ }
+
+ // LOOM (EGA & FM-TOWNS):
+ if (_game.id == GID_LOOM && _game.version == 3 && _currentRoom == 70) {
+ delta = 3; // Enough not to flash the cursor too quickly and to remove lag...
+ }
+
+ // ZAK (FM-Towns):
+ if (_game.id == GID_ZAK && _game.version == 3 && _currentRoom == 50) {
+ delta = 3; // Enough not to flash the cursor too quickly and to remove lag...
+ }
+ }
+
+ // COMI (not marked as enhancement because without this the menu shows issues):
if (_game.version == 8 && _currentRoom == 92) {
delta = 0;
}
More information about the Scummvm-git-logs
mailing list