Jump to content

iOS: RAF fire takes much longer than actual processes / zoom focus issue


ZYandu
 Share

Recommended Posts

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! ? 

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...