News for hackers. Stuff that matters.
Re:Flash is faster, better, stronger than HTML 5 on phones? by modeless on Monday September 20, 2010 @01:44AM (#1707933)
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.

Re:Flash is faster, better, stronger than HTML 5 on phones? by brah on Monday September 20, 2010 @02:53AM (#1708045)
As a developer, i hope Flash and html5 will coexist ,innovate and outperform each other to blow our minds.
Re:Flash is faster, better, stronger than HTML 5 on phones? by timdorr on Monday September 20, 2010 @03:35AM (#1708127)
The same guy did some demos of CSS3 animations on the same hardware: http://www.blackcj.com/blog/2010/09/19/css3-excels-on-ios-bu...
Re:Flash is faster, better, stronger than HTML 5 on phones? by est on Monday September 20, 2010 @01:57AM (#1707957)
Is Flash on mobile devices hw accelerated or sw rendered?
Re:Flash is faster, better, stronger than HTML 5 on phones? by brah on Monday September 20, 2010 @02:53AM (#1708044)
Yes. 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.

Re:Flash is faster, better, stronger than HTML 5 on phones? by modeless on Monday September 20, 2010 @04:14AM (#1708193)
They 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.
Re:Flash is faster, better, stronger than HTML 5 on phones? by modeless on Monday September 20, 2010 @02:23AM (#1707998)
Both. 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.