From 0370aa8c9410bff0da2294ec6aedaf6716047853 Mon Sep 17 00:00:00 2001 From: IceStormNG Date: Fri, 1 Mar 2024 18:57:20 +0100 Subject: [PATCH] Fixed reset not working when a game was running --- app/AutoTDP/AutoTDPService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/AutoTDP/AutoTDPService.cs b/app/AutoTDP/AutoTDPService.cs index 23bd8665..3b686522 100644 --- a/app/AutoTDP/AutoTDPService.cs +++ b/app/AutoTDP/AutoTDPService.cs @@ -240,6 +240,11 @@ namespace GHelper.AutoTDP currentGame = null; GameFPSPrevious = double.NaN; GameFPS = 0; + LastAdjustmentsWithoutImprovement = 0; + LastAdjustment = 0.0; + FramerateLog = new List(); + FramerateTargetReachedCounter = 0; + FramerateDipCounter = 0; if (powerLimiter is not null) { @@ -444,6 +449,9 @@ namespace GHelper.AutoTDP framerateSouce = null; } + currentGame = null; + Reset(); + //Kill RTSS instance if we started one RTSSFramerateSource.Stop();