bravoserver / bravo

UNMAINTAINED: Reverse-engineered Minecraft stuff. Worked with 1.4.x protocol
http://bravoserver.org/
Other
206 stars 45 forks source link

Ore generation is slow #341

Closed Krenair closed 11 years ago

Krenair commented 12 years ago

Ore generation is slow and maxes out CPU cores for a while.

A friend had the same issue (his specs here: http://whendowegetthededi.co.cc/ ): Azelphur: I tried enabling it last night but it 100%'d the server.

MostAwesomeDude commented 12 years ago

Ores are generated roughly the same way that the "complex" generator works, and are correspondingly slower than "simplex" by around 128x. It's a spendy set of operations.

I'd like to just say that it'll be far faster under PyPy, but that's not really much of a comfort for you right now. If you can find any way to speed it up, or an alternative algorithm which produces acceptable results, then I'd be interested.

MostAwesomeDude commented 12 years ago

Renaming to make it more obvious what the problem is here.

MostAwesomeDude commented 11 years ago

PyPy absolutely demolishes the benchmark for ore generation. I'm going to just mark this down as a case of "use PyPy" in the docs.