mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Aura tweaks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user