File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
com.unity.netcode.gameobjects/Runtime/Transports/UTP Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1233,10 +1233,11 @@ public override void Initialize(NetworkManager networkManager = null)
1233
1233
// We also increase the maximum resend timeout since the default one in UTP is very
1234
1234
// aggressive (optimized for latency and low bandwidth). With NGO, it's too low and
1235
1235
// we sometimes notice a lot of useless resends, especially if using Relay. (We can
1236
- // only do this with UTP 2.0 because 1.X doesn't support that parameter.)
1236
+ // only do this with UTP 2.0 because 1.X doesn't support that parameter.)
1237
1237
m_NetworkSettings . WithReliableStageParameters (
1238
1238
windowSize : 64
1239
1239
#if UTP_TRANSPORT_2_0_ABOVE
1240
+ ,
1240
1241
maximumResendTime : m_ProtocolType == ProtocolType . RelayUnityTransport ? 750 : 500
1241
1242
#endif
1242
1243
) ;
You can’t perform that action at this time.
0 commit comments