Jump to content

UI freezes in iOS when using WebView in CocoonJS for executing code in background thread


sviudes
 Share

Recommended Posts

I need to execute some AI code, and it takes too long. So I use web workers when executing the game in a browser, and a webview (that executes code in a different context) for CocoonJS. I tested my game in Android, using CocoonJS launcher,, and is working ok, the code is executing in a background thread, and UI is not blocked. But I tested it in iOS (using CocoonJS launcher too) and UI is blocked while IA code is executed....

 

Do you know why this behavior on iOS?

 

 

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...