3 ms·
You'd be surprised. Many people underestimate Java/C# performance. Also, for Java in games, there aren't that many points of reference, because the only popular
by skocznymroczny 7y ago
You'd be surprised. Many people underestimate Java/C# performance. Also, for Java in games, there aren't that many points of reference, because the only popular Java game I am aware of is Minecraft.
However, C# has better potential for performance than Java right now, because it has value types and supports pointers in unsafe mode, which are very useful for high performance code. Java is catching up in this area, with Project Valhalla and Project Panama it should get there at some point too.
- Gibbon1 7y agoYears ago I saw a essay where someone took some Java code, translated to C#. Then performed a bunch of optimizations using value types and stack based structs. And it was about 10 times faster than the Java version. Because it wasn't hitting the heap anymore.
- throwaway8941 7y agoThere is a Minecraft clone running on Mono. I am yet to test it though. https://github.com/ddevault/TrueCraft/ https://github.com/ddevault/TrueCraft/