docs.unity3d.com
    Show / Hide Table of Contents

    Class Performance

    Inheritance
    Object
    Performance
    Namespace: Unity.XR.Oculus
    Syntax
    public static class Performance

    Methods

    TryGetAvailableDisplayRefreshRates(out Single[])

    Get an array of available display frequencies supported by this hardware.

    Declaration
    public static bool TryGetAvailableDisplayRefreshRates(out float[] refreshRates)
    Parameters
    Type Name Description
    Single[] refreshRates
    Returns
    Type Description
    Boolean

    TryGetDisplayRefreshRate(out Single)

    Get the current display frequency.

    Declaration
    public static bool TryGetDisplayRefreshRate(out float refreshRate)
    Parameters
    Type Name Description
    Single refreshRate
    Returns
    Type Description
    Boolean

    TrySetCPULevel(Int32)

    Set the CPU Level for the device

    Declaration
    public static bool TrySetCPULevel(int level)
    Parameters
    Type Name Description
    Int32 level

    Allowable values are integers in the range 0 - 4 (inclusive). A value of 0 is the lowest performance level but is the most power efficient. Please note: as this is a hint, it may not be immediately reflected by the system.

    Returns
    Type Description
    Boolean

    True if we have no errors returned by the native function. We return false when the native function returns a failure condition. Check the log for more information.

    TrySetDisplayRefreshRate(Single)

    Set the current display frequency.

    Declaration
    public static bool TrySetDisplayRefreshRate(float refreshRate)
    Parameters
    Type Name Description
    Single refreshRate
    Returns
    Type Description
    Boolean

    TrySetGPULevel(Int32)

    Set the GPU performance level

    Declaration
    public static bool TrySetGPULevel(int level)
    Parameters
    Type Name Description
    Int32 level

    Allowable values are integers in the range 0 - 4 (inclusive). A value of 0 is the lowest performance level but is the most power efficient. Please note: as this is a hint, it may not be immediately reflected by the system.

    Returns
    Type Description
    Boolean

    True if we have no errors returned by the native function. We return false when the native function returns a failure condition. Check the log for more information.

    Back to top
    Terms of use
    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