From 7931400b4422772b559a4ad19c7f6eb014a77a61 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Mon, 27 Nov 2017 12:33:25 -0600 Subject: [PATCH] Revert "Make SoundSync mutually exclusive with DynamicRateControl in GTK+ port. Disable S9xContinueUpdate." This reverts commit 63394cd26a99dd34e8c5dadf6e9145736a6cb228. --- gtk/src/gtk_display.cpp | 1 + gtk/src/gtk_s9x.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/src/gtk_display.cpp b/gtk/src/gtk_display.cpp index be61f93c..ff8add01 100644 --- a/gtk/src/gtk_display.cpp +++ b/gtk/src/gtk_display.cpp @@ -1901,6 +1901,7 @@ S9xReinitDisplay (void) bool8 S9xContinueUpdate (int width, int height) { + S9xDeinitUpdate (width, height); return TRUE; } diff --git a/gtk/src/gtk_s9x.cpp b/gtk/src/gtk_s9x.cpp index 306b2aab..fea7ddb4 100644 --- a/gtk/src/gtk_s9x.cpp +++ b/gtk/src/gtk_s9x.cpp @@ -503,7 +503,7 @@ S9xSyncSpeedFinish (void) gettimeofday (&now, NULL); - if (Settings.SoundSync && !Settings.DynamicRateControl) + if (Settings.SoundSync) { while (!S9xSyncSound ()) { @@ -611,7 +611,7 @@ S9xSyncSpeed (void) ++next_frame_time.tv_usec; } - if (Settings.SkipFrames == AUTO_FRAMERATE && (!Settings.SoundSync || Settings.DynamicRateControl)) + if (Settings.SkipFrames == AUTO_FRAMERATE && !Settings.SoundSync) { lag = TIMER_DIFF (now, next_frame_time); @@ -641,7 +641,7 @@ S9xSyncSpeed (void) } else { - limit = (Settings.SoundSync && !Settings.DynamicRateControl) ? 1 : Settings.SkipFrames + 1; + limit = Settings.SoundSync ? 1 : Settings.SkipFrames + 1; IPPU.SkippedFrames++; IPPU.RenderThisFrame = 0;