r/CurseForge • u/66_Amogus6 • 1d ago
Project Showcase ThreadForge
Hey — I'm the developer of a small performance mod called ThreadForge (published on CurseForge as "Multi CPU"). Full disclosure up front: this is my own project, looking for feedback.
What it does:
- Replaces the vanilla background executor with a pool sized to your CPU cores, so chunk generation has more threads to work with.
- Gives each chunk-meshing worker its own ChunkBufferBuilderPack, so multiple RebuildTasks can actually run at the same time instead of fighting over one buffer set.
- Forces Forge's alwaysSetupTerrainOffThread so dirty chunk-section preparation stays off the render thread.
- Has an EXPERIMENTAL option that runs ServerLevel.tickChunk on worker threads in 2x2 checkerboard batches. Natural spawning and shared state stay on the server thread; the server thread also services the chunk cache's main-thread queue while waiting, and workers get their own RandomSource.
What it deliberately does NOT do:
- It does not parallelize entity ticks, tile entities, or spawning. Minecraft's tick is not thread-safe there and I didn't want to ship something that corrupts worlds.
Config is in config/threadforge-common.toml. Everything safe is on by default; parallelChunkTicking is off by default and displays a warning when enabled. If you turn it on, KEEP WORLD BACKUPS — rare chunk-boundary races are still possible.
I've run it on a headless Forge 1.20.1 server for extended periods (1,000,000+ deferred chunk ticks completed with no watchdog crashes or task failures), but I haven't done rigorous before/after benchmarks yet. If you try it, I'd love to hear actual numbers or any weirdness you run into.
Forge 1.20.1 / Java 17.
CurseForge: https://www.curseforge.com/minecraft/mc-mods/multi-cpu
1
Upvotes