ZYandu Posted July 24, 2019 Share Posted July 24, 2019 Has anyone ever seen this where my RAF wants to take up the entire frame (~15ms) but the processes within don't take very long (~3ms)? My app is running iOS on Cordova with wkwebview. Long RAFs: https://imgur.com/a/2KVeKJZ Processes within one RAF: https://imgur.com/a/CnUNSfk BUT When I zoom into the canvas (by doing the two finger swipe on the iPad) and then zoom out, the RAF fixes to take up only ~5ms total. After zoom trick: https://imgur.com/a/RSzmrTI Is the PIXI canvas loosing focus, like as if I went to another tab on the web? I'm not sure what is happening here, thanks for any help! ? Quote Link to comment Share on other sites More sharing options...
jonforum Posted July 24, 2019 Share Posted July 24, 2019 i don't know why you use canvas app for zooming with pixijs but did you have --enable-gpu-rasterization Am really not sure if this can help but you can maybe experiment with result. From what i know, it should affect DOM painting and scaling elements.https://www.chromium.org/developers/design-documents/chromium-graphics/how-to-get-gpu-rasterization ZYandu 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 25, 2019 Share Posted July 25, 2019 > but the processes within don't take very long then its on GPU side. You need better profiling tool. I remember that when I last time used chrome profiler, I saw bars of JS rows and then bar on GPU row, and RAF started immidiately after las GPU bar ended ZYandu 1 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.