3 ms·
You'll notice that most games are not written in Java or C#. It's much more common in small games that have a lot more cycles to spare. And even still, it ofte
by Arelius 13y ago
You'll notice that most games are not written in Java or C#. It's much more common in small games that have a lot more cycles to spare.
And even still, it often becomes a problem. Generally it's solved by being very careful with object allocation as to not require GC during gameplay. Or some other trick to force GC to take less time than budgeted.
Also keep in mind, a lot of games are designed to run much closer to 30 FPS these days. Which gives you a lot more time to deal with GC.