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

    AdaptivePerformanceScale

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

    Declaration
    public static float AdaptivePerformanceScale { get; }
    Property Value
    Type Description
    float

    BatteryLevel

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

    Declaration
    public static float BatteryLevel { get; }
    Property Value
    Type Description
    float

    BatteryTemp

    Gets the current battery temperature in degrees Celsius.

    Declaration
    public static float BatteryTemp { get; }
    Property Value
    Type Description
    float

    CPULevel

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

    Declaration
    public static int CPULevel { get; }
    Property Value
    Type Description
    int

    GPUAppTime

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

    Declaration
    public static float GPUAppTime { get; }
    Property Value
    Type Description
    float

    GPUCompositorTime

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

    Declaration
    public static float GPUCompositorTime { get; }
    Property Value
    Type Description
    float

    GPULevel

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

    Declaration
    public static int GPULevel { get; }
    Property Value
    Type Description
    int

    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.

    Declaration
    public static float MotionToPhoton { get; }
    Property Value
    Type Description
    float

    PowerSavingMode

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

    Declaration
    public static bool PowerSavingMode { get; }
    Property Value
    Type Description
    bool

    RefreshRate

    Reports the display's refresh rate in frames per second

    Declaration
    [Obsolete("RefreshRate is deprecated. Use Performance.TryGetDisplayRefreshRate instead.", false)]
    public static float RefreshRate { get; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2024 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)