mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01: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()
|
public static void RecreateGpuTemperatureProviderWithDelay()
|
||||||
|
|||||||
Reference in New Issue
Block a user