Class SimulatorAdaptivePerformanceSubsystem
The subsystem is used for simulating Adaptive Performance in the Editor with the Device Simulator. It is also used for Adaptive Performance tests and to simulate Adaptive Performance when it is not available on the hardware you work with.
Inheritance
Implements
Inherited Members
Namespace: UnityEditor .AdaptivePerformance .Simulator.Editor
Assembly: Unity.AdaptivePerformance.Simulator.Editor.dll
Syntax
[Preserve]
public class SimulatorAdaptivePerformanceSubsystem : AdaptivePerformanceSubsystem, ISubsystem
Properties
AcceptsPerformanceLevel
Required to simulate performance changes. To change AutomaticPerformanceControl, you have to set AcceptsPerformanceLevel to true
. See Performance
Declaration
public bool AcceptsPerformanceLevel { get; set; }
Property Value
Type | Description |
---|---|
bool |
ChangeFlags
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Change
Declaration
public Feature ChangeFlags { get; set; }
Property Value
Type | Description |
---|---|
Feature |
CpuPerformanceBoost
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Cpu
Declaration
public bool CpuPerformanceBoost { get; set; }
Property Value
Type | Description |
---|---|
bool |
CpuPerformanceLevel
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Cpu
Declaration
public int CpuPerformanceLevel { get; set; }
Property Value
Type | Description |
---|---|
int |
GpuPerformanceBoost
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Gpu
Declaration
public bool GpuPerformanceBoost { get; set; }
Property Value
Type | Description |
---|---|
bool |
GpuPerformanceLevel
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Gpu
Declaration
public int GpuPerformanceLevel { get; set; }
Property Value
Type | Description |
---|---|
int |
NextCpuFrameTime
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Cpu
Declaration
public float NextCpuFrameTime { get; set; }
Property Value
Type | Description |
---|---|
float |
NextGpuFrameTime
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Gpu
Declaration
public float NextGpuFrameTime { get; set; }
Property Value
Type | Description |
---|---|
float |
NextOverallFrameTime
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Overall
Declaration
public float NextOverallFrameTime { get; set; }
Property Value
Type | Description |
---|---|
float |
PerformanceMode
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Performance
Declaration
public PerformanceMode PerformanceMode { get; set; }
Property Value
Type | Description |
---|---|
Performance |
TemperatureLevel
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Temperature
Declaration
public float TemperatureLevel { get; set; }
Property Value
Type | Description |
---|---|
float |
TemperatureTrend
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Temperature
Declaration
public float TemperatureTrend { get; set; }
Property Value
Type | Description |
---|---|
float |
WarningLevel
This property is a wrapper around an internal PerformanceDataRecord object. For more details, see Warning
Declaration
public WarningLevel WarningLevel { get; set; }
Property Value
Type | Description |
---|---|
Warning |
Methods
SetClusterInfo(ClusterInfo)
Helper for the device simulator to change cluster info settings. Those settings are usually changed by a device directly.
Declaration
public void SetClusterInfo(ClusterInfo clusterInfo)
Parameters
Type | Name | Description |
---|---|---|
Cluster |
clusterInfo | New Cluster Info values. |