Jump to content

is there any HTML5 mobile app wrapper that support Web workers for Android ?


Ezelia
 Share

Recommended Posts

I was surprised when I discovered that there is no web worker support on android stock browser (it was supported on Android 2.1 then abandonned :/  ==> http://caniuse.com/#search=web%20worker ) .

now all HTML5 applications wrappers (Phonegap, Titanium, coccoon ...etc) does not support web workers since they use Android webview witch is based on Android stock browser.

 

is there any workaround for that ? without web workers I can't imagine any game with good AI  :(

Link to comment
Share on other sites

I'm already using this to test how the game will look on mobile, but it's not a solution because everytime a web worker starts processing the game hangs until it finishes ... this is not acceptable on a mobile game especialy with animations :)

 

 

I'll maybe need to rewrite my code :/

Link to comment
Share on other sites

@previous answer:

gifsockets are synchronous as they are calculated on the CPU (as there is no GPU side codec implementation due to having no initial frames amount inside the header), so it's blocking the whole UI stack - no matter if you are running it in threads or not, it will only run smoothly on intelligent threads being run on different CPU cores, which is impossible for single threaded JavaScript applications (as most engines have concurrent threads).

 

 

Did you try out the nodejs WebGL wrappers that are known to work on Android?
I'm pretty stuck with my v8gl runtime, but I'll be developing it further in around a month or so when lycheeJS 0.7 is shipped.

 

WebSockets v13 is implemented in the lycheeJS' node and html5 platform, so there's a binary reader that handles the (char) streams bitwise.

 

Maybe it helps you to implement it manually:

https://github.com/martensms/lycheeJS/tree/forge/lychee/platform/nodejs/net

 

~Cheers

Link to comment
Share on other sites

@martensms I was looking for a solution with minimal modification to my current code :) webGL will need to rewrite my renderer ...

beside that, I'm working on another aproach to create native mobile games using TypeScript ; no wrapping nor webview but real native output.

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