
Passive Chunk Pregenerator
This mod performs background chunk generation around players, regardless of their status (online or offline), as well as in the world spawn area. This allows pre-preparation of map areas that are highly likely to be used in the near future.
How It Works
Minecraft uses partial multithreading. Each dimension (or level, as mod developers working with Mojmaps call them) has its own thread for chunk generation. On the main thread responsible for most in-game processes, available chunks for loading are checked. This check includes determining whether the chunk generation thread for a particular dimension is currently busy. This approach ensures priority processing of the most important map areas. After that, the system schedules generation of suitable chunks in each thread if any were found.
Error Suppression
Sometimes the input/output thread attempts to save chunks at the moment when the world generation thread is adding new data to the map. This leads to ConcurrentModificationExceptions being thrown, which are normally logged. In such cases, the chunk is saved to disk on the next attempt (as confirmed by testing and should not cause world corruption, but creating backups is recommended for certainty). Since these exceptions occur quite frequently and do not pose critical threats, they are suppressed and do not appear in the error log.