Interface IDevicePerformanceLevelControl
The device performance level control lets you change CPU and GPU levels and informs you about the current levels.
Namespace: UnityEngine .AdaptivePerformance .Provider
Assembly: Unity.AdaptivePerformance.dll
Syntax
public interface IDevicePerformanceLevelControl
Properties
MaxCpuPerformanceLevel
Maximum supported CPU performance level. This should not change after startup.
Unknown
Declaration
int MaxCpuPerformanceLevel { get; }
Property Value
Type | Description |
---|---|
int | Value in the range of [Min |
MaxGpuPerformanceLevel
Maximum supported GPU performance level. This should not change after startup.
Unknown
Declaration
int MaxGpuPerformanceLevel { get; }
Property Value
Type | Description |
---|---|
int | Value in the range of [Min |
Methods
EnableCpuBoost()
Request a CPU performance boost.
If Cpu
Declaration
bool EnableCpuBoost()
Returns
Type | Description |
---|---|
bool | Returns true on success. When this fails, it means that the system took control and does not allow boosts. |
EnableGpuBoost()
Request a GPU performance boost.
If Gpu
Declaration
bool EnableGpuBoost()
Returns
Type | Description |
---|---|
bool | Returns true on success. When this fails, it means that the system took control and does not allow boosts. |
SetPerformanceLevel(ref int, ref int)
Request a performance level change.
If Unknown
Declaration
bool SetPerformanceLevel(ref int cpu, ref int gpu)
Parameters
Type | Name | Description |
---|---|---|
int | cpu | The new performance level. Can be Unknown |
int | gpu | The new performance level. Can be Unknown |
Returns
Type | Description |
---|---|
bool | Returns true on success. When this fails, it means that the system took control of the active performance levels. |