- Home /
Which is better? Switching out Textures or Instantiating Different prefabs?
This is a performance related question.
I am creating a game with giant monsters and need to destroy small cube based builings in a city so which is better? Switching out Textures or Instantiating Different prefabs in the same transform?
Answer by Fattie · Sep 24, 2013 at 02:28 PM
(a) you would not actually Instantiate an object during play. you never, ever, ever do this in video games. you use pools. (see link given)
(b) so literally in answer to your question "switch or instantiate" it is definitely "switch" by a factor of about 79 trillion.
(c) in a sense, what you mean is more "should I switch textures, or, switch objects" (the latter meaning, obviously, from your pool system). the answer is: zero difference
Hopefully that fully answers your question
Thanks. I understand now. Just concered about draw calls and static batching in my game. Trying to make an efficent game.
Your answer
Follow this Question
Related Questions
Is there any problem in using assets as prefabs instead of just gameobject? 0 Answers
Long scene load time caused by many textures in project(mobile) 1 Answer
My mobile game crashes once a certain number of textures have been loaded. What can I do about that? 0 Answers
many prefabs. application Performance 1 Answer
Why did my mobile prefabs go blank? 1 Answer