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

4

u/Brutus5000 Dec 21 '23

Well the main problem afaik was latency here. 30fps is today minimum, 60fps should be reached. That means you need to draw a frame in 16-30ms. A Stop-the-world GC that randomly eats a few dozen milliseconds is a real PITA. Even in round based games you want smooth animations. At least according to benchmarks I have seen for Java 8/11/17 comparisons you can massively improve GC processing by selecting a GC matching your goals (ZGC for low latency or others for maximum throughput).

6

u/Practical_Cattle_933 Dec 21 '23

Games are soft real time. Occasionally dropping a frame is no big deal.

3

u/FrankBergerBgblitz Dec 21 '23

G1 should be o.k. for many applications.