interface in UnityEngine.AdaptivePerformance
Represents an operation mode that applies thermal and performance actions to Adaptive Performance scalers.
Implement this interface to create a custom operation mode, then assign an instance to IOperationModeStatus.CurrentOperationalModeProvider to make it the active mode. Adaptive Performance calls IAdaptivePerformanceModeProvider.ApplyModeActions every frame while the provider is active. Assigning a custom provider replaces the strategy for the active operation mode but doesn't change the operation mode itself, so the provider uses the scaler settings of whichever mode the Indexer is currently in.
| Property | Description |
|---|---|
| CpuUtilizationAction | The action the mode applies in response to the device's CPU utilization data. |
| GpuUtilizationAction | The action the mode applies in response to the device's GPU utilization data. |
| ModeName | The name of the operation mode. |
| PerformanceAction | The action the mode applies in response to the device's performance state. |
| ThermalAction | The action the mode applies in response to the device's thermal state. |
| Method | Description |
|---|---|
| ApplyModeActions | Applies the mode's thermal and performance actions to the active scalers. Adaptive Performance calls this method every frame while the mode is active. |
| OnOperationModeEnd | Called when the provider is disabled or replaced by another operation mode provider. |
| OnOperationModeStart | Called when the provider becomes the active operation mode. |