Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

IAdaptivePerformanceModeProvider

interface in UnityEngine.AdaptivePerformance

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Properties

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.

Public Methods

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.