Fixed reset not working when a game was running

This commit is contained in:
IceStormNG
2024-03-01 18:57:20 +01:00
parent f1198440d4
commit 0370aa8c94

View File

@@ -240,6 +240,11 @@ namespace GHelper.AutoTDP
currentGame = null; currentGame = null;
GameFPSPrevious = double.NaN; GameFPSPrevious = double.NaN;
GameFPS = 0; GameFPS = 0;
LastAdjustmentsWithoutImprovement = 0;
LastAdjustment = 0.0;
FramerateLog = new List<double>();
FramerateTargetReachedCounter = 0;
FramerateDipCounter = 0;
if (powerLimiter is not null) if (powerLimiter is not null)
{ {
@@ -444,6 +449,9 @@ namespace GHelper.AutoTDP
framerateSouce = null; framerateSouce = null;
} }
currentGame = null;
Reset();
//Kill RTSS instance if we started one //Kill RTSS instance if we started one
RTSSFramerateSource.Stop(); RTSSFramerateSource.Stop();