Merge pull request #1170 from Oleg52/force-set-gpu-mode

add force set gpu param
This commit is contained in:
Serge
2023-08-24 15:03:15 +02:00
committed by GitHub
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")); 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 GpuAuto = AppConfig.Is("gpu_auto");
bool ForceGPU = AppConfig.ContainsModel("503"); bool ForceGPU = AppConfig.IsForceSetGPUMode();
int GpuMode = AppConfig.Get("gpu_mode"); int GpuMode = AppConfig.Get("gpu_mode");