$ ./guess_the_languageGame Dev
Game Dev · medium · #92

What pattern avoids constant instantiate/destroy cost?

GameObject.Instantiate(bullet); // every shot
  1. Object pooling of bullets
  2. Loading a bigger texture
  3. Raising the physics rate
  4. Merging every collider
Pooling reuses inactive objects instead of allocating and freeing each time.
Play Game Dev ▸