mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Reste GPU clock limit when it's not set in new profile https://github.com/seerge/g-helper/issues/1915
This commit is contained in:
@@ -145,18 +145,6 @@ namespace GHelper.Gpu
|
|||||||
|
|
||||||
if (eco == 1)
|
if (eco == 1)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
if (NvidiaSmi.GetDisplayActiveStatus())
|
|
||||||
{
|
|
||||||
DialogResult dialogResult = MessageBox.Show(Properties.Strings.EnableOptimusText, Properties.Strings.EnableOptimusTitle, MessageBoxButtons.YesNo);
|
|
||||||
if (dialogResult == DialogResult.No)
|
|
||||||
{
|
|
||||||
InitGPUMode();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
HardwareControl.KillGPUApps();
|
HardwareControl.KillGPUApps();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -318,8 +318,7 @@ namespace GHelper.Mode
|
|||||||
int memory = AppConfig.GetMode("gpu_memory");
|
int memory = AppConfig.GetMode("gpu_memory");
|
||||||
int clock_limit = AppConfig.GetMode("gpu_clock_limit");
|
int clock_limit = AppConfig.GetMode("gpu_clock_limit");
|
||||||
|
|
||||||
if (core == -1 && memory == -1 && clock_limit == -1) return;
|
//if (core == -1 && memory == -1 && clock_limit == -1) return;
|
||||||
|
|
||||||
//if ((gpu_core > -5 && gpu_core < 5) && (gpu_memory > -5 && gpu_memory < 5)) launchAsAdmin = false;
|
//if ((gpu_core > -5 && gpu_core < 5) && (gpu_memory > -5 && gpu_memory < 5)) launchAsAdmin = false;
|
||||||
|
|
||||||
if (Program.acpi.DeviceGet(AsusACPI.GPUEco) == 1) { Logger.WriteLine("Clocks: Eco"); return; }
|
if (Program.acpi.DeviceGet(AsusACPI.GPUEco) == 1) { Logger.WriteLine("Clocks: Eco"); return; }
|
||||||
|
|||||||
Reference in New Issue
Block a user