Jump to content

Spine performance


Recommended Posts

I have canvas 1920 x 1080 and 5 different Spine animations that uses a lot of textures.
Add 20 animations of every type all over the screen

Test performance in two ways. For this I use GPU-Z and check GPU load parameter

1) Every animation has its own atlas with images and json file - GPU Load 47%
2) Every animation has its own json file but uses the same atlas with images - GPU Load 61%

Made the same tests with sprites as well,  total amount of sprites is 180, 10 of each type.  

1) Each sprite has its own download link - GPU Load 90 %
2) All textures are in the same spritesheet - GPU Load 63%

Why tests with Spine have opposite results?

PC config is Google Chrome v65, Windows 10, AMD Radeon HD 7450, Intel Xeon x5650

Link to comment
Share on other sites

I hope it's ok me piggybacking this thread for another, probably unrelated spine performance issue rather than starting another thread.

The project I'm working on has a lot of spine animation and also can have a very large canvas. I'm finding that if I have the game running then switch to another tab and wait more than 4-5 seconds, when I switch back to the project it freezes for a few seconds with the permorance analyser showing it being s. I have every spine with autoUpdate set to false and I have found that if I cap the delta time that can be passed into update it helps, but if with that there is still a noticable stutter.

To clarify, my update function looks something like this:

this.lastTime = this.lastTime || Date.now();
var timeDelta = (Date.now() - this.lastTime) * 0.001;
this.lastTime = Date.now();
   timeDelta = 0.01;

Is this something anyone else has seen and is there anything that can be done to help?

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...