dnavarrom Posted February 27, 2019 Share Posted February 27, 2019 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. Quote Link to comment Share on other sites More sharing options...
Exca Posted February 27, 2019 Share Posted February 27, 2019 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) Esqarrouth and ivan.popelyshev 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.