Method SetMaximumResendTime
SetMaximumResendTime(int, NetworkDriver, NetworkPipeline, NetworkConnection)
Modify the maximum resend time used by the reliable pipeline stage for the given pipeline and connection. The default value should be good for most use cases, unless the connection is rather poor (more than 200ms RTT), in which case this value should be increased to be slightly above the RTT (otherwise the pipeline will useless resend packets, increasing bandwidth usage).
Declaration
public static void SetMaximumResendTime(int value, NetworkDriver driver, NetworkPipeline pipeline, NetworkConnection connection)
Parameters
Type | Name | Description |
---|---|---|
int | value | New maximum resend time. |
NetworkDriver | driver | Driver to modify. |
NetworkPipeline | pipeline | Pipeline to modify. |
NetworkConnection | connection | Connection to modify the value for. |