Chunk generation priority (PM4) #4187
Labels
Category: Core
Related to internal functionality
Performance
Resolution: Fixed
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Milestone
Description
Chunk generation should be able to have an associated priority, to speed up the generation of more useful chunks in the generation queue.
Since the introduction of chunk generation promises, the combination of high chunks-per-tick sending and low generation queue size causes some problematic side effects on chunk loading when flying around in a new world, because chunk generation requests are FIFO. This means that if you move to a different position, and are still using some of the same chunks that you were using at the old position, those chunks will be generated first, even though they are now (usually) further away, and you have closer ungenerated chunks which need to be generated.
This results in the player being able to fly into ungenerated terrain even on very high performance servers if misconfigured.
To address this, generation requests should have an associated priority so that they can be processed in the most efficient order possible.
The text was updated successfully, but these errors were encountered: