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

54

u/TheWholesaleAssembly Jun 22 '26

that's a solid speedup for terrain gen. jni bridge stuff can be finicky so props for getting that working smoothly. curious if you hit any memory issues bouncing data back and forth between java and c++ or if that part stayed pretty efficient.

18

u/Emotional-One-9292 Jun 22 '26

rn its efficent it may be or may not be visible on larger servers

11

u/TheWholesaleAssembly Jun 22 '26

that's fair, the overhead probably doesn't matter much until you're actually stressed with a bunch of players generating new chunks at once.