docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Constants

    Constants used by Adaptive Performance.

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

    Fields

    DefaultAverageFrameCount

    The number of past frames that are considered to calculate average frame times.

    Declaration
    public const int DefaultAverageFrameCount = 100
    Field Value
    Type Description
    int

    100

    MaxTemperatureLevel

    The maximum temperature level. See TemperatureLevel.

    Declaration
    public const float MaxTemperatureLevel = 1
    Field Value
    Type Description
    float

    1.0

    MinCpuPerformanceLevel

    The minimum CPU level. Used by CpuLevel and CurrentCpuLevel.

    Declaration
    public const int MinCpuPerformanceLevel = 0
    Field Value
    Type Description
    int

    0

    MinGpuPerformanceLevel

    The minimum GPU level. Used by GpuLevel and CurrentGpuLevel.

    Declaration
    public const int MinGpuPerformanceLevel = 0
    Field Value
    Type Description
    int

    0

    MinTemperatureLevel

    The minimum temperature level. See TemperatureLevel.

    Declaration
    public const float MinTemperatureLevel = 0
    Field Value
    Type Description
    float

    0.0

    UnknownPerformanceLevel

    UnknownPerformanceLevel is the value of GpuLevel, CurrentGpuLevel, CpuLevel, and CurrentCpuLevel if the current performance level is unknown. This can happen when AdaptivePerformance is not supported or when the device is in throttling state (see Throttling).

    Declaration
    public const int UnknownPerformanceLevel = -1
    Field Value
    Type Description
    int

    -1

    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)