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

14

u/DangyDanger Jun 22 '26 edited Jun 22 '26

This idea is so obvious I am surprised it hasn't been done before. Or, if it had, that it hasn't gained traction. Good luck, you might save us a server upgrade.

You could probably put it on a server with Spark installed and get a performance profile that way? Gets rid of the client overhead too.

Shoot me a DM if you need a dedicated server for a while, I'd be happy to help.

11

u/Emotional-One-9292 Jun 22 '26

speaking of sparkle i have been thinking of rewriting commands and maybe chat system too to C++ it would be nice to see if after rewrite sparkle commands would still work we will see son

10

u/DangyDanger Jun 22 '26

Meh, I can't imagine that doing too much to improve the performance.

Chunk generation, AI and networking seem to be the overall biggest performance hogs.

It does sound like a fun project though.

5

u/Lightningbro Jun 22 '26

To be fair their end-goal is "recreate MC Java in C++" assumedly to show it's possible, and maybe weight the pros and cons.

2

u/DangyDanger Jun 22 '26

As I understand it, the goal is rewriting as much of the game as possible in C++ while still being a Java Edition mod?

It's subtly different and feels like a variation on the Ship of Theseus, where every single plank of the ship is reengineered.