Original Post — Direct link

Here's a link to the solution:https://answers.unity.com/questions/196413/gameobject-pool-to-avoid-performance-issues-in-ins.html?_ga=2.40072482.1411967261.1584456013-1019738916.1584208975

When you generate the world while we sit in queue, instantiate and pool up ~50-100 rounds of every single possible ammo/grenade in the game in front of our player's camera. Never Destroy a projectile prefab when it's spent. Deactivate and reset the prefab and add it back to the pool for reuse. This would pre-load and reuse the prefab data in memory which will prevent stutter when we encounter enemies who start firing on us with bullets that had never been used in the game world up until the moment of engagement.

External link →
over 4 years ago - /u/trainfender - Direct link

oh cmon...