We're working on a game on Construct 3 that's using this Spine plugin for character animations, and we're facing a performance issue.
Our setup:
- The character consists of a 3 PNG files combo (hat, head, body)
- We have approximately 200 PNG files total to make skin customization possible.
- Single atlas and json file
- The game has 20 players in the layout
The problem:
Spine requires all PNG files to be linked to the object, even if they're not being used, this forces Construct to load all the files causing significant performance issues.
On mobile devices we're seeing a framerate drop to around 20fps
What we've tried:
We've already programmed a dynamic loading for the necessary files using the "Load spine files" event. However it doesn't work because Spine requires all files in the atlas to be linked.
Has anyone encountered a similar issue? How did you managed to solve it? We're looking for a way to dynamically load ONLY the PNG files associated with the currently active character skin.
Any suggestion would be greatly appreciated!