- Home /
Question by
bugra271 · Oct 03, 2015 at 02:38 PM ·
particle systemgcgarbage collection
Enabling Particle System's Emission Results Huge Amount Of GC
I'm taking a referrence particle system prefab at start, and Instantiating 3 times. And then I'm adding these 3 particle systems to my list. I'm enabling/disabling particle systems emissions in script. Almost 200-250KB GC per frame.
But I'm placing particle systems to scene without any instantiating or scripting, GC is almost 0. Anyone have an idea what causing this? Instance particle systems, or accessing particle systems in list could be the problem?
Comment
Are you using a foreach loop? In Unity it triggers a GC call.
Your answer
![](https://koobas.hobune.stream/wayback/20220612035842im_/https://answers.unity.com/themes/thub/images/avi.jpg)