Game dev
Saved & recent

Object pool

Also called: object pooling

Related terms: pooling, recycling, object lifecycle

Reusing objects instead of creating and destroying them. A set of bullets, enemies or effects is made up front and switched off. When one is needed it is taken from the pool and switched on. When it is done it goes back.

Creating objects during play costs time and feeds the garbage collector. A pool moves that cost to the loading screen.

Further reading
Unity: Garbage collection best practices: Reusable object pools
A B C D E B active activate return preallocated objects
Object B moves from the rack to an active slot. After use it returns to the same pool for another activation.

View in the full Game dev collection