In my game 90%+ is spend drawing to canvas.
In some cases its better to use the DOM to render the game, especially if the platform has accelerated CSS3 transform and translate3d (like iOS).
What I did was to abstract the drawing so the game can render either to canvas or DOM depending on what is faster for the platform the code runs on.
In my game 90%+ is spend drawing to canvas.
In some cases its better to use the DOM to render the game, especially if the platform has accelerated CSS3 transform and translate3d (like iOS).
What I did was to abstract the drawing so the game can render either to canvas or DOM depending on what is faster for the platform the code runs on.