Version 1.0.0.1R is now available for 1.21.1!
Discord Link:
What does this mod do?
MTChunkGeneration forces vanilla chunk generation to use more than 3 threads. To do this it assigns each thread a set amount of chunk sections (A chunk section is every 16 blocks on the y axis). The most intensive part of chunk generation is biome and noise filling, thus it was decided the additional threads will be divided to do these tasks. There is 1 master thread in-charge of creating child threads for biome/noise filling and completing the rest of the generation. Each of the 2 child threads manages the additional threads created by the mod. With intensive testing (largely done by Kaiserdragon217), we have figured out that having 8 chunk sections per thread for biome and noise filling proved the most optimal configuration on our 5900X and 7900X CPUs. These values can be edited in the config file or in-game via the mod menu. By default this mod will use 9 threads for chunk generation, but only 8 of them will be allocated from a thread pool of up to 16 threads, and 6 of them can compete for resources if your CPU does not have a sufficient thread count. Lower core count CPUs may have different optimal configurations and thus reducing thread count could lead to higher performance. We have also found that this mod tends to help most with more intensive world generation, so a modded or amplified world may see a bigger performance increase.
On the client-side of the mod I have updated the F3+G menu to be 3D so that debugging performance/generation could be easier. You will also notice MTG-ON and MTG-OFF toasts that appear in the top right of the world when entering a dimension. These exist as an indicator to let you know if the dimension's generation settings support multi-threaded generation. Both of these features can be turned off in the config file/menu.
Mod compatibility with other world-generation/dimension mods in unknown, but most of them should work without problems.
It was also decided that this mod could be used server-side only so that clients using vanilla or another mod loader can still have the benefits of the multi-threaded generation.
This mod will increase idle fps and decrease chunk generation time.
See full performance chart here: https://docs.google.com/spreadsheets/d/11D6ji3snhccqzCLE5LEUSgsXYaIaUeA8hXbeoG7T5Aw
(8, 8) is the default configuration.
Feel free to comment performance specs for hardware survey in the link as well :)
Q&A:
Q: Can I use this mod for my modpack?
A: Feel free to do so!
Q: Where can I suggest features and report bugs?
A: https://github.com/TheAGamePlayer/MT-Chunk-Generation/issues
My Other Mods:
https://www.curseforge.com/minecraft/mc-mods/afk-timer
https://www.curseforge.com/minecraft/mc-mods/the-pure-suffering-mod