Struct PerformanceMetrics | Adaptive Performance | 2.0.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct PerformanceMetrics

    PerformanceMetrics store the current bottleneck, CPU, and GPU levels

    Namespace: UnityEngine.AdaptivePerformance
    Syntax
    public struct PerformanceMetrics

    Properties

    CurrentCpuLevel

    Current CPU performance level. This value updates once per frame when changes are applied to CpuLevel. Value in the range [MinCpuPerformanceLevel, MaxCpuPerformanceLevel] or UnknownPerformanceLevel.

    Declaration
    public int CurrentCpuLevel { get; set; }
    Property Value
    Type Description
    Int32

    Current CPU performance level

    CurrentGpuLevel

    Current GPU performance level. This value updates once per frame when changes are applied to GpuLevel. Value in the range [MinGpuPerformanceLevel, MaxGpuPerformanceLevel] or UnknownPerformanceLevel.

    Declaration
    public int CurrentGpuLevel { get; set; }
    Property Value
    Type Description
    Int32

    Current GPU performance level

    PerformanceBottleneck

    Current performance bottleneck which describes if the program is CPU, GPU, or Application.targetFrameRate bound.

    Declaration
    public PerformanceBottleneck PerformanceBottleneck { get; set; }
    Property Value
    Type Description
    PerformanceBottleneck
    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