Kristiyan Posted October 30, 2018 Share Posted October 30, 2018 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. Quote Link to comment Share on other sites More sharing options...
jonforum Posted October 30, 2018 Share Posted October 30, 2018 can you try someSprite._filters = [myFilter] on my side i can hold over 150 filter , with i7.920 gtx 1070 what your machine ? and what filter you use ? Quote Link to comment Share on other sites More sharing options...
Kristiyan Posted October 30, 2018 Author Share Posted October 30, 2018 1 minute ago, jonforum said: can you try someSprite._filters = [myFilter] tried sir, does not work, same fps drop! Quote Link to comment Share on other sites More sharing options...
Kristiyan Posted October 30, 2018 Author Share Posted October 30, 2018 Any other ideas ? Quote Link to comment Share on other sites More sharing options...
Exca Posted October 30, 2018 Share Posted October 30, 2018 Depending on filters and the area they are applied to it they can be really expensive. What kind of filter you have? Kristiyan 1 Quote Link to comment Share on other sites More sharing options...
Kristiyan Posted October 30, 2018 Author Share Posted October 30, 2018 Just now, Exca said: Depending on filters and the area they are applied to it they can be really expensive. What kind of filter you have? new PIXI.filters.GlowFilter(15,6,6,0xffe400,0.1); glow filter. Quote Link to comment Share on other sites More sharing options...
jonforum Posted October 30, 2018 Share Posted October 30, 2018 yes glow filters are very bad huge cpu computing 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 Kristiyan 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted October 30, 2018 Share Posted October 30, 2018 Pre-render glow in photoshop, add sprites instead of filters. Kristiyan and Tweeper 2 Quote Link to comment Share on other sites More sharing options...
Kristiyan Posted November 1, 2018 Author Share Posted November 1, 2018 Thanks all for your replies! 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.