- Home /
A performance question related to setting the position of non-visible objects
Which one is more costy? Setting the position of everything (eventhough they're not visible) or checking their visibility to decide which ones to set?
depending on the amount, it will make no difference.
Always remember! There is such a thing as over optimising :)
Answer by darthbator · Jun 04, 2013 at 12:20 AM
This doesn't really matter btw. If you're REALLY worried (and you shouldn't be) setting the objects to inactive is the biggest boost (they are not rendered nor is their logic active) after that turning off their mesh render (since you are now saving draw calls but logic is still running) and finally simply putting them out of view (which will still draw the object as well as running it's attached scripts).
Your answer
Follow this Question
Related Questions
measuring performance on android 0 Answers
General programming question on Static Classes 1 Answer
Performance issues with mesh processing 1 Answer
Draw Call Optimization 3 Answers
Improving script performance 1 Answer