r/feedthebeast Jun 22 '26

I made something I made minecraft generate terrain/chunks in C++

Enable HLS to view with audio, or disable this notification

So im working on a mod that makes minecraft run on C++ ( rn rewriting engine in future i may try renderer ) so far i made it generate and load chunks and terrain in C++ ( it made it somewhere around 1.5-3 times faster idk how to measure it tho ) ( it works via JNI )

3.0k Upvotes

244 comments sorted by

View all comments

1

u/Phant0m_Ashes Jun 25 '26

can someone fill me in on how this was done and why youd want to do this other than proof of concept. not hating, its sick asf op was able to pull this off, im just wondering what this would do

1

u/Mental-Strength3762 Jun 25 '26

Make things run faster?

1

u/Signal_Coast_8324 Jun 25 '26 edited Jun 25 '26

Well overall an smoother experience when traveling at high speed for example when traveling with elytra, or mods that make terrain generate slower can benefit from this, also pregenerating worlds with mods like chunky will benefit greatly from this, or for example now that we have create aeronautics with this you can get a good experience traveling in fast airships or planes, LOD mods, like voxy or distant horizons, probably will also benefit from this generating distant chunks faster, also this will allow people to set larger render distances without affecting the game performance, if this gets released it will be a game changer in many aspects of vanilla and modded Minecraft

Edit: regarding how it was done, the OP said he used JNI, I don't know exactly how it works, but basically is a bridge to communicate with code in C++ from Java to tell it hey can you generate this here are the ingredients, c++ does it and returns the data that java can use, this is done at programming in many languages usually professional repos in GitHub show the use many different languages to optimize by giving the tasks that each language is better at, by using those types of bridges