IDevicePerformanceLevelControl
The device performance level control lets you change CPU and GPU levels and informs you about the current levels.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Interface
- Namespace: UnityEngine.AdaptivePerformance.Provider
- Assembly: UnityEngine.AdaptivePerformanceModule
public interface IDevicePerformanceLevelControl
Properties
Property | Description |
|---|---|
| MaxCpuPerformanceLevel | Maximum supported CPU performance level. This should not change after startup. Constants.UnknownPerformanceLevel in case performance levels are not supported. Value in the range of [Constants.MinCpuPerformanceLevel, 10]. |
| MaxGpuPerformanceLevel | Maximum supported GPU performance level. This should not change after startup. Constants.UnknownPerformanceLevel in case performance levels are not supported. Value in the range of [Constants.MinGpuPerformanceLevel, 10]. |
Methods
Method | Description |
|---|---|
| EnableCpuBoost | Request a CPU performance boost. |
| EnableGpuBoost | Request a GPU performance boost. |
| SetEnergyEfficiencyMode | Hint the subsystem to bias device-level configurations toward energy efficiency over peak performance (e.g. Android's power-efficiency hint on the ADPF hint session). If Feature.EnergyEfficiencyMode is not supported (see AdaptivePerformanceSubsystem.Capabilities), this function is ignored and returns false. |
| SetPerformanceLevel | Request a performance level change. If Constants.UnknownPerformanceLevel is passed, the subsystem picks the level to be used. |