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. |