Struct PerformanceDataRecord
The performance data record stores all information about the thermal and performance status and delivers it from the provider subsystem to Adaptive Performance for further processing.
Inherited Members
Namespace: UnityEngine .AdaptivePerformance .Provider
Assembly: Unity.AdaptivePerformance.dll
Syntax
public struct PerformanceDataRecord
Properties
ChangeFlags
A bitset of features which indicate if their value changed in the last frame or at startup. Unsupported features will never change. Fields not changing always have valid data as long as its capability is supported.
Declaration
public Feature ChangeFlags { readonly get; set; }
Property Value
Type | Description |
---|---|
Feature | Bitset |
ClusterInfo
Current CPU cluster information information. Includes number of big, medium and small cores use at the application startup.
Declaration
public ClusterInfo ClusterInfo { readonly get; set; }
Property Value
Type | Description |
---|---|
Cluster |
CpuFrameTime
The time in seconds spent by the CPU for rendering the last complete frame.
Has changed when Cpu
Declaration
public float CpuFrameTime { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
CpuPerformanceBoost
The currently active CPU boost state. This is typically true if previously enabled with Enable
Declaration
public bool CpuPerformanceBoost { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
CpuPerformanceLevel
The currently active CPU performance level. This is typically the value previously set with Set
Declaration
public int CpuPerformanceLevel { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
GpuFrameTime
The time in seconds spent by the GPU for rendering the last complete frame.
Has changed when Gpu
Declaration
public float GpuFrameTime { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
GpuPerformanceBoost
The currently active GPU boost state. This is typically true if previously enabled with Enable
Declaration
public bool GpuPerformanceBoost { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
GpuPerformanceLevel
The currently active GPU performance level. This is typically the value previously set with Set
Declaration
public int GpuPerformanceLevel { readonly get; set; }
Property Value
Type | Description |
---|---|
int |
OverallFrameTime
The total time in seconds spent for the frame.
Has changed when Overall
Declaration
public float OverallFrameTime { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
PerformanceLevelControlAvailable
True if =performance levels can currently be controlled manually and aren't controlled by Adaptive Performance or the operating system.
Has changed when Performance
Declaration
public bool PerformanceLevelControlAvailable { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
PerformanceMode
Current Performance mode information.
Declaration
public PerformanceMode PerformanceMode { readonly get; set; }
Property Value
Type | Description |
---|---|
Performance |
TemperatureLevel
The current normalized temperature level in the range of [0.0, 1.0], or -1.0 when not supported or not available right now.
A level of 1.0 means that the device is thermal throttling.
The temperature level has changed when the Temperature
Declaration
public float TemperatureLevel { readonly get; set; }
Property Value
Type | Description |
---|---|
float | Temperature level in the range of [0.0, 1.0] or -1.0 |
TemperatureTrend
The current temperature trend in the range of [-1.0, 1.0] that is a metric of temperature change over time.
The temperature trend is constant at 0.0 in case the feature is not supported.
The temperature trend has changed when Temperature
Declaration
public float TemperatureTrend { readonly get; set; }
Property Value
Type | Description |
---|---|
float | Temperature trend in the range of [-1.0, 1.0] |
WarningLevel
The current warning level as documented in Warning
Declaration
public WarningLevel WarningLevel { readonly get; set; }
Property Value
Type | Description |
---|---|
Warning |
The current warning level |