Roninsi Posted December 22, 2021 Share Posted December 22, 2021 For the past couple of days I was trying to figure out why we are getting really low FPS on old Samsung Galaxy Tab A (2015). It seems that the issue we have is within layers, because as soon as we set layerableChildren to false, FPS goes from ~7FPS in static scene to ~35FPS. First assumption was that we are having way to many layers and complex scene, but even after reducing number of layers and optimising scene the FPS didn't change. The only change we see is that GPU time is increased with layers enabled. We are using pixi 6.2 and layers 1.0.5 Is there anything we could do or it is simply a hardware issue and we have to do without layers? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 22, 2021 Share Posted December 22, 2021 (edited) Do you use babel? there are some problems with certain configs, JS slows down significantly. Edited December 22, 2021 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 22, 2021 Share Posted December 22, 2021 Also it looks like Spine updateTransform() is more significant than layers. Maybe disable layerableChildren for spine? That reduces number of elements for layres to process seriously. Its strange through, its just one extra recursive tree search Quote Link to comment Share on other sites More sharing options...
Roninsi Posted December 22, 2021 Author Share Posted December 22, 2021 We don't use babel. That was my initial thought that spines are messing up things due to large number of items, but changing that didn't help at all. I also checked if layers got somehow flagged for render texture and they are not. We implemented an alternative solution with zIndexing and it works as expected. Performance is in the range of JS timings of layered solution, just without that GPU hoging. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 22, 2021 Share Posted December 22, 2021 Yep, If you know how to do layering for your particular project - you dont need layers 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.