Aura tweaks

This commit is contained in:
Serge
2023-05-14 10:28:48 +02:00
parent 608b8571d4
commit fd3a139c47
3 changed files with 17 additions and 8 deletions

View File

@@ -115,10 +115,14 @@ public static class HardwareControl
public static bool IsUsedGPU(int threshold = 20)
{
if (GetGpuUse() > threshold)
int use = GetGpuUse();
Logger.WriteLine("GPU usage: " + use);
if (use > threshold)
{
Thread.Sleep(1000);
return (GetGpuUse() > threshold);
use = GetGpuUse();
Logger.WriteLine("GPU usage: " + use);
return (use > threshold);
}
return false;
}