Kristiyan

PIXI - many filters cause fps drop

Recommended Posts

Hello everyone!

I found that using filters to multiple sprites is causing frame drop(in my case 25  filters). After the frame is dropped, if i remove filters via console , the frame is again 59.9-60.0 . I will append image to show you what i mean.The way i append filter to sprite is in this way :

 

var spritesLen = 25;
for(var i=0;i<spritesLen;i++){
    someSprite[i].filters = [myFilter]
}

 

I hope there is a fix to this issue :) Thanks.

Untitled.png

Share this post


Link to post
Share on other sites

yes glow filters are very bad 
huge cpu computing
image.thumb.png.d2fca147d061d9dd1771331db67f0971.png

You can maybe try to create a new cache textures with your [sprites+filters], it a solution if you not need to anime the grow filters.
~~ 18% cpu on the pixi filter demo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.