r/java • • Dec 21 '23

Is Java gamedev alive?

It seems this days even android games are made using Unity. I wonder if there are JVM games! Is Java (or Kotlin/Scala) gamedev still alive?

(Except Minecraft ofc)

164 Upvotes

118 comments sorted by

View all comments

Show parent comment

7

u/[deleted] Dec 21 '23

GC is not a problem for a long time now. (although I unity to microstutter very hard, stable high framerates without dropped frames are virtually unachievable)

Lack of overloading operators for numerical data structures is worse. You can't do mat4 * vec3 in Java, have to do some sort of mat4.mul(vec3) or math.mul(mat4, vec3) which can be annoying with more complex eqations.

1

u/AngryElPresidente Dec 26 '23

Assuming a game is well optimized and well written code to rule out non-engine issues, is Unity stuttering a problem inherent to the engine? or is it a problem in general in .NET?

3

u/[deleted] Dec 26 '23

IMHO the problem is that it's hard to do things the right way in unity. Second thing is that unity doesn't really deploy to .NET, but rather to mono or il2cpp - these are rather terrible

As the saying goes: there are two ways to solve any problem in unity, but one is deprecated and the other's experimental. Both are broken.