title: PhoneGap games, canvas and slow javascript
body: <p>So I built what I hoped would become a simple android game. I first built a web version to getting it working (<a href="http://scolvin.com/ballgame" rel="nofollow">http://scolvin.com/ballgame</a>) then moved it to PhoneGap and used accelerometers to control the game. The only problem (and it's a show stopping problem) is that the result is horrifically slow (updates i guess about once a second instead of ever 20ms ish).</p>
  
  <p>Is this just how slow phonegap is, with no current solution? Or is there some golden bullet I'm missing?</p>
  
  <p>The game uses easeljs and box2d-web.</p>
  
  <p>What's odd is it seems to run at a reasonable speed on android chrome, but very slow on android's "browser" (which I seem to recall is based on firefox?) and in phonegap which presumably uses the same html renderer/js interrupter.</p>
  
  <p>I've tried simplifying the game, getting rid of as much as i can, using <code>setInterval</code> rather than <code>accelerometer.watchAcceleration</code> all to no avail.</p>