Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AdaptivePerformanceIndexer

Higher level implementation of Adaptive performance that tracks performance and thermal states of the device and provides them to AdaptivePerformanceScaler which use the information to increase or decrease performance levels. System acts as AdaptivePerformanceScaler manager and handles the lifetime of the scalers in the scenes.
Read time 1 minuteLast updated 7 days ago

Definition

public class AdaptivePerformanceIndexer

Properties

Property

Description

CpuUtilizationActionCurrent determined action needed based on normalized CPU utilization. Derived from frame timing, bottleneck, and thermal data when no provider supplies the value directly.
GpuUtilizationActionCurrent determined action needed based on normalized GPU utilization. Derived from frame timing, bottleneck, and thermal data when no provider supplies the value directly.
IdleScaleThe current idle scale factor that battery mode derives from the player's idle time.
IdleTimeThe number of seconds the player has been idle, as tracked by battery mode.
PerformanceActionCurrent determined action needed from performance state. Action StateAction.Increase will be ignored if AdaptivePerformanceIndexer.ThermalAction is decreasing.
ThermalActionCurrent determined action needed from thermal state. Action StateAction.Increase will be ignored if AdaptivePerformanceIndexer.PerformanceAction is decreasing.
TimeUntilNextActionTime left until next action.

Methods

Method

Description

DeltaTimeReturns _deltaTime only and is primarily encapsulated for tests.
GetAllRegisteredScalersReturns all scalers independent of their state.
GetAppliedScalersReturns all currently applied scalers.
GetDisabledScalersReturns all currently disabled scalers.
GetUnappliedScalersReturns all currently unapplied scalers.
UnapplyAllScalersUnapply all currently active scalers.