Best `network-compress-threshold` for a small SMP when players have bad connections?

Hiya all! I'm making a small SMP server for my friends, ~6 people. Some of them have really bad connections, so I was thinking of lowering the network-compress-threshold so they have a better time. I'm running the server on the OCI Free Tier, so 4 Ampere cores, 16 GiB of RAM. Is network-compression-threshold=64 fine? I'm running Paper. Thanks in advance! <3
21 Replies
Admincraft Meta
Admincraft Meta8mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by mochiiasc#0
Snow Kit
Snow Kit8mo ago
I don't think lowering it will make any of their connections magically work better. I'm also pretty sure that smaller packets aren't frequently sent, but I'm not 100% sure
mochiiasc
mochiiascOP8mo ago
well, compressing the packets beforehand from the server-side would decrease the bandwidth required, wouldnt it? i noticed the default value is 256, but there's no real explanation as to why that specific number
Snow Kit
Snow Kit8mo ago
small packets can't compress efficiently
mochiiasc
mochiiascOP8mo ago
i'm guessing it's arbitrary...?
Snow Kit
Snow Kit8mo ago
iirc small packets also get grouped together into larger packets which will get compressed although I might be making that up
mochiiasc
mochiiascOP8mo ago
wouldn't that increase latency? although i think i heard something like that QoS...?
Snow Kit
Snow Kit8mo ago
no, because minecraft only ticks once every 50ms anyways some packets are flagged as needing to be sent immediately, some aren't
mochiiasc
mochiiascOP8mo ago
i see well why is the option exposed in the first place then instead of being a flag to just disable compression entirely (for proxy servers)?
Snow Kit
Snow Kit8mo ago
because sometimes it matters more or less
mochiiasc
mochiiascOP8mo ago
when i was hosting my smp a year ago i had it set to 64 and it seemed to work fine but i'm not sure if it actually made matters worse
Snow Kit
Snow Kit8mo ago
it'll just increase cpu load from my understanding with no real benefit
mochiiasc
mochiiascOP8mo ago
i had a stable 20tps, no real drops from my experience i dont think the CPU load is an issue in my case its a bit overkill for a server of this magnitude i think haha
Snow Kit
Snow Kit8mo ago
most of the bandwidth minecraft uses is sending chunks, which will always have packets that exceed the compression threshold anyways
mochiiasc
mochiiascOP8mo ago
hmm... maybe ill set it to 128 then (since the ethernet minimum is 64 iirc)
Snow Kit
Snow Kit8mo ago
Realistically, decreasing the view distance would make a bigger difference
mochiiasc
mochiiascOP8mo ago
problem is people want farms that would work on vanilla to work (me too, tbh haha) ^ my friends want both coreprotect AND stuff like zero-tick farms to work so i can't really just use vanilla so im afraid decreasing it would have some unforeseen consequences (breaking some AFK-based designs, maybe)
Snow Kit
Snow Kit8mo ago
I mean, you can just set view distance and simulation distance to the same number Even though going from 12 to 8 doesn't seem like a big difference, it actually halves the chunks the server sends Paper's anti-xray can also reduce network load too
Arthurmeade12
Arthurmeade128mo ago
What kind of math is that? Or could you explain please
Snow Kit
Snow Kit8mo ago
Area of a circle via a radius
Arthurmeade12
Arthurmeade128mo ago
So then it's less than half 64 pi is less than half of 144 pi. No idea there was such a big difference

Did you find this page helpful?