space-wizards / RobustToolbox

Robust multiplayer game engine, used by Space Station 14
https://spacestation14.io
Other
546 stars 405 forks source link

High playercount client LAG solution involving MTU #5320

Closed AJimmyU closed 3 months ago

AJimmyU commented 3 months ago

As this is a problem that probably haunts many players of high playercount servers, I feel like I should make an issue report on how I resolved it on my side.

The problem: On high playercount servers of SS14 (namely Rouny Marine Corps reaching 200 players), I as a player encountered severe network stutter and lag when a giant blob of players came into view, reflecting on the network graph (F3) in yellow and red colors.

My solution: After analyzing packets with wireshark, I noticed that they all reached at most 680-something in length with tiny 8 length packets after and before them. After changing my network adapter MTU (maximum transmission unit) to 600 (from default 1500), all lag and stuttering from high player concentration disappeared and I had silky smooth gameplay since.

I'm not going to pretend to understand why this resolved my issue, but I hope this can be helpful in optimizing the game engine under such circumstances of high player concentrations.

AJimmyU commented 3 months ago

In further testing, it was placebo on my part and issue was not resolved by changing MTU.