Skip to content

[ts][pixi-v8] Multiple containers added via addSlotObject() do not batch when sharing the same clipping mask #2956

@PGawlas

Description

@PGawlas

Hi,

We’ve encountered an issue with the addSlotObject() method in PIXI Spine. When we add multiple containers to a Spine instance using addSlotObject(), and all of the corresponding slots are masked using the same clipping attachment, each container still generates a separate draw calls (multiple draw calls per single attachment due to extra stencil bufor draw calls).

It seems that even though the same clipping mask is shared, the containers do not batch together as expected. This significantly increases the number of draw calls and impacts performance.

Is there any possibility to optimize this behavior?

In our projects, we often attach many containers to a Spine instance, and sometimes these containers are also masked in Spine by clipping attachments. This significantly increases the number of draw calls and likely affects overall performance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions