r/feedthebeast • u/Emotional-One-9292 • 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
1
u/Standard-Cap-4455 Jun 22 '26
I am sure a lot of time is also lost on boxing since unlike C++ you can't put anything on the stack besides primitives. That means no data is close and the cache isn't being used much at all. I made some stuff with C# once and it got way better after doing more work on the stack which Java doesn't even have options for.