News for hackers. Stuff that matters.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by AgentK20 on Tuesday June 27, 2023 @12:55AM (#36489063)
Keep in mind that the entities-in-viewing-range scales exponentially with players. 10 players in view distance is (at 20 ticks per second) 180 packets per second *per player*, or ~2k pps on the server. 100 players, ~200k pps. 1000 players, ~20m pps. All on a single Java thread, hence why Minecraft typically performs better on high clock-speed low(er) core count CPUs. Folia splits the load for the world into multiple threads, but only on a per-region basis, with each 512x512 being (potentially) on a different thread.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by creatonez on Tuesday June 27, 2023 @01:15AM (#36489159)
> Folia splits the load for the world into multiple threads, but only on a per-region basis, with each 512x512 being (potentially) on a different thread.

A small correction - Folia regions are not Minecraft regions. They don't necessarily align with the 512x512 region grid, and can take different shapes and sizes depending on what the regionizing algorithm is doing. The term "bubble" is used in some of the documentation and may be a more accurate description.

Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by AgentK20 on Tuesday June 27, 2023 @02:19AM (#36489491)
Ohhh, very interesting. I'll admit I only took a cursory glance at the code when it was first announced on the Paper discord since I'm not as much involved with MC anymore, but that's good to know. I'll need to dive in again one of these days.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by ocelotpotpie on Tuesday June 27, 2023 @02:36AM (#36489602)
Come back to the Discord and pepper away with questions!
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by doctor_phil on Tuesday June 27, 2023 @01:34AM (#36489254)
That scaling sounds quadratic and not exponential.