File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
com.unity.netcode.gameobjects/Runtime/Transports/UTP Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -496,14 +496,11 @@ public NetworkSettings GetDefaultNetworkSettings()
496496 // Latency, jitter and packet loss will be set by the network simulator in the tools
497497 // package. We just need to initialize the settings since otherwise these features will
498498 // not be enabled at all in the driver.
499- settings . WithSimulatorStageParameters (
500- // Assuming a maximum average latency of 50 ms, and that we're somehow able to flush
501- // an entire reliable window every tick, then at 60 ticks per second we need to be
502- // able to store 60 * 0.05 * 64 = 192 packets per connection in the simulator
503- // pipeline stage. Double that since we handle both directions and round it up, and
504- // that's how we get 400 here.
505- maxPacketCount : 400 ,
506- randomSeed : DebugSimulatorRandomSeed ?? ( uint ) System . Diagnostics . Stopwatch . GetTimestamp ( ) ) ;
499+ // Assuming a maximum average latency of 50 ms, and that we're somehow able to flush an entire reliable window every tick,
500+ // then at 60 ticks per second we need to be able to store 60 * 0.05 * 64 = 192 packets per connection in the simulator
501+ // pipeline stage. Double that since we handle both directions and round it up, and
502+ // that's how we get 400 here.
503+ settings . WithSimulatorStageParameters ( maxPacketCount : 400 , randomSeed : DebugSimulatorRandomSeed ?? ( uint ) System . Diagnostics . Stopwatch . GetTimestamp ( ) ) ;
507504 settings . WithNetworkSimulatorParameters ( ) ;
508505#endif
509506
You can’t perform that action at this time.
0 commit comments