FastChunkGen

Quick rating

FastChunkGen

No reviews yet

FastChunkGen is a unofficial forge port of C2ME with fixes, stability and performance improvements.

Bug Fixes
Performance & Optimization
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
fastchunkgen-0.1.2-all.jar
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

FastChunkGen

FastChunkGen basically moves minecraft's chunk processing off the main server thread. world gen runs on multiple worker threads, and chunk reads/writes happen asynchronously so it doesn't freeze up the main tick loop!

It's a unofficial forge port of C2ME (by RelativityMC), but fixed up and improved for forge.
Don't install the other ports, install this one!

Patreon

What it does

  • Generates chunks across multiple threads instead of just one (scales based on cpu cores and ram).
  • Async chunk reads & writes so autosaving doesn't stall the server.
  • Puts lighting updates on a dedicated thread.
  • Fixes a TON of vanilla thread-safety bugs that only happen once you run worldgen in parallel (structure pieces, shared randoms, weighted lists, etc).
  • Cuts down allocations in surface rules, nbt handling, and noise sampling.

How much TPS/loading speed u gain depends on your cpu and worldgen mods, but yeah overall this mod WILL make chunks load faster.

What's different from official C2ME

Unlike a lot of c2me ports out there, this port actually fixes and improves upon the original mod for the forge environment!

  • Forge chunk data isn't lost anymore: original c2me's async save path was just a copy of vanilla that omitted Forge's ChunkDataEvent.Save. any mod saving chunk data lost it on every save. fastchunkgen actually fires the event on the main server thread.
  • Block entity saving fixed: block entities are serialized on the main server thread now. upstream called saveWithFullMetadata() off-thread which caused races and corruption with forge capabilities. sections, heightmaps, palettes, and structures still stay async though.
  • ChunkDataEvent.Load deferred: runs on the server thread before the chunk goes live.
  • Fixed infinite loop error: fixed a bug where an exception in worldgen could trap a worker thread in an infinite loop.
  • Fixed scheduler deadlocks: fixed an issue where a single exception permanently froze all chunk scheduling.
  • Fixed lock leaks: neighbour locks don't leak anymore when a gen task throws an error (which previously broke that region forever).
  • Fixed ticket leaks: off-thread chunk requests clean up their tickets on failure instead of leaking memory.
  • Better server shutdown: dedicated server doesn't instantly run System.exit(0) anymore so your exit codes and shutdown logs actually survive. a 30s watchdog still forces exit if something hangs.
  • proper logging: everything logs through SLF4J with the mod name attached instead of raw stack traces spammed to stderr.

Deliberately did NOT port client-side or unrelated modules: no-tick view distance, client view distance uncapping, server utility commands, and native math.

Compatibility

Tested alongside 480+ mods. generated 5000+ chunks and played around with zero issues!

Fastchunkgen also checks installed mods on startup to auto-resolve conflicts:

  • ModernFix: both mods optimize the same three surface rule and material rule methods. FastChunkGen's versions take priority! set generalOptimizations.overrideModernFixWorldGenAllocations = false if u want ModernFix to handle them instead. Regarding proto chunks, turn it off for faster chunk gen.

  • Radium / Lithium / Canary: our duplicate NBT copy patch and chunk priority patch are disabled automatically if any of these mods are installed.

  • ThreadTweak, FastNoise, FerriteCore: no overlapping methods, works fine out of the box.

Before you install!

BACK UP YOUR WORLD. upstream C2ME is alpha tech and anything that rewrites chunk saving deserves a backup first just in case.

Configuration

config generates at config/fastchunkgen.toml on first launch. everything has its own toggle, and defaults are set to the literal string "default". Replace it with a real value to override it.

Risky stuff is OFF by default:

  • ioSystem.gcFreeChunkSerializer - allocation-free chunk writer that can't fire ChunkDataEvent.Save. mods lose per-chunk data with this on.
  • ioSystem.recoverFromErrors - auto-regens corrupted chunks instead of crashing, destroying whatever was built there.
  • fixes.enforceSafeWorldRandomAccess - hard crashes on unsafe off-thread world random access instead of logging a warning. good for finding broken worldgen mods.

Credits

C2ME by RelativityMC and ishland (MIT License). Forge port groundwork from sj-hub9796/c2meF. MIT licensed.

Welp.. this is the last archived project I had. It feels nice to be free.. ^_^

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works