wkzhou.1988

Hi everyone,
I'm looking into implementing a costume customization feature. After a bit of research, I learned that this can be achieved by using skins. What I'm curious about is, we would want to have 100+ options for each part of a costume, can Spine handle this large amount of resources? We would have about 50 characters with customed costumes on the same scene, same screen. Performance wise, it this going to work well?

Thanks!
wkzhou.1988
  • Posts: 3

Misaki

What I'm curious about is, we would want to have 100+ options for each part of a costume, can Spine handle this large amount of resources?
Yes, it is possible. Instead of always loading all images, only those used in that skin can be repacked at runtime and organized the texture into only the images needed. See the Runtime Repacking section of the spine-unity documentation for more information:
spine-unity 运行时文档: Combining Skins
We would have about 50 characters with customed costumes on the same scene, same screen. Performance wise, it this going to work well?
To determine that, you need to test it on your target devices. If you have not yet purchased a Spine license, you can download the spine-unity runtime for evaluation purposes and test it using example skeletons included with it:
spine-unity Download

For your information, common measures to improve performance are described in the Spine User Guide and in the runtime documentation:
指标视图 - Spine用户指南
spine-unity 运行时文档: Performance
User avatar
Misaki

Misaki
  • Posts: 1163

wkzhou.1988

[quote="Misaki"][/quote]
Great! I'll definitely try that. It seems to me that it all depends on the repacking performance, since we're gonna have different characters entering the same room. If every time someone enters, a repacking is required, it definitely needs to taken into account.
wkzhou.1988
  • Posts: 3

Misaki

It seems to me that it all depends on the repacking performance, since we're gonna have different characters entering the same room. If every time someone enters, a repacking is required, it definitely needs to taken into account.
Yes, your guess is correct. Harald answered in this thread about how to improve the performance of repacking:
Change skin of spine cause FPS drop
User avatar
Misaki

Misaki
  • Posts: 1163


Return to Unity