What is object pooling for?
- Reusing objects instead of allocating new ones
- Storing the inactive objects out on disk
- Merging separate meshes at build time
- Sorting all the objects by draw depth
Recycling bullets and particles avoids per-frame allocation and GC spikes.
Play Game Dev ▸