Maelstrom: Turbo is twice as fast

From 70702cf3df091c4073bbcb0caa2e8ec7c7cbf058 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 27 Nov 2025 14:16:48 -0800
Subject: [PATCH] Turbo is twice as fast

The old turbo without any frame delay is crazy fast. :)
---
 game/main.cpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/game/main.cpp b/game/main.cpp
index eeb71d58..a75fe0e2 100644
--- a/game/main.cpp
+++ b/game/main.cpp
@@ -233,9 +233,7 @@ int main(int argc, char *argv[])
 	while ( gRunning ) {
 		ShowFrame(0);
 
-		if (!gGameOn || !gGameInfo.turbo) {
-			DelayFrame();
-		}
+		DelayFrame();
 	}
 	CleanUp();
 #endif
@@ -525,9 +523,14 @@ MainPanelDelegate::OnActionRunReplay(int index)
 
 void DelayFrame(void)
 {
-	Uint64 ticks;
+	Uint64 ticks, delay = FRAME_DELAY_MS;
+
+	if (gGameInfo.turbo) {
+		// Turbo is 2x as fast
+		delay /= 2;
+	}
 
-	while ( ((ticks=SDL_GetTicks())-gLastDrawn) < FRAME_DELAY_MS ) {
+	while ( ((ticks=SDL_GetTicks())-gLastDrawn) < delay ) {
 		ui->Poll();
 		SDL_Delay(1);
 	}