Skip to content

Commit

Permalink
Fix manual TDP being set too frequent
Browse files Browse the repository at this point in the history
Manual TDP was set every 1000 msec, in practice the SMU cannot handle faster then 1 Hz. Due to timing inaccuracies of the interval, sometimes this would be faster then 1000 msec, resulting odd issues like TDP not applying or worse, BSOD.

Side note, this is also what AutoTDP is set to 1010 msec.
  • Loading branch information
CasperH2O committed Dec 19, 2023
1 parent 25cc827 commit 06129ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HandheldCompanion/Managers/PerformanceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static class PowerMode

public class PerformanceManager : Manager
{
private const short INTERVAL_DEFAULT = 1000; // default interval between value scans
private const short INTERVAL_DEFAULT = 3000; // default interval between value scans
private const short INTERVAL_AUTO = 1010; // default interval between value scans
private const short INTERVAL_DEGRADED = 5000; // degraded interval between value scans
public static int MaxDegreeOfParallelism = 4;
Expand Down Expand Up @@ -1002,4 +1002,4 @@ private void Processor_MiscChanged(string misc, float value)
}

#endregion
}
}

0 comments on commit 06129ea

Please sign in to comment.