Object Pool

Game Programming Patterns Optimization Patterns Intent Improve performance and memory use by reusing objects from a fixed pool instead of allocating and freeing them individually. Motivation We’re working on the visual effects for our game. When the hero casts a spell, we want a shimmer of sparkles to burst across the screen. This calls for … Continue reading Object Pool