NorthstarLauncher icon indicating copy to clipboard operation
NorthstarLauncher copied to clipboard

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

Open pcbmaster opened this issue 2 years ago • 9 comments

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.

pcbmaster avatar Aug 22 '22 17:08 pcbmaster

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

GeckoEidechse avatar Aug 22 '22 23:08 GeckoEidechse

Docker, the northstar-dedicated container

pcbmaster avatar Aug 22 '22 23:08 pcbmaster

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.

wolf109909 avatar Aug 27 '22 07:08 wolf109909

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

pg9182 avatar Aug 29 '22 15:08 pg9182

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.

wolf109909 avatar Aug 29 '22 15:08 wolf109909

Are we sure this is 1.9.4 only?

pg9182 avatar Aug 29 '22 15:08 pg9182

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 avatar Aug 29 '22 15:08 wolf109909

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.

wolf109909 avatar Aug 29 '22 15:08 wolf109909

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

tiny, maybe 5-6 uids

pcbmaster avatar Aug 30 '22 05:08 pcbmaster