3 ms·
There is a difference between a GC used for only a tiny fraction of objects that implement a certain interface (Unreal Engine case) and using a GC for all the t
by pkolaczk 4y ago
There is a difference between a GC used for only a tiny fraction of objects that implement a certain interface (Unreal Engine case) and using a GC for all the things like Java does, which you cannot opt-out. In Java case the GC has to scan gigabytes of objects, and often the garbage production rate is also in gigabytes per second, hence an efficient general purpose GC implementation is much more challenging.
- noelwelsh 4y agoYou're missing the point. There a small number of games that are extremely performance sensitive. Mostly FPS games. Java is not a good choice for these. Everything else is fine. The ZGC really does deliver on its claim. Pauses are very small (milliseconds) and it can handle heaps that are several GBs in size. However, this doesn't even matter for most games. A few pauses are fine in, say, a real time strategy game. My kids used to play Minecraft on a 10 year old Intel Mac running Java. It was good enough.