From 00e60e72ba7f4ea745ac8e0f1278a23679d614cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Wed, 23 Nov 2022 10:30:13 +0100 Subject: [PATCH] Retry Vangogh GPU detection 3 times --- PowerControl/Program.cs | 7 ++++++- RELEASE.md | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/PowerControl/Program.cs b/PowerControl/Program.cs index ea63f2a..e871e62 100644 --- a/PowerControl/Program.cs +++ b/PowerControl/Program.cs @@ -20,7 +20,12 @@ namespace PowerControl if (Settings.Default.EnableExperimentalFeatures) { - Instance.WithGlobalMutex(1000, () => VangoghGPU.Detect()); + for (int i = 0; !VangoghGPU.IsSupported; i++) + { + Instance.WithGlobalMutex(1000, () => VangoghGPU.Detect()); + if (VangoghGPU.IsSupported) + Thread.Sleep(300); + } } // To customize application configuration such as set high DPI settings or default font, diff --git a/RELEASE.md b/RELEASE.md index 5cc948d..02371f8 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -12,5 +12,6 @@ - Do not use WinRing0 for GPU detection to control CPU/GPU frequency - Reset `LibreHardware` on system resume to fix battery bug - Reset FPS limit if anything related to resolution changes +- Retry Vangogh GPU detection 3 times If you found it useful buy me [Ko-fi](https://ko-fi.com/ayufan).