Class AdaptivePerformanceIndexer
Higher level implementation of Adaptive performance that tracks performance and thermal states of the device and provides them to Adaptive
Inherited Members
Namespace: UnityEngine .AdaptivePerformance
Assembly: Unity.AdaptivePerformance.dll
Syntax
public class AdaptivePerformanceIndexer
Properties
PerformanceAction
Current determined action needed from performance state.
Action Increase will be ignored if Thermal
Declaration
public StateAction PerformanceAction { get; }
Property Value
Type | Description |
---|---|
State |
ThermalAction
Current determined action needed from thermal state.
Action Increase will be ignored if Performance
Declaration
public StateAction ThermalAction { get; }
Property Value
Type | Description |
---|---|
State |
TimeUntilNextAction
Time left until next action.
Declaration
public float TimeUntilNextAction { get; }
Property Value
Type | Description |
---|---|
float |
Methods
DeltaTime()
Returns delta
Declaration
protected virtual float DeltaTime()
Returns
Type | Description |
---|---|
float | delta time |
GetAllRegisteredScalers(ref List<AdaptivePerformanceScaler>)
Returns all scalers independent of their state.
Declaration
public void GetAllRegisteredScalers(ref List<AdaptivePerformanceScaler> scalers)
Parameters
Type | Name | Description |
---|---|---|
List<Adaptive |
scalers | Output where scalers will be written. |
GetAppliedScalers(ref List<AdaptivePerformanceScaler>)
Returns all currently applied scalers.
Declaration
public void GetAppliedScalers(ref List<AdaptivePerformanceScaler> scalers)
Parameters
Type | Name | Description |
---|---|---|
List<Adaptive |
scalers | Output where scalers will be written. |
GetDisabledScalers(ref List<AdaptivePerformanceScaler>)
Returns all currently disabled scalers.
Declaration
public void GetDisabledScalers(ref List<AdaptivePerformanceScaler> scalers)
Parameters
Type | Name | Description |
---|---|---|
List<Adaptive |
scalers | Output where scalers will be written. |
GetUnappliedScalers(ref List<AdaptivePerformanceScaler>)
Returns all currently unapplied scalers.
Declaration
public void GetUnappliedScalers(ref List<AdaptivePerformanceScaler> scalers)
Parameters
Type | Name | Description |
---|---|---|
List<Adaptive |
scalers | Output where scalers will be written. |
UnapplyAllScalers()
Unapply all currently active scalers.
Declaration
public void UnapplyAllScalers()