Optimized mode switch from Ultimate

This commit is contained in:
Serge
2023-07-01 11:46:46 +02:00
parent c4adb1eb8b
commit ec7350cf5c
3 changed files with 15 additions and 11 deletions

View File

@@ -145,7 +145,7 @@ namespace GHelper.Gpu
if (status == 0 && eco == 1 && hardWay) RestartGPU();
await Task.Delay(TimeSpan.FromMilliseconds(100));
settings.Invoke(delegate
{
InitGPUMode();
@@ -173,7 +173,7 @@ namespace GHelper.Gpu
}
public bool AutoGPUMode()
public bool AutoGPUMode(bool optimized = false)
{
bool GpuAuto = AppConfig.Is("gpu_auto");
@@ -186,8 +186,11 @@ namespace GHelper.Gpu
int eco = Program.acpi.DeviceGet(AsusACPI.GPUEco);
int mux = Program.acpi.DeviceGet(AsusACPI.GPUMux);
if (mux == 0) // GPU in Ultimate, ignore
if (mux == 0)
{
if (optimized) SetGPUMode(AsusACPI.GPUModeStandard);
return false;
}
else
{