Re:Sprite.js: HTML5 framework for creating efficient animati...
by olalonde on Thursday December 09, 2010 @09:13AM
(#1987459)
I was a bit curious what exactly this "system load" was. Turns out it's a ratio between the time the browser takes to draw the particles and the frequency at which it is supposed which to draw.
Re:Sprite.js: HTML5 framework for creating efficient animati...
by al_james on Thursday December 09, 2010 @10:36AM
(#1987788)
Because using Canvas requires you to manage redrawing the entire scene each frame in javascript. When using DOM based sprites, the browser takes care of the redrawing whenever you move an element (e.g. a spite).
Re:Sprite.js: HTML5 framework for creating efficient animati...
by chipsy on Thursday December 09, 2010 @02:17PM
(#1988710)
It's also a display model problem. A big bitmap that you draw on arbitrarily is just harder to optimize than a decomposable scenegraph.
This downside of Canvas also means it may become a dead-end for high-performance 2D, unless we discover some way of making all manipulations go completely on-GPU. Canvas is presently best suited for creation of individual textures and sprites, while other methods(CSS, SVG, WebGL) are better to render and transform them.
Re:Sprite.js: HTML5 framework for creating efficient animati...
by weixiyen on Thursday December 09, 2010 @06:44PM
(#1989806)
Always wanted to make an RPG game using sprites. Anyone ever tried?
I made a prototype a while ago just to demo some sprite movement while messing around with Node.js (it's concurrent multi-user): http://rpg.sleeperbot.com/
I like how he can fall off the ledge into an infinite drop.
This downside of Canvas also means it may become a dead-end for high-performance 2D, unless we discover some way of making all manipulations go completely on-GPU. Canvas is presently best suited for creation of individual textures and sprites, while other methods(CSS, SVG, WebGL) are better to render and transform them.
I made a prototype a while ago just to demo some sprite movement while messing around with Node.js (it's concurrent multi-user): http://rpg.sleeperbot.com/