Struct PerformanceMetrics
PerformanceMetrics store the current bottleneck, CPU, and GPU levels
Namespace: UnityEngine.AdaptivePerformance
Syntax
public struct PerformanceMetrics
Properties
ClusterInfo
Current CPU cluster information information. Updated at application startup.
Declaration
public ClusterInfo ClusterInfo { readonly get; set; }
Property Value
Type | Description |
---|---|
ClusterInfo | CPU cluster information |
CpuPerformanceBoost
CPU boosted.
Declaration
public bool CpuPerformanceBoost { readonly get; set; }
Property Value
Type | Description |
---|---|
Boolean | CPU boosted |
CurrentCpuLevel
Current CPU performance level. This value updates once per frame when changes are applied to CpuLevel. Value in the range [MinCpuPerformanceLevel, MaxCpuPerformanceLevel] or UnknownPerformanceLevel.
Declaration
public int CurrentCpuLevel { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 | Current CPU performance level |
CurrentGpuLevel
Current GPU performance level. This value updates once per frame when changes are applied to GpuLevel. Value in the range [MinGpuPerformanceLevel, MaxGpuPerformanceLevel] or UnknownPerformanceLevel.
Declaration
public int CurrentGpuLevel { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 | Current GPU performance level |
GpuPerformanceBoost
GPU boosted.
Declaration
public bool GpuPerformanceBoost { readonly get; set; }
Property Value
Type | Description |
---|---|
Boolean | GPU boosted |
PerformanceBottleneck
Current performance bottleneck which describes if the program is CPU, GPU, or Application.targetFrameRate
bound.
Declaration
public PerformanceBottleneck PerformanceBottleneck { readonly get; set; }
Property Value
Type | Description |
---|---|
PerformanceBottleneck |