docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AdaptivePerformanceSubsystem.APProvider

    An abstract class to be implemented by providers of this subsystem.

    Inheritance
    object
    SubsystemProvider
    SubsystemProvider<AdaptivePerformanceSubsystem>
    AdaptivePerformanceSubsystem.APProvider
    FailToLoadSubsystem.FailToLoadProvider
    SimulatorAdaptivePerformanceSubsystem.SimulatorProvider
    StandaloneSubsystem.StandaloneProvider
    Inherited Members
    SubsystemProvider<AdaptivePerformanceSubsystem>.TryInitialize()
    SubsystemProvider<AdaptivePerformanceSubsystem>.Start()
    SubsystemProvider<AdaptivePerformanceSubsystem>.Stop()
    SubsystemProvider<AdaptivePerformanceSubsystem>.Destroy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.AdaptivePerformance.Provider
    Assembly: Unity.AdaptivePerformance.dll
    Syntax
    public abstract class AdaptivePerformanceSubsystem.APProvider : SubsystemProvider<AdaptivePerformanceSubsystem>

    Fields

    m_Running

    Returns if the provider is currently running.

    Declaration
    protected bool m_Running
    Field Value
    Type Description
    bool

    Properties

    ApplicationLifecycle

    Application 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.

    Declaration
    public abstract IApplicationLifecycle ApplicationLifecycle { get; }
    Property Value
    Type Description
    IApplicationLifecycle

    Application lifecycle object

    Capabilities

    Bitset of supported features. Does not change after startup.

    Declaration
    public abstract Feature Capabilities { get; set; }
    Property Value
    Type Description
    Feature

    Bitset

    Initialized

    Returns if the subsystem is initialized successfully.

    Declaration
    public abstract bool Initialized { get; set; }
    Property Value
    Type Description
    bool

    Boolean to tell if subsystem was 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 PerformanceLevelControl bit is not set in Capabilities. The returned reference does not change after startup.

    Declaration
    public abstract IDevicePerformanceLevelControl PerformanceLevelControl { get; }
    Property Value
    Type Description
    IDevicePerformanceLevelControl

    Performance level control object

    Stats

    Generates a human readable string of subsystem internal stats. Optional and only used for development.

    Declaration
    public virtual string Stats { get; }
    Property Value
    Type Description
    string

    String with subsystem specific statistics

    Version

    Returns the version of the subsystem implementation. Can be used together with SubsystemDescriptor to identify a subsystem.

    Declaration
    public abstract Version Version { get; }
    Property Value
    Type Description
    Version

    Version number

    running

    Returns if the subsystem is running.

    Declaration
    public bool running { get; }
    Property Value
    Type Description
    bool

    Boolean to tell if subsystem is running.

    Methods

    Update()

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

    Declaration
    public abstract PerformanceDataRecord Update()
    Returns
    Type Description
    PerformanceDataRecord

    Data structure with the most recent performance data.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)