Neat game! It plays nicely on a Nexus One, though it hangs on the
loading screen in Opera Mobile. Perhaps it isn't worth supporting that
browser, but it might be a quick fix.
A FPS display would be useful for us to share the performance we're
experiencing.
> I get varying performance when I user a "background imaged" DIV -
> despite the image being a small (filesize) .gif
> I have no idea why this would be the case.
I don't think the filesize matters for rendering speed, browsers need to
decompress images to draw them. You could try ensuring that the gif
doesn't have an alpha channel, which could make compositing easier on
the browser, but that's just a guess.
With iOS 5, it might be worth comparing the background div hack to just
doing it all in canvas.
Bruno
About 27fps in canvas mode and up to 4-5 in DOM. I'm little bit
surprised with this, I always have better results with DOM. Maybe you
can try to move the sprites with -webkit-transform: translate(x, y),
and animate them with -webkit-animation, it should be a way faster
than just changing top & left.