Jump to content

Android stock browser and Web workers


Ezelia
 Share

Recommended Posts

Hello All,

 

I'm trying to port my game (germiz.ezelia.com) to Android, and since I don't have time to translate the whole code to Java I opted to phonegap and made some optimisation in my rendering engine.

 

everything goes just fine ... everything but web workers !

 

to get reactive Artificial Intelligence I use a web worker, but Android stock browser don't seem to support it :(

the strange thing is that the same code works just fine if I access the game throught browser (and not the webview).

 

I then tried Titanium appcelerator and noticed the same thing, and with debugger Worker object is not known in wrapped HTML5 apps :/

 

my only option now is a webworker shim but it makes the game too slow and laggy (not playable at all).

 

is there any solution for that ?

what I need is just to run my AI resolver in a separate js thread.

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