Skip to content

Commit

Permalink
increase interval between SetTDPLimit on RequestTDP()
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie authored and CasperH2O committed Apr 8, 2024
1 parent 4df18e6 commit e61aa50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HandheldCompanion/Managers/PerformanceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ private static async void cpuWatchdog_Elapsed(object? sender, ElapsedEventArgs e
// AMD reduces TDP by 10% when OS power mode is set to Best power efficiency
if (currentPowerMode == OSPowerMode.BetterBattery)
TDP = (int)Math.Truncate(TDP * 0.9);

// AMD doesn't have MSR
if (type == PowerType.MsrSlow || type == PowerType.MsrFast)
continue;
}
else if (processor is IntelProcessor)
{
Expand Down Expand Up @@ -745,7 +749,7 @@ private static async void RequestTDP(double[] values, bool immediate = false)
if (immediate)
{
processor.SetTDPLimit((PowerType)idx, values[idx], immediate);
await Task.Delay(12);
await Task.Delay(20);
}
}
}
Expand Down

0 comments on commit e61aa50

Please sign in to comment.