gritsenko / c3_spine_plugin

Spine plugin for construct 3
MIT License
24 stars 8 forks source link

Optimize Spine render through batching all Spine renders. #7

Closed MikalDev closed 4 years ago

MikalDev commented 5 years ago

Minimize webgl state change by creating a method of batching together all the Spine renders that need to happen each frame. For example have them add to a global Spine render list lin Tick() and then in the first Draw() call of any of the Spine objects, render all of the Spine objects to texture. In the remainder of the other Spine objects, do not render the other Spine objects to texture.

MikalDev commented 4 years ago

Current performance for a few characters seem reasonable, closing this until there are issues raised about performance in a real project.