add force set gpu param

This commit is contained in:
Oleg Yermolenko
2023-08-24 14:06:52 +03:00
parent e17ff8fc94
commit 94f0b900de
2 changed files with 5 additions and 1 deletions

View File

@@ -371,4 +371,8 @@ public static class AppConfig
return Is("gpu_fix") || (ContainsModel("GA402X") && IsNotFalse("gpu_fix"));
}
public static bool IsForceSetGPUMode()
{
return Is("gpu_mode_force_set") || ContainsModel("503");
}
}

View File

@@ -201,7 +201,7 @@ namespace GHelper.Gpu
{
bool GpuAuto = AppConfig.Is("gpu_auto");
bool ForceGPU = AppConfig.ContainsModel("503");
bool ForceGPU = AppConfig.IsForceSetGPUMode();
int GpuMode = AppConfig.Get("gpu_mode");