Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Constants

Constants used by Adaptive Performance.
Read time 1 minuteLast updated 5 days ago

Definition

public static class Constants

Static Fields

Value

Description

DefaultAverageFrameCountThe number of past frames that are considered to calculate average frame times.
MaxTemperatureLevelThe maximum temperature level. See ThermalMetrics.TemperatureLevel.
MinCpuPerformanceLevelThe minimum CPU level. Used by IDevicePerformanceControl.CpuLevel and PerformanceMetrics.CurrentCpuLevel.
MinGpuPerformanceLevelThe minimum GPU level. Used by IDevicePerformanceControl.GpuLevel and PerformanceMetrics.CurrentGpuLevel.
MinTemperatureLevelThe minimum temperature level. See ThermalMetrics.TemperatureLevel.
UnknownPerformanceLevelUnknownPerformanceLevel is the value of IDevicePerformanceControl.GpuLevel, PerformanceMetrics.CurrentGpuLevel, IDevicePerformanceControl.CpuLevel, and PerformanceMetrics.CurrentCpuLevel if the current performance level is unknown. This can happen when AdaptivePerformance is not supported or when the device is in throttling state (see WarningLevel.Throttling).