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

105

u/Brutus5000 Dec 21 '23

There are two things that blocked serious game development for more than a decade: garbage collector which freezed the application and a memory model that works as an anti pattern to how modern cpu cache architectures work. Garbage collection has massively improved in the last 10 years. Improving the memory model is heavily worked on by Oracle for multiple years, but still work in progress.

So there is a tiny ecosystem that can't compare with the hundreds of millions of dollars that went into C++ & friends ecosystems.

It might get interesting again in a few years though if Oracle delivers what they are promising.

8

u/pishticus Dec 21 '23

Is the memory model work covered by the Valhalla project?

8

u/psyclik Dec 21 '23

Yes.

If delivered, Valhalla could alleviate most of the pain points on memory locality and indirectly release some pressure for the GC. Memory footprint might also be much tighter.

Java will still have a lot to cover in terms of ecosystem though. Nothing as massive a community as Java can't handle, but it won't happen overnight.

4

u/GYN-k4H-Q3z-75B Dec 21 '23

The reality of it is: C# didn't have those issues from the get-go, and it's a decently big player in game dev, but still nowhere near C++. And it's got a 20 year head start.