Jump to content

Performance of frame animations


Upsinn
 Share

Recommended Posts

Hi,

any idea how I can improve performance of frame animations? I have a scene with about 100 small animations in loop (each having 20frames). I thought replace group of animations by one bigger, so for example instead of the original 100  50px*50px animations I had 4 250px*250px. Is it good idea?

Link to comment
Share on other sites

Animation itself doesnt cost you anything. Are you using one file per all animations, one file per every animation or one file per frame?

Quote

so for example instead of the original 100  50px*50px animations I had 4 250px*250px.

Please explain it.

In my experience, 100 animations of 50x50 works good even on canvas renderer.

Link to comment
Share on other sites

Ok, first - change frame of sprite is very cheap operation, so animation itself doesnt cost you anything. However, webgl optimization will work only if sequences of sprites you draw have the same base texture. I suggest to use shoebox (free) or texturepacker (paid) to compile all your frames into one atlas. 

Link to comment
Share on other sites

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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