public void LoadGpuState(int gpuIndex) { if (gpuIndex == NTMinerRoot.GpuAllId) { return; } uint power = adlHelper.GetPowerUsage(gpuIndex); int temp = adlHelper.GetTemperature(gpuIndex); uint speed = adlHelper.GetFanSpeed(gpuIndex); Gpu gpu = _gpus[gpuIndex]; bool isChanged = gpu.Temperature != temp || gpu.PowerUsage != power || gpu.FanSpeed != speed; gpu.Temperature = temp; gpu.PowerUsage = power; gpu.FanSpeed = speed; if (isChanged) { VirtualRoot.RaiseEvent(new GpuStateChangedEvent(gpu)); } }