Re:Here's why Raphael.js and SVG totally rock.
by arethuza on Thursday April 22, 2010 @05:15PM
(#1286482)
What makes you say that? SVG is pretty much standard drawing primitives wrapped in a XML-based syntax.
[ Parent
| on HN ]
Re:Here's why Raphael.js and SVG totally rock.
by steadicat on Thursday April 22, 2010 @05:40PM
(#1286552)
Not exactly. SVG syntax describes a scene, it does not draw on screen directly.
When you animate an SVG image, you update the DOM. The browser then needs to parse the DOM (attributes) again, then clear the screen and draw each element again. This is a lot more work than just mapping the drawing primitives of Canvas to the lower-level GPU functions.
Check this presentation for the two technologies compared in terms of how much work is required for animation: http://www.slideshare.net/madrobby/i-cant-believe-its-not-fl...