28 ms·
That was OCanvas (ocanvas.org). It's perfectly fine for vector stuff, but our game is very bitmap heavy. We started getting FPS rates as low as 10 with only 5-1
by ricardobeat 15y ago
That was OCanvas (ocanvas.org). It's perfectly fine for vector stuff, but our game is very bitmap heavy. We started getting FPS rates as low as 10 with only 5-10 characters on screen (using animated/scaled Sprite objects). Using DOM + transforms we can get up to 500 chars on screen without any lag whatsoever.
We didn't ditch canvas altogether though, we render all the scenes in a background canvas and use DOM only for the moving chars. I suspect it's possible to get much better performance by pre-rendering all scaled objects, but haven't had the time to try it. CAAT performs incredibly well with bitmaps on canvas: http://labs.hyperandroid.com/static/caat/ http://labs.hyperandroid.com/static/caat/