Interface IDevicePerformanceControl
Namespace: UnityEngine.AdaptivePerformance
Syntax
public interface IDevicePerformanceControl
Properties
AutomaticPerformanceControl
Declaration
bool AutomaticPerformanceControl { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
CpuLevel
The requested CPU performance level. Higher levels typically allow CPU cores to run at higher clock speeds. The consequence is that thermal warnings and throttling may happen sooner when the device cannot sustain high clock speeds. Changes are applied once per frame. We recommended to set the CpuLevel as low as possible to save power. The valid value range is [MinCpuPerformanceLevel, MaxCpuPerformanceLevel].
Declaration
int CpuLevel { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The requested CPU performance level |
GpuLevel
The requested GPU performance level. Higher levels typically allow the GPU to run at higher clock speeds. The consequence is that thermal warnings and throttling may happen sooner when the device cannot sustain high clock speeds. Changes are applied once per frame. We recommended to set the GpuLevel as low as possible to save power. The valid value range is [MinGpuPerformanceLevel, MaxGpuPerformanceLevel].
Declaration
int GpuLevel { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The requested GPU performance level |
MaxCpuPerformanceLevel
The maximum valid CPU performance level you use with CpuLevel. The minimum value returned is MinCpuPerformanceLevel. This value does not change after startup is complete.
Declaration
int MaxCpuPerformanceLevel { get; }
Property Value
Type | Description |
---|---|
Int32 |
MaxGpuPerformanceLevel
The maximum valid GPU performance level you use with GpuLevel. The minimum value returned is MinGpuPerformanceLevel. This value does not change after startup is complete.
Declaration
int MaxGpuPerformanceLevel { get; }
Property Value
Type | Description |
---|---|
Int32 |
PerformanceControlMode
The current PerformanceControlMode. PerformanceControlMode is affected by AutomaticPerformanceControl.
Declaration
PerformanceControlMode PerformanceControlMode { get; }
Property Value
Type | Description |
---|---|
PerformanceControlMode | The current PerformanceControlMode |