News for hackers. Stuff that matters.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by viraptor on Tuesday June 27, 2023 @05:01AM (#36490540)
> Each player loads in a lot of living entities (monsters/animals/...) and block entities (furnaces, redstone, ...) that all need to update.

Sure, but that list of entities in the area is close to static (apart from crazy redstone magic). One would expect them to be pooled and not have many allocations for each tick.

Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by ghosty141 on Tuesday June 27, 2023 @05:11AM (#36490610)
But each has to do a lot of stuff. People on such big servers build farms with hundreds of mobs dropping thousands of items which then go through redstone sorting systems.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by zimpenfish on Tuesday June 27, 2023 @05:20AM (#36490668)
> People on such big servers build farms

~Normally, yeah, but Folia is based on Paper which, AFAIK, is known for its unreliability when it comes to the technical aspects of Minecraft (ie redstone and farms.) Even your bog-standard simple item sorter is apparently a bit hit-or-miss on Paper.~

Edit: Possibly outdated info, things sound better re: technical Minecraft support on Paper now according to 'ocelotpotpie.

Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by ocelotpotpie on Tuesday June 27, 2023 @05:27AM (#36490711)
The hardcore technical folks seem to prefer things that don't alter the vanilla mechanics quite as much as Paper, it's true. But FWIW there are lots of farm and redstone designs that work reliably on Paper.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by zimpenfish on Tuesday June 27, 2023 @05:27AM (#36490718)
> But FWIW there are lots of farm and redstone designs that work reliably on Paper.

Ah, good to know - been a long while since I last tried Paper.

Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by ghosty141 on Tuesday June 27, 2023 @05:47AM (#36490833)
Its fine for most stuff the average player does. I wouldnt run a redstone computer on it but I personally never had an issue with my farms.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by nottorp on Tuesday June 27, 2023 @10:09AM (#36493030)
> Even your bog-standard simple item sorter is apparently a bit hit-or-miss on Paper.~

My simple sorters have been working just fine(tm) on Paper in the last (>5) few years.

I do hear co players having occasional problems with fancier set ups, but most automation just works.

Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by veave on Tuesday June 27, 2023 @05:24AM (#36490693)
The kind of mental gymnastics that people do here to justify needing 8 GB of RAM with a turnover of 3 GB per minute to handle 1000 users.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by Rapzid on Tuesday June 27, 2023 @05:34AM (#36490775)
Per second.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by kaba0 on Tuesday June 27, 2023 @08:02AM (#36491660)
It is definitely more than required, but let’s not go to the other end, it is neither a static html page.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by viraptor on Tuesday June 27, 2023 @05:51AM (#36490850)
I wouldn't say "each has to do a lot". There's a few trivial behaviours usually. Especially if you know what behaviours are common, you can optimise entity lists for that.

But that's not even what we're talking about here. This was a short-lived test server with new environment, not huge farms. The super high GC stats we see here are the baseline behaviour. More complex scenarios will push this even more.

Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by Kuinox on Tuesday June 27, 2023 @08:06AM (#36491684)
Thousands of items is small. Factorio doesn't need that amount of RAM when it routinely handle dozen of thousands of items every ticks.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by gjsman-1000 on Tuesday June 27, 2023 @11:53AM (#36494606)
Remember Minecraft is written in Java, not C++. The Bedrock version is written C++ but has only experimental, very rough native server software that is almost never used.
Re:Breaking the Limits: How Folia Made 1,000 Player Minecraf... by ElectricalUnion on Tuesday June 27, 2023 @08:08PM (#36500499)
> Factorio doesn't need that amount of RAM when it routinely handle dozen of thousands of items every tick.

It might not inefficiently allocate all that RAM every tick, but it still has to scan a lot of RAM, and write to a bunch of locations to update the game state.

It loves CPUs with huge caches because of that.