4 ms·
This is still true, albeit the problems are somewhat smaller or happen less frequently. All those low-pause garbage collectors like G1, ZGC and Shenandoah make
by pkolaczk 4y ago
This is still true, albeit the problems are somewhat smaller or happen less frequently. All those low-pause garbage collectors like G1, ZGC and Shenandoah make no guarantees about pauses and all of them can degrade to stop-the-world mode of operation under some circumstances, and can cause pauses several seconds long. The difference is that they do it less likely, and the old ones did it all the time. The low pause collectors also have much larger overhead in both memory and CPU than old collectors as well as traditional allocation with malloc/free.
Btw, for games even a very low 1ms pause is more than 10% of frame budget, and can make the frame miss the deadline. I guess for indie games the quality bar is simply lower and occasionally missing a frame is ok.