From ad66265260de01122000d92c32e6fd76f6a0d4da Mon Sep 17 00:00:00 2001 From: Robin Cerny Date: Mon, 19 Jan 2026 03:15:03 +0100 Subject: [PATCH] single-pass update on the hardware sensors, should reduce CPU usage a bit --- analog_system_monitor_dotnet/Telemetry.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/analog_system_monitor_dotnet/Telemetry.cs b/analog_system_monitor_dotnet/Telemetry.cs index cdd7984..d5d18da 100644 --- a/analog_system_monitor_dotnet/Telemetry.cs +++ b/analog_system_monitor_dotnet/Telemetry.cs @@ -188,9 +188,12 @@ public class Telemetry : IDisposable { RestartComputerIfNeeded(); - cpuHw?.Update(); - gpuHw?.Update(); - memHw?.Update(); + //cpuHw?.Update(); + //gpuHw?.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 cpuTemp = GetCpuTemperaturePercent();