4 ms·
>very high-performance C++ C++ does not automatically mean "very high-performance". A lot of users get worse framerates than with Minecraft (not everyone, thou
by asiekierka 10y ago
>very high-performance C++
C++ does not automatically mean "very high-performance". A lot of users get worse framerates than with Minecraft (not everyone, though!), and the entity/"mob" code used to be insanely slow, at least a year ago.
- vog 10y agoWhile I find your second sentence quite insightful, the first sentence seems to fight a straw man. (GP stated that this software is high-performance, and that it is written in C++. They didn't claim it to be high-performance because of C++.)
- asiekierka 10y agoMy apologies. Way too often I hear people in the Minecraft community say everything would be magically fixed if the game had simply used C++ in place of Java. I guess I'm too quick to jump on people using "C++", "high performance" and "Minecraft-like thing" in one comment nowadays.
- roblabla 10y agoWell, tbh that is somewhat grounded in reality: lots of minecraft's early performance problems were caused by the GC, which wouldn't have been a problem if writing "idiomatic" C++. Lots of those problems have since been fixed though. I believe a rewrite in C++ today would bring more problem than it solves (which, BTW, Mojang is kind-of doing with Minecraft PE).
- johnhenry 10y agoI don't believe that this person means to imply that C++ is inherently performant -- only that the software is written in C++ and it is highly performant.
- qznc 10y agoWhen I played with it 3 years ago, the entity/mob stuff was implemented in a Lua plugin instead of C++. If they did not change that it certainly explains the performance problems.