Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AdaptivePerformanceSubsystemBase<TSubsystem, TSubsystemDescriptor, TProvider>

Base class for subsystems to create your custom provider subsystem to deliver data from your provider to Adaptive Performance.
Read time 1 minuteLast updated 13 days ago

Definition

public abstract class AdaptivePerformanceSubsystemBase<TSubsystem, TSubsystemDescriptor, TProvider> : SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>, ISubsystem where TSubsystem : SubsystemWithProvider, new() where TSubsystemDescriptor : SubsystemDescriptorWithProvider where TProvider : SubsystemProvider<TSubsystem>

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 AdaptivePerformanceSubsystemBase<TSubsystem, TSubsystemDescriptor, TProvider>.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. 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 AdaptivePerformanceSubsystemBase<TSubsystem, TSubsystemDescriptor, TProvider>.Capabilities.

Inheritance