Struct PerformanceMetrics
PerformanceMetrics store the current bottleneck, CPU, and GPU levels
Namespace: UnityEngine.AdaptivePerformance
Syntax
public struct PerformanceMetrics
Properties
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 { 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 { get; set; }
Property Value
Type | Description |
---|---|
Int32 | Current GPU performance level |
PerformanceBottleneck
Current performance bottleneck which describes if the program is CPU, GPU, or Application.targetFrameRate
bound.
Declaration
public PerformanceBottleneck PerformanceBottleneck { get; set; }
Property Value
Type | Description |
---|---|
PerformanceBottleneck |