{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class Stats.AdaptivePerformance | Oculus XR Plugin | 4.1.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Stats.AdaptivePerformance

    Provides performance statistics useful for adaptive performance systems. Not every stat is supported on every Oculus platform and will always return a value of 0 if unsupported.

    Inheritance
    object
    Stats.AdaptivePerformance
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.Oculus
    Assembly: solution.dll
    Syntax
    public static class Stats.AdaptivePerformance

    Properties

    Name Description
    AdaptivePerformanceScale

    Returns the recommended amount to scale GPU work in order to maintain framerate. Can be used to adjust viewportScale and textureScale

    BatteryLevel

    Gets the current available battery charge, ranging from 0.0 (empty) to 1.0 (full).

    BatteryTemp

    Gets the current battery temperature in degrees Celsius.

    CPULevel

    Gets the current CPU performance level, integer in the range 0 - 3.

    GPUAppTime

    Reports the time the application spent on the GPU last frame in seconds.

    GPUCompositorTime

    Reports the time the compositor spent on the GPU last frame in seconds.

    GPULevel

    Gets the current GPU performance level, integer in the range 0 - 3.

    MotionToPhoton

    Reports the latency from when the last predicted tracking information was queried by the application to the moment the middle scaline of the target frame is illuminated on the display.

    PowerSavingMode

    If true, the system is running in a reduced performance mode to save power.

    RefreshRate

    Reports the display's refresh rate in frames per second

    In This Article
    Back to top
    Copyright © 2023 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)