AdaptivePerformanceSubsystem
A class to define a provider subsystem for Adaptive Performance.
Read time 2 minutesLast updated 12 days ago
Definition
- Type: Class
- Namespace: UnityEngine.AdaptivePerformance.Provider
- Assembly: UnityEngine.AdaptivePerformanceModule
- Inherits from: AdaptivePerformanceSubsystemBase<AdaptivePerformanceSubsystem, AdaptivePerformanceSubsystemDescriptor, APProvider>
- Implements: ISubsystem
public class AdaptivePerformanceSubsystem : AdaptivePerformanceSubsystemBase<AdaptivePerformanceSubsystem, AdaptivePerformanceSubsystemDescriptor, AdaptivePerformanceSubsystem.APProvider>, ISubsystem
Constructors
Constructor | Description |
|---|---|
| AdaptivePerformanceSubsystem() | Main constructor, not used in the subsystem specifically. |
Properties
Property | Description |
|---|---|
| ApplicationLifecycle | Lifecycle of the Subsystem. |
| Capabilities | Bitset of supported features. Does not change after startup. |
| Initialized | Returns if the subsystem is initialized successfully. |
| PerformanceLevelControl | Control 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. |
| Stats | Generates a human readable string of subsystem internal stats. Optional and only used for development. |
| Version | Returns the version of the subsystem implementation. Can be used together with SubsystemDescriptor to identify a subsystem. |
Methods
Method | Description |
|---|---|
| Update | To 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.APProvider | An abstract class to be implemented by providers of this subsystem. |