As promised, here are a couple of tips for avoiding GC runs during your game animations.
1. Object Pools
Sometimes you just need to create temporary objects for your computations. If you know you’re going to need a limited amount of them, why not create them in advance and reuse them? Continue reading