- Home /
The question is answered, right answer was accepted
A very simple optimization question, particle
Hello everyone, i have a real quick and simple question. I am emitting a smoke particle out of my guns barrel each time i fire. Particle is set not to loop, and when i fire i simply do this :
smokeParticleSystem.Emit(15);
it works fine, but should i deactivate particle gameObject when i am not firing, and activate it again and then emit ? Or just leave it activated all the time, just make it emit when i fire ? Which one is more optimized way, i need to be really careful about the performance of cpu & gpu thats why i am asking. Or is there really a huge difference ?
Answer by Kiwasi · Nov 30, 2014 at 07:10 PM
Unless you have hindered a of these weapons on screen I doubt it will make an appreciable difference. That said making a GameObject inactive will almost always improve performance.
Follow this Question
Related Questions
How do I get my game to run faster? 4 Answers
Merging together all GameObjects of an Array? 1 Answer
Windows Phone performance 0 Answers
Emit Particle when the parent gets collision 2 Answers
Sprite Alpha Performance 0 Answers