Jump to content

Help Needed: Improve performance


dnavarrom
 Share

Recommended Posts

Hi, I'm new to PIXI.JS and I need a hand to increase performance to this. Basically, I'm using particle containers but when I'm adding more than 200 sprites, FPS drops to 30 / 15. ¿It is normal?. I'm not using filters or any other effects. ¿Any Idea to try?. Thanks in advance.

 

 

 

 

 

 

Link to comment
Share on other sites

It looks like your rendering is not the thing causing frames to go down.

Profiling it shows that most of the time goes to javascript. ProcessSurvivor and findfood take most of the time. Optimizing those might help. Also if you have only 200 sprites you can use regular container without any problems. ParticleContainer starts to show benefits at thousands of objects.

Here's a screenshot of the profile (chrome profiler)

image.png.ddee69ee697baeb63ab31f0226d4a762.png

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