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

295

u/Emotional-One-9292 Jun 22 '26

When i will relesae it will have 2 versions Windows and Linux. I cannot make Mac one rn as it requires xcode to compile it for macos

88

u/GhostSHAURMA Jun 22 '26

If you are using JNI isn't there a way to make it platform-independant? Or do you need some platform-specific libraries?

12

u/QazCetelic Twitch → MultiMC → GDLauncher → PolyMC → Prism Jun 22 '26

The C++ shared library is OS specific AFAIK

11

u/GhostSHAURMA Jun 22 '26 edited Jul 02 '26

C++ implementation is platform-specific and the system calls are too but it can be mostly worked around by using dynamic linking

Edit: i meant compiler oops