- Home /
Why does mesh count increase every 1 second then decrease
In every unity example I've seen, the mesh count increases every 1 second then decreases a few frames later. Normally it's %age-wise not a big increase (eg CustomizableCharacter project), but in one of my own projects it's 3x as many meshes as I have
Do these affect garbage collection? I'm noticing increased memory pressure. Is this a profiling bug instead?
(also you may need to right click copy image URL to see the profile detailed output)
Good question. In my current project I also get that increase and to make things worse 2 frames after that (in the frame the count decreases) I get a huge spike caused by mesh.createvbo, which is really bugging me.
Answer by adbourdages · Sep 25, 2013 at 04:28 PM
Those Mesh Count spikes are related to the editor, not your game. The profile doesn't know the difference between the two, so everything is dumped in there. If you run the code on a device or standalone the spikes will go away.