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! <321 Replies
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
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
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
small packets can't compress efficiently
i'm guessing it's arbitrary...?
iirc small packets also get grouped together into larger packets which will get compressed
although I might be making that up
wouldn't that increase latency?
although i think i heard something like that
QoS...?
no, because minecraft only ticks once every 50ms anyways
some packets are flagged as needing to be sent immediately, some aren't
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)?
because sometimes it matters more or less
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
it'll just increase cpu load from my understanding
with no real benefit
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
most of the bandwidth minecraft uses is sending chunks, which will always have packets that exceed the compression threshold anyways
hmm... maybe ill set it to 128 then (since the ethernet minimum is 64 iirc)
Realistically, decreasing the view distance would make a bigger difference
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)
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
What kind of math is that? Or could you explain please
Area of a circle via a radius
So then it's less than half
64 pi is less than half of 144 pi. No idea there was such a big difference