From 7120d2a00948fa0b420273bafe5a9a95a48b16e6 Mon Sep 17 00:00:00 2001 From: seerge Date: Tue, 11 Apr 2023 19:42:44 +0200 Subject: [PATCH] GPU usage tweak --- app/HardwareMonitor.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/HardwareMonitor.cs b/app/HardwareMonitor.cs index 53aea845..f4169a08 100644 --- a/app/HardwareMonitor.cs +++ b/app/HardwareMonitor.cs @@ -120,9 +120,14 @@ public static class HardwareMonitor } } - public static bool IsUsedGPU(int threshold = 50) + public static bool IsUsedGPU(int threshold = 20) { - return (GetGpuUse() > threshold); + if (GetGpuUse() > threshold) + { + Thread.Sleep(1000); + return (GetGpuUse() > threshold); + } else + return false; } public static void RecreateGpuTemperatureProviderWithDelay()