ref: c1c8c7f8300ca36c2e482eb116e2095335cc03a0
parent: 01c9115aebef9d1b08a307cdc309368e315f2e74
author: Snesrev <snesrev@protonmail.com>
date: Tue Oct 4 18:57:37 EDT 2022
frameCtr needs to be incremented each frame
--- a/main.c
+++ b/main.c
@@ -385,7 +385,9 @@
bool is_replay = ZeldaRunFrame(inputs);
SDL_UnlockMutex(g_audio_mutex);
- if ((g_turbo ^ (is_replay & g_replay_turbo)) && (frameCtr++ & (g_turbo ? 0xf : 0x7f)) != 0) {
+ frameCtr++;
+
+ if ((g_turbo ^ (is_replay & g_replay_turbo)) && (frameCtr & (g_turbo ? 0xf : 0x7f)) != 0) {
continue;
}