Skip to content

Commit bc4f538

Browse files
fix: Don't set the maximum frame time of UTP (#2088)
1 parent 891bd67 commit bc4f538

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,19 +1325,16 @@ public void CreateDriver(UnityTransport transport, out NetworkDriver driver,
13251325
#if MULTIPLAYER_TOOLS_1_0_0_PRE_7
13261326
NetworkPipelineStageCollection.RegisterPipelineStage(new NetworkMetricsPipelineStage());
13271327
#endif
1328-
var maxFrameTimeMS = 0;
13291328

13301329
#if UNITY_EDITOR || DEVELOPMENT_BUILD
1331-
maxFrameTimeMS = 100;
13321330
ConfigureSimulator();
13331331
#endif
13341332

13351333
m_NetworkSettings.WithNetworkConfigParameters(
13361334
maxConnectAttempts: transport.m_MaxConnectAttempts,
13371335
connectTimeoutMS: transport.m_ConnectTimeoutMS,
13381336
disconnectTimeoutMS: transport.m_DisconnectTimeoutMS,
1339-
heartbeatTimeoutMS: transport.m_HeartbeatTimeoutMS,
1340-
maxFrameTimeMS: maxFrameTimeMS);
1337+
heartbeatTimeoutMS: transport.m_HeartbeatTimeoutMS);
13411338

13421339
driver = NetworkDriver.Create(m_NetworkSettings);
13431340

0 commit comments

Comments
 (0)