Class Constants | Adaptive Performance | 2.0.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class Constants

    Constants used by Adaptive Performance.

    Inheritance
    Object
    Constants
    Namespace: UnityEngine.AdaptivePerformance
    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
    Int32

    100

    MaxTemperatureLevel

    The maximum temperature level. See TemperatureLevel.

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

    1.0

    MinCpuPerformanceLevel

    The minimum CPU level. Used by CpuLevel and CurrentCpuLevel.

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

    0

    MinGpuPerformanceLevel

    The minimum GPU level. Used by GpuLevel and CurrentGpuLevel.

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

    0

    MinTemperatureLevel

    The minimum temperature level. See TemperatureLevel.

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

    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
    Int32

    -1

    In This Article
    • Fields
      • DefaultAverageFrameCount
      • MaxTemperatureLevel
      • MinCpuPerformanceLevel
      • MinGpuPerformanceLevel
      • MinTemperatureLevel
      • UnknownPerformanceLevel
    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