Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AdaptivePerformanceSubsystem.APProvider

An abstract class to be implemented by providers of this subsystem.
Read time 1 minuteLast updated 13 days ago

Definition

public abstract class AdaptivePerformanceSubsystem.APProvider : SubsystemProvider<AdaptivePerformanceSubsystem>

Fields

Value

Description

m_RunningReturns if the provider is currently running.

Properties

Property

Description

ApplicationLifecycleApplication lifecycle events to be consumed by subsystem. Can be null if the subsystem does not need special handling on life-cycle events. The returned reference does not change after startup.
CapabilitiesBitset of supported features. Does not change after startup.
InitializedReturns if the subsystem is initialized successfully.
PerformanceLevelControlControl CPU or GPU performance levels of the device. Can be null if the subsystem does not support controlling CPU/GPU performance levels. Is null when the Feature.PerformanceLevelControl bit is not set in AdaptivePerformanceSubsystem.APProvider.Capabilities. The returned reference does not change after startup.
runningReturns if the subsystem is running.
StatsGenerates a human readable string of subsystem internal stats. Optional and only used for development.
VersionReturns the version of the subsystem implementation. Can be used together with SubsystemDescriptor to identify a subsystem.

Methods

Method

Description

UpdateTo be called once per frame. The returned data structure's fields are populated with the latest available data, according to the supported AdaptivePerformanceSubsystem.APProvider.Capabilities.