[Scummvm-git-logs] scummvm branch-2-5 -> 3c7932d740296dff9e19577192bb5fc7fa8ff137

mgerhardy noreply at scummvm.org
Tue Nov 16 19:05:02 UTC 2021


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:
3c7932d740 TWINE: Game is slow when VSYNC is ON


Commit: 3c7932d740296dff9e19577192bb5fc7fa8ff137
    https://github.com/scummvm/scummvm/commit/3c7932d740296dff9e19577192bb5fc7fa8ff137
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-11-16T20:07:36+01:00

Commit Message:
TWINE: Game is slow when VSYNC is ON

https://bugs.scummvm.org/ticket/13066

I'm still not 100% sure on the speed of the game. I've compared with videos like this one:
  https://www.youtube.com/watch?v=YdTCwx9hAvo

Changed paths:
    engines/twine/twine.cpp


diff --git a/engines/twine/twine.cpp b/engines/twine/twine.cpp
index d56ff0f26c..cf5d110682 100644
--- a/engines/twine/twine.cpp
+++ b/engines/twine/twine.cpp
@@ -708,7 +708,9 @@ void TwinEEngine::processOptionsMenu() {
 }
 
 int32 TwinEEngine::runGameEngine() { // mainLoopInteration
-	FrameMarker frame(this, 0);
+	g_system->delayMillis(2);
+
+	FrameMarker frame(this, 60);
 	_input->enableKeyMap(mainKeyMapId);
 
 	readKeys();
@@ -1022,13 +1024,8 @@ bool TwinEEngine::gameEngineLoop() {
 	_movements->setActorAngle(ANGLE_0, -ANGLE_90, ANGLE_1, &_loopMovePtr);
 
 	while (_quitGame == -1) {
-		uint32 start = g_system->getMillis();
-
-		while (g_system->getMillis() < start + _cfgfile.Fps) {
-			if (runGameEngine()) {
-				return true;
-			}
-			g_system->delayMillis(1);
+		if (runGameEngine()) {
+			return true;
 		}
 		_lbaTime++;
 		if (shouldQuit()) {




More information about the Scummvm-git-logs mailing list