diff --git a/app/Fans.cs b/app/Fans.cs index b6930f34..f6125ba2 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -1166,7 +1166,7 @@ namespace GHelper InitGPUPower(); VisualiseGPUSettings(); - modeControl.SetGPUClocks(true); + modeControl.SetGPUClocks(true, true); modeControl.SetGPUPower(); } diff --git a/app/Mode/ModeControl.cs b/app/Mode/ModeControl.cs index ed2d99b2..92c74954 100644 --- a/app/Mode/ModeControl.cs +++ b/app/Mode/ModeControl.cs @@ -342,7 +342,7 @@ namespace GHelper.Mode } - public void SetGPUClocks(bool launchAsAdmin = true) + public void SetGPUClocks(bool launchAsAdmin = true, bool reset = false) { Task.Run(() => { @@ -351,6 +351,8 @@ namespace GHelper.Mode int memory = AppConfig.GetMode("gpu_memory"); int clock_limit = AppConfig.GetMode("gpu_clock_limit"); + if (reset) core = memory = clock_limit = 0; + if (core == -1 && memory == -1 && clock_limit == -1) return; //if ((gpu_core > -5 && gpu_core < 5) && (gpu_memory > -5 && gpu_memory < 5)) launchAsAdmin = false;