Hardware/ATI/ATIGPU.cs
changeset 24 09ab31bee6bd
parent 15 0e812fe67bac
child 31 c4d1fb76a9e1
     1.1 --- a/Hardware/ATI/ATIGPU.cs	Wed Feb 03 18:10:11 2010 +0000
     1.2 +++ b/Hardware/ATI/ATIGPU.cs	Wed Feb 03 20:35:10 2010 +0000
     1.3 @@ -53,6 +53,7 @@
     1.4      private Sensor coreClock;
     1.5      private Sensor memoryClock;
     1.6      private Sensor coreVoltage;
     1.7 +    private Sensor coreLoad;
     1.8  
     1.9      private List<ISensor> active = new List<ISensor>();
    1.10  
    1.11 @@ -74,6 +75,7 @@
    1.12        this.coreClock = new Sensor("GPU Core", 0, SensorType.Clock, this);
    1.13        this.memoryClock = new Sensor("GPU Memory", 1, SensorType.Clock, this);
    1.14        this.coreVoltage = new Sensor("GPU Core", 0, SensorType.Voltage, this);
    1.15 +      this.coreLoad = new Sensor("GPU Core", 0, SensorType.Load, this);
    1.16        Update();                   
    1.17      }
    1.18  
    1.19 @@ -130,13 +132,16 @@
    1.20          coreClock.Value = 0.01f * adlp.EngineClock;
    1.21          memoryClock.Value = 0.01f * adlp.MemoryClock;
    1.22          coreVoltage.Value = 0.001f * adlp.Vddc;
    1.23 +        coreLoad.Value = adlp.ActivityPercent;
    1.24          ActivateSensor(coreClock);
    1.25          ActivateSensor(memoryClock);
    1.26          ActivateSensor(coreVoltage);
    1.27 +        ActivateSensor(coreLoad);
    1.28        } else {
    1.29          DeactivateSensor(coreClock);
    1.30          DeactivateSensor(memoryClock);
    1.31          DeactivateSensor(coreVoltage);
    1.32 +        DeactivateSensor(coreLoad);
    1.33        }
    1.34      }
    1.35