docs.unity3d.com
    Show / Hide Table of Contents

    Interface IPerformanceStatus

    You can use the performance status interface to obtain performance metrics, frame timing, and subscribe to bottleneck and performance event changes.

    Namespace: UnityEngine.AdaptivePerformance
    Syntax
    public interface IPerformanceStatus

    Properties

    FrameTiming

    Allows you to query the latest frame timing measurements.

    Declaration
    FrameTiming FrameTiming { get; }
    Property Value
    Type Description
    FrameTiming

    PerformanceMetrics

    Allows you to query the latest performance metrics.

    Declaration
    PerformanceMetrics PerformanceMetrics { get; }
    Property Value
    Type Description
    PerformanceMetrics

    PerformanceMode

    Allows you to query the latest performance mode.

    Declaration
    PerformanceMode PerformanceMode { get; }
    Property Value
    Type Description
    PerformanceMode

    Events

    PerformanceBoostChangeEvent

    Subscribe to events and get updates when the the current CPU or GPU is boosted.

    Declaration
    event PerformanceBoostChangeHandler PerformanceBoostChangeEvent
    Event Type
    Type Description
    PerformanceBoostChangeHandler

    PerformanceBottleneckChangeEvent

    Subscribe to performance events and get updates when the bottleneck changes.

    Declaration
    event PerformanceBottleneckChangeHandler PerformanceBottleneckChangeEvent
    Event Type
    Type Description
    PerformanceBottleneckChangeHandler

    PerformanceLevelChangeEvent

    Subscribe to events and get updates when the the current CPU or GPU level changes.

    Declaration
    event PerformanceLevelChangeHandler PerformanceLevelChangeEvent
    Event Type
    Type Description
    PerformanceLevelChangeHandler
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023