mirror of
https://github.com/jkocon/g-helper.git
synced 2026-04-10 13:00:26 +02:00
GPU usage tweak
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user