docs.unity.cn
    Show / Hide Table of Contents

    Enum ClientServerTickRate.FrameRateMode

    Enum to control how the simulation should deal with running at a higher frame rate than simulation rate.

    Namespace: Unity.NetCode
    Syntax
    public enum FrameRateMode

    Fields

    Name Description Value
    Auto

    Use Sleep if running in a server-only build, otherwise use BusyWait.


    0
    BusyWait

    Let the game loop run at full frequency and skip simulation updates if the accumulated delta time is less than the simulation frequency.


    1
    Sleep

    Use Application.TargetFrameRate to limit the game loop frequency to the simulation frequency.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023