Class Constants
Constants used by Adaptive Performance.
Namespace: UnityEngine.AdaptivePerformance
Syntax
public static class Constants
Fields
DefaultAverageFrameCount
The number of past frames that are considered to calculate average frame times.
Declaration
public const int DefaultAverageFrameCount = 100
Field Value
| Type | Description |
|---|---|
| Int32 | 100 |
MaxTemperatureLevel
The maximum temperature level. See TemperatureLevel.
Declaration
public const float MaxTemperatureLevel = 1F
Field Value
| Type | Description |
|---|---|
| Single | 1.0 |
MinCpuPerformanceLevel
The minimum CPU level. Used by CpuLevel and CurrentCpuLevel.
Declaration
public const int MinCpuPerformanceLevel = 0
Field Value
| Type | Description |
|---|---|
| Int32 | 0 |
MinGpuPerformanceLevel
The minimum GPU level. Used by GpuLevel and CurrentGpuLevel.
Declaration
public const int MinGpuPerformanceLevel = 0
Field Value
| Type | Description |
|---|---|
| Int32 | 0 |
MinTemperatureLevel
The minimum temperature level. See TemperatureLevel.
Declaration
public const float MinTemperatureLevel = 0F
Field Value
| Type | Description |
|---|---|
| Single | 0.0 |
UnknownPerformanceLevel
UnknownPerformanceLevel is the value of GpuLevel, CurrentGpuLevel, CpuLevel, and CurrentCpuLevel if the current performance level is unknown. This may happen when AdaptivePerformance is not supported or when the device is in throttling state (see Throttling).
Declaration
public const int UnknownPerformanceLevel = -1
Field Value
| Type | Description |
|---|---|
| Int32 | -1 |