3 ms·
The problem is Apple hasn't enabled hardware acceleration for Canvas on Mobile Safari. If this demo was instead using CSS transforms and animations, which are
by modeless 16y ago
The problem is Apple hasn't enabled hardware acceleration for Canvas on Mobile Safari. If this demo was instead using CSS transforms and animations, which are hardware accelerated, it would run locked at 60 FPS no problem.
Hardware acceleration for 2D Canvas would be nice to have, but what would be even better is WebGL. That would blow Flash out of the water for sure. WebGL was recently enabled by default in Firefox 4 nightly builds so it's looking like a lock for the final release; hopefully Apple and Google follow suit.
- est 16y agoIs Flash on mobile devices hw accelerated or sw rendered?
- modeless 16y agoBoth. I could be wrong, but I don't think this particular demo uses Flash's hardware acceleration support. I'm not surprised that Flash's software rasterizer is faster than Apple's Canvas.
- brah 16y agoYes. Hardware acceleration is available in Flash10.1 for Android. Flash leverages on hardware acceleration only when absolutely needed( for H.264 decoding etc ). As a simple ball bounce animation, i dont think hardware acceleration kicks in during this demo. With all the html5 love Apple is showcasing (apple/html5), they should have enabled hardware acceleration for html5 long before.
- modeless 16y agoThey did enable hardware acceleration for some parts of HTML5 (and it's quite impressive when used), just not for Canvas. They're not alone; no implementation of Canvas was hardware accelerated until IE9. If you ask me, hardware acceleration of Canvas is a no-brainer, and it should have been in the very first implementation. It's frankly embarrassing that it took IE9, of all things, to make browser people realize that graphics hardware is orders of magnitude faster than software rasterizers, and that's important.
- deleted 16y ago[deleted]
- brah 16y agoAs a developer, i hope Flash and html5 will coexist ,innovate and outperform each other to blow our minds.
- timdorr 16y agoThe same guy did some demos of CSS3 animations on the same hardware: http://www.blackcj.com/blog/2010/09/19/css3-excels-on-ios-but-lacks-on-android/ http://www.blackcj.com/blog/2010/09/19/css3-excels-on-ios-bu...