R2Northstar / NorthstarLauncher

Launcher used to modify Titanfall 2 to allow mods to be loaded
MIT License
280 stars 127 forks source link

`net_compresspackets` causes extremely bad stuttering and ping spikes for players as of 1.9.4 #241

Open pcbmaster opened 2 years ago

pcbmaster commented 2 years ago

Since 1.9.4, dedicated servers with net_compresspackets 1 and net_compresspackets_minsize 64 set as mentioned in best practices have extremely poor performance and have issues with stuttering and high ping spikes. Issue is not present in 1.9.3 and earlier.

GeckoEidechse commented 2 years ago

Hmm, that's concerning. What do you use for hosting? Just bare metal Windows or Docker or something else?

pcbmaster commented 2 years ago

Docker, the northstar-dedicated container

wolf109909 commented 2 years ago

I'll have to say I did recommend doing these before and it did works like a charm at the time, I do experience the same glitches reported by users with network stuttering and ping issues now. I will have a look into this. I think windows is still fine, but for docker it's kinda glitchy.

pg9182 commented 2 years ago

Are you both using banlists, and if so, how large are they?

wolf109909 commented 2 years ago

Are you both using banlists, and if so, how large are they?

If you mean by banlist.txt, Mine is empty but NSCN accepts banlist from Masterserver. which is stored in memory only.

pg9182 commented 2 years ago

Are we sure this is 1.9.4 only?

wolf109909 commented 2 years ago

However I did some testings recently, here is some summary of what I have found. First of all, this is not 1.9.4 only to me. players started to report this issue after 1.8 I think. The issue im having now is something related to snapshots I think. having user reported dying will cause huge lag spikes( that keep getting worse after they die more ) and potentially disconnect from the server completely with connection timeout. (which is literally what snapshot thing is about right?) I have my server tickrate set at 60 and max_snapshot at 900, so the config should be fine. Issues like this are reported mostly by specific users that always encounter these problems and can easily reproduce them. eg. Joining random server and it will just happen. I also contacted them and asked about their system details, one said that he tried on different computers/laptops with different network ISP at different place(home/school/celluar data) all have this issue present. But no matter how hard I try its still not reproducable on my side. Speaking of which, I had poor performance and packet loss issues before that plagues my entire server, that everyone can feel the lag including me connecting from LAN. What I did to solve that problem is to turn off memory limit in my docker-compose file.( which is fun cuz i never realize that 2GB is not enough for northstar and things are running in swap, which caused performance issues. )

wolf109909 commented 2 years ago

Disabling the net_compresspackets does not seem to fix my issues with snapshots so far, however I did not properly test it yet, as mentioned that I can't really reproduce the issue myself. I will keep this updated if more user reports are found.

pcbmaster commented 2 years ago

Are you both using banlists, and if so, how large are they?

tiny, maybe 5-6 uids