Threaded ChunkGen

A lightweight server side mod that uses all of your threads to make world generation faster

For the people who are gonna use this, I'd love to hear if this has meaningfull impact. From my testing it does. But knowing peoples expiernces and or bugs/issues i'd love to know!

A lightweight, server side mod that parallelizes Minecraft world generation stages across CPU worker threads for faster chunk generation.

  • Parallel Worldgen Stages: Offloads STRUCTURE_STARTS, SURFACE, CARVERS, and FEATURES from the serial "worldgen" mailbox onto Util.backgroundExecutor(), while keeping STRUCTURE_REFERENCES synchronous to avoid scheduling overhead.

 

  • Deadlock-Free 3×3 Spatial Locking: Feature generation uses a fixed 4,096 bucket ReentrantLock array with globally sorted 3×3 chunk lock ordering and non-blocking tryLock() retries, preventing cross-chunk race conditions and deadlocks.

 

  • Modpack Friendly: Uses MixinExtras @WrapMethod with zero @Overwrites, preserving compatibility with ModernFix, Terralith, Biomes O' Plenty, Oh The Biomes We've Gone.

 

  • Server-Side Only (Client-Optional): Only required on the server (or in singleplayer).


Yes you can use this in your modpack

Threaded ChunkGen Team

profile avatar
  • 1
    Projects
  • 110
    Downloads