- Home /
Question by
Danh-Ho · Sep 22, 2019 at 02:18 PM ·
gameobjectinstantiatespawningcomponentspooling
Will Instantiating prefab with many components slow my game?
Hi,
for example: I have a bullet prefab with many components, and many more in its childs.
I'm gonna instantiate hundred of this bullets and i'm confused. Will this affect my game performance ?
Should I build a pool system to reuse my game objects?
(But when i start thinking about this, I believe everytime I reuse the game object I have to reconfigure all of these components, I don't know if there is a better way) .
Comment
Answer by suIly · Sep 22, 2019 at 02:26 PM
If this were going on a pc, it wouldn't matter if you instantiated the bullets, because PC's have lots of processing power, but for mobile, you should use pooling