mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-20 15:30:28 +01:00
Improve DeadZones
This commit is contained in:
parent
c02f7053f8
commit
8e582f372e
|
|
@ -47,7 +47,7 @@ namespace FanControl
|
|||
HardwareType = HardwareType.Cpu,
|
||||
SensorName = "Core (Tctl/Tdie)",
|
||||
SensorType = SensorType.Temperature,
|
||||
ValueDeadZone = 2.0f,
|
||||
ValueDeadZone = 0.0f,
|
||||
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
|
||||
{
|
||||
{
|
||||
|
|
@ -71,7 +71,7 @@ namespace FanControl
|
|||
HardwareType = HardwareType.GpuAmd,
|
||||
SensorName = "GPU Core",
|
||||
SensorType = SensorType.Temperature,
|
||||
ValueDeadZone = 2.0f,
|
||||
ValueDeadZone = 0.0f,
|
||||
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
|
||||
{
|
||||
{
|
||||
|
|
@ -94,7 +94,7 @@ namespace FanControl
|
|||
HardwareType = HardwareType.Storage,
|
||||
SensorName = "Temperature",
|
||||
SensorType = SensorType.Temperature,
|
||||
ValueDeadZone = 1.0f,
|
||||
ValueDeadZone = 0.5f,
|
||||
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
|
||||
{
|
||||
{
|
||||
|
|
@ -119,7 +119,7 @@ namespace FanControl
|
|||
HardwareType = HardwareType.Battery,
|
||||
SensorName = "Temperature",
|
||||
SensorType = SensorType.Temperature,
|
||||
ValueDeadZone = 1.0f,
|
||||
ValueDeadZone = 0.0f,
|
||||
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
|
||||
{
|
||||
{
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ namespace FanControl
|
|||
if (!newValue.HasValue || newValue <= 0.0)
|
||||
return false;
|
||||
|
||||
if (AllSamples.Count == 0 || Math.Abs(AllSamples.Last() - newValue.Value) > ValueDeadZone)
|
||||
if (AllSamples.Count == 0 || Math.Abs(AllSamples.Last() - newValue.Value) >= ValueDeadZone)
|
||||
{
|
||||
AllSamples.Add(newValue.Value);
|
||||
while (AllSamples.Count > AvgSamples)
|
||||
|
|
|
|||
Loading…
Reference in a new issue