Reduce structure change when using RenderMeshUtility.AddComponents?

To create new entity at runtime, I first create a original copy using RenderMeshUtility.AddComponents, this operation will invoke structure change once, then I use entitycommandbuffer to create a certain number of this entity. Two times of structure change now. Finally, to avoid rendering of original copy of entity, destroy it will cause another structure change.
How to reduce number of structure change here?

Only instantiate n-1 copies of the entity, and don’t destroy the original copy.

1 Like