Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AdaptivePerformanceSubsystem

A class to define a provider subsystem for Adaptive Performance.
Read time 2 minutesLast updated 14 days ago

Definition

public class AdaptivePerformanceSubsystem : AdaptivePerformanceSubsystemBase<AdaptivePerformanceSubsystem, AdaptivePerformanceSubsystemDescriptor, AdaptivePerformanceSubsystem.APProvider>, ISubsystem

Constructors

Constructor

Description

AdaptivePerformanceSubsystem()Main constructor, not used in the subsystem specifically.

Properties

Property

Description

ApplicationLifecycleLifecycle of the Subsystem.
CapabilitiesBitset of supported features. Does not change after startup.
EnergyUsageControlPer-subsystem energy tracking control, or null if the provider doesn't support Feature.EnergyUsage. The returned reference doesn't 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.Capabilities. The returned reference does not change after startup.
StatsGenerates a human readable string of subsystem internal stats. Optional and only used for development.
VersionReturns the version of the subsystem implementation. Typically 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.Capabilities.

Classes

Class

Description

AdaptivePerformanceSubsystem.APProviderAn abstract class to be implemented by providers of this subsystem.

Inheritance