docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ReliableStageParameterExtensions

    Extensions for ReliableUtility.Parameters.

    Inheritance
    object
    ReliableStageParameterExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Networking.Transport.Utilities
    Assembly: Unity.Networking.Transport.dll
    Syntax
    public static class ReliableStageParameterExtensions

    Methods

    GetReliableStageParameters(ref NetworkSettings)

    Gets the ReliableUtility.Parameters in the settings.

    Declaration
    public static ReliableUtility.Parameters GetReliableStageParameters(this ref NetworkSettings settings)
    Parameters
    Type Name Description
    NetworkSettings settings

    Settings to get parameters from.

    Returns
    Type Description
    ReliableUtility.Parameters

    Structure containing the reliable parameters.

    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 © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)