[Scummvm-git-logs] scummvm master -> b63dc9b56a6caa88d19fdcaf81ca108188b66294

bluegr noreply at scummvm.org
Sun Jun 29 12:42:06 UTC 2025


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:
b63dc9b56a BLADERUNNER: Wait with framelimiter in OuttakePlayer::play()


Commit: b63dc9b56a6caa88d19fdcaf81ca108188b66294
    https://github.com/scummvm/scummvm/commit/b63dc9b56a6caa88d19fdcaf81ca108188b66294
Author: William Bonnaventure (william.bonnaventure at gmail.com)
Date: 2025-06-29T15:42:02+03:00

Commit Message:
BLADERUNNER: Wait with framelimiter in OuttakePlayer::play()

There was a really high CPU usage when starting BladeRunner
for the first time. There was in fact no frame rate limitation
when playing videos. This caused a lot of calls to
_vm->handleEvents(); Just call the wait() method
of FrameLimiter to prevent this.

Changed paths:
    engines/bladerunner/outtake.cpp


diff --git a/engines/bladerunner/outtake.cpp b/engines/bladerunner/outtake.cpp
index 92893afa5d1..77ab69f059c 100644
--- a/engines/bladerunner/outtake.cpp
+++ b/engines/bladerunner/outtake.cpp
@@ -30,6 +30,7 @@
 #include "bladerunner/audio_player.h"
 #include "bladerunner/game_constants.h"
 #include "bladerunner/game_info.h"
+#include "bladerunner/framelimiter.h"
 
 #include "common/debug.h"
 #include "common/events.h"
@@ -160,6 +161,8 @@ void OuttakePlayer::play(const Common::String &name, bool noLocalization, int co
 					break;
 				}
 			}
+		} else {
+			_vm->_framelimiter->wait();
 		}
 	}
 




More information about the Scummvm-git-logs mailing list