docs.unity3d.com
    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
    • 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