Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IAdaptivePerformanceModeProvider

Represents an operation mode that applies thermal and performance actions to Adaptive Performance scalers.
Read time 1 minuteLast updated 13 days ago

Definition

public interface IAdaptivePerformanceModeProvider

Remarks

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

CpuUtilizationActionThe action the mode applies in response to the device's CPU utilization data.
GpuUtilizationActionThe action the mode applies in response to the device's GPU utilization data.
ModeNameThe name of the operation mode.
PerformanceActionThe action the mode applies in response to the device's performance state.
ThermalActionThe action the mode applies in response to the device's thermal state.

Methods

Method

Description

ApplyModeActionsApplies the mode's thermal and performance actions to the active scalers. Adaptive Performance calls this method every frame while the mode is active.
OnOperationModeEndCalled when the provider is disabled or replaced by another operation mode provider.
OnOperationModeStartCalled when the provider becomes the active operation mode.