Performance tweaks

This commit is contained in:
Serge
2023-07-26 23:57:20 +02:00
parent b9625f2748
commit 5830220a3d
5 changed files with 38 additions and 49 deletions

View File

@@ -236,6 +236,7 @@ namespace GHelper
{
screenControl.InitScreen();
gpuControl.InitXGM();
PeripheralsProvider.RefreshBatteryForAllDevices();
updateControl.CheckForUpdates();
}
}
@@ -823,14 +824,11 @@ namespace GHelper
battery = Properties.Strings.Charging + ": " + Math.Round((decimal)HardwareControl.batteryRate, 1).ToString() + "W";
if (HardwareControl.gpuTemp > 0)
{
gpuTemp = $": {HardwareControl.gpuTemp}°C";
}
PeripheralsProvider.RefreshBatteryForAllDevices();
Program.settingsForm.BeginInvoke(delegate
{
labelCPUFan.Text = "CPU" + cpuTemp + " " + HardwareControl.cpuFan;
@@ -839,7 +837,6 @@ namespace GHelper
labelMidFan.Text = "Mid " + HardwareControl.midFan;
if (!batteryMouseOver) labelBattery.Text = battery;
VisualizePeripherals();
});
string trayTip = "CPU" + cpuTemp + " " + HardwareControl.cpuFan;