docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WithReliableStageParameters

    WithReliableStageParameters(ref NetworkSettings, int, int, int)

    Sets the ReliableUtility.Parameters in the settings.

    Declaration
    public static ref NetworkSettings WithReliableStageParameters(this ref NetworkSettings settings, int windowSize = 32, int minimumResendTime = 64, int maximumResendTime = 200)
    Parameters
    Type Name Description
    NetworkSettings settings

    Settings to modify.

    int windowSize

    Maximum number in-flight packets per pipeline/connection combination. Default value is 32 but can be increased to 64 at the cost of slightly larger packet headers.

    int minimumResendTime

    Minimum amount of time to wait before a reliable packet is resent if it's not been acknowledged. Default value is 64ms, which should be set lower if all connections are expected to be very good (RTT of 25ms or less).

    int maximumResendTime

    Maximum amount of time to wait before a reliable packet is resent if it's not been acknowledged. Default value is 200ms, which should be set higher if all connections are expected to have a higher latency than that.

    Returns
    Type Description
    NetworkSettings

    Settings structure with modified values.

    In This Article
    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