single-pass update on the hardware sensors, should reduce CPU usage a bit
This commit is contained in:
@@ -188,9 +188,12 @@ public class Telemetry : IDisposable
|
|||||||
{
|
{
|
||||||
RestartComputerIfNeeded();
|
RestartComputerIfNeeded();
|
||||||
|
|
||||||
cpuHw?.Update();
|
//cpuHw?.Update();
|
||||||
gpuHw?.Update();
|
//gpuHw?.Update();
|
||||||
memHw?.Update();
|
//memHw?.Update();
|
||||||
|
// Single-pass update: update ALL enabled hardware in one loop
|
||||||
|
foreach (var hw in computer.Hardware)
|
||||||
|
hw.Update();
|
||||||
|
|
||||||
float cpu = GetCpuLoadPercent();
|
float cpu = GetCpuLoadPercent();
|
||||||
float cpuTemp = GetCpuTemperaturePercent();
|
float cpuTemp = GetCpuTemperaturePercent();
|
||||||
|
|||||||
Reference in New Issue
Block a user