• RuntimesUnity
  • Draw calls increase when duplicating Spine objects in Unity

Hello,

I'm using Spine with Unity, and I've noticed that every time I duplicate a Spine GameObject (SkeletonAnimation), the draw call count increases, even if I don't modify anything — not the material, rotation, or scale.

All duplicated objects use the same material and atlas. I'm simply duplicating the original GameObject without changing any of its properties.

Is this expected behavior? Is there any way to make multiple Spine instances share a draw call?

I'd appreciate any insight or suggestions. Thank you!!!

  • Misaki님이 이에 답장했습니다.
    Related Discussions
    ...

    Yes, it is expected that draw calls increase when duplicating Spine GameObjects in Unity, even if they use the same material and atlas. This is because each instance of a Spine skeleton is treated as a separate draw call unless dynamic batching can be applied. To reduce draw calls, you can ensure that all your attachments are packed into a single atlas page and that the draw order does not require switching between different materials. Additionally, you can use Unity's dynamic batching, which combines meshes that use the same material and texture, but this requires that the meshes meet certain criteria, such as having fewer than 300 vertices.

    For more information on reducing draw calls, you can refer to the spine-unity Runtime Documentation: Material Switching and Draw Calls and consider packing attachments to as few atlas pages as possible and grouping them according to draw order.