mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Fixed reset not working when a game was running
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user