From 283aea91db401554707b9776c587f3adaa039295 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 11 May 2024 06:16:12 -0400 Subject: [PATCH] For Qt netplay, reset client frame rate adjustment to normal on disconnect. --- src/drivers/Qt/NetPlay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/Qt/NetPlay.cpp b/src/drivers/Qt/NetPlay.cpp index aed5148a..1fe50b1c 100644 --- a/src/drivers/Qt/NetPlay.cpp +++ b/src/drivers/Qt/NetPlay.cpp @@ -1420,6 +1420,9 @@ int NetPlayClient::Destroy() } traceRegistrationHandle = nullptr; } + // Reset frame throttling to normal incase client was dynamically adjusting frame rate. + FCEUD_SetEmulationSpeed(EMUSPEED_NORMAL); + FCEU_WRAPPER_UNLOCK(); if (consoleWindow != nullptr)