ABOUT
Blacksmith's Engine is a Library for TheHumanPixel's Minecraft Mods. It moves all common code from projects into a single space to avoid duplicates, solve mod conflicts and enable certain features. The mod also improves Minecraft World Generation, by using smarter caching and parallelism of available CPU threads.
It will allow the user to enable and disable it's specific experimental features from config.
FEATURES
- Parallel World Generation - Decorates new chunks (trees, ores, plants, structures) on all your CPU cores instead of just one. Neighboring chunks still take turns exactly as in vanilla, so features never collide.
- Lean Chunk Rendering - Builds each frame's terrain draw lists without the throwaway objects vanilla creates every frame, so the garbage collector pauses the game less often.
- Reuse Memory Buffers - World generation and chunk saving reuse their working memory instead of throwing it away for the garbage collector, so there are fewer garbage collection pauses.
- Fast View Shift - When you move into the next 16-block section, only the sections that just came into view are updated, instead of every section within render distance (about 200,000 at 32 chunks). This removes a hitch you get every few seconds while moving.
TIPS
The largest smoothness gain I measured doesn't come from a mod. It comes from switching Java's garbage collector. Add this to your launcher's JVM arguments:
-XX:+UseZGC
Disclaimer
Measurements were done only on a Ryzen 7950X3D (16 CORES/ 32 THREADS) 64GB RAM machine.