ドキュメント

Unity Engine

Download Unity

Unity Engine

SimulatorAdaptivePerformanceSubsystem.SimulatorProvider

The Simulator Provider controls Subsystems needed to access Adaptive Performance features and the systems lifecycle.
読み終わるまでの所要時間 3 分最終更新 12日前

Definition

public class SimulatorAdaptivePerformanceSubsystem.SimulatorProvider : AdaptivePerformanceSubsystem.APProvider, IApplicationLifecycle, IDevicePerformanceLevelControl, IEnergyUsageProvider

Constructors

Constructor

Description

SimulatorProvider()Main constructor, used to initialize the provider capabilities.

Properties

Property

Description

AcceptsPerformanceLevelRequired to simulate performance changes. To change AutomaticPerformanceControl, you have to set AcceptsPerformanceLevel to
true
. See PerformanceDataRecord.PerformanceLevelControlAvailable.
ApplicationLifecycleReturns the application lifecycle.
CapabilitiesReturns the capabilities of the provider.
ChangeFlagsThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.ChangeFlags.
CpuPerformanceBoostThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.CpuPerformanceBoost.
CpuPerformanceLevelThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.CpuPerformanceLevel.
GpuPerformanceBoostThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.GpuPerformanceBoost.
GpuPerformanceLevelThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.GpuPerformanceLevel.
InitializedReturns the initialization status of the system.
MaxCpuPerformanceLevelSee IDevicePerformanceLevelControl.MaxCpuPerformanceLevel.
MaxGpuPerformanceLevelSee IDevicePerformanceLevelControl.MaxGpuPerformanceLevel.
NextCpuFrameTimeThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.CpuFrameTime.
NextGpuFrameTimeThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.GpuFrameTime.
NextOverallFrameTimeThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.OverallFrameTime.
PerformanceLevelControlReturns the performance level control.
PerformanceModeThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.PerformanceMode.
StatsReturns the stats of the provider.
TemperatureLevelThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.TemperatureLevel.
TemperatureTrendThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.TemperatureTrend.
VersionThe current version of the Device Simulator Adaptive Performance Subsystem. Matches the version of the Adaptive Performance Subsystem. See AdaptivePerformanceSubsystem.Version.
WarningLevelThis property is a wrapper around an internal PerformanceDataRecord object. For more details, see PerformanceDataRecord.WarningLevel.

Methods

Method

Description

ApplicationPauseCallback that is called when the application goes into a pause state.
ApplicationResumeCallback that is called when the application resumes after being paused.
DestroyCleanup when the subsystem object is destroyed.
EnableCpuBoostEnable the boost mode for the CPU.
EnableGpuBoostEnable the boost mode for the GPU.
SetClusterInfoHelper for the device simulator to change cluster info settings. Those settings are usually changed by a device directly.
SetEnergyUsageHelper for the device simulator to change energy usage settings. Those settings are usually reported by a device directly.
SetPerformanceLevelSet the performance level for both the CPU and GPU.
StartPerform initialization of the subsystem.
StartEnergyUsageTrackingSimulated energy-usage tracking. Re-publishes the current readings so that PerformanceMetrics.EnergyUsage reflects them after (re)starting.
StopStop running the subsystem.
StopEnergyUsageTrackingSimulated energy-usage tracking stop. No-op in the simulator.
TryInitializeSimulator subsystem try to initialize initializes successfully.
UpdateUpdate current results and flags.

Inheritance