- From: Alex Danilo <alex@abbra.com>
- Date: Tue, 10 Jun 2014 23:07:50 +1000
- To: Erik Dahlström <ed@opera.com>
- Cc: www-svg@w3.org, "Boris Zbarsky" <bzbarsky@mit.edu>
>> On 6/9/14, 11:09 PM, Rik Cabanier wrote: >>> However, requestAnimationFrame should result in smoother animation than >>> SMIL. >> >> Why, exactly? >> >> -Boris > >In Blink (Chrome/Opera), svg animations (aka SMIL) are internally driven >by rAF too, so there should be no difference. Boris is right, sorry. JS driving the animation uses the JS engine to do the animation calculations instead of native code which can also take advantage of any browser internals it wants, like layers, etc. When JS execution speed matches C/C++ this _might_ be moot but the best asm.js results still show 50% slow-down (addmittedly on non-critical render times from what I've seen), however claiming rAF is equivalent to SMIL for performance is a bit of a stretch. To claim rAF is smoother than SMIL needs some hard data to support, and I'd bet that's lacking, please contradict this with some numbers if I've missed something. rAF can at best match but not beat (or be smoother than) native SMIL if the stars are aligned nicely:-) Alex
Received on Tuesday, 10 June 2014 13:08:25 UTC