Flash is faster, better, stronger than HTML 5 on phones?
9to5mac.com
9to5mac.com
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.
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.
Given that we're in the middle of a browser war, I don't see how Adobe could possibly compete. In order to beat WebKit in the long term, they would need to out-spend and out-think the combined forces of Apple, Google, Nokia, KDE, RIM, Palm, Samsung and a small army of other developers.
I have to give credit to Adobe - Flash is fast, easy and generally works well. There's a hell of a lot wrong with it, mainly the lack of standards compliance and how little effort they've made on accessibility, but it is undoubtedly a good product. That's not really the question we're interested in though - the relevant question is what will be faster in a year or eighteen months. I will be absolutely astonished if Adobe isn't comprehensively beaten by the end of next year.
That isn't to say Flash is dead, there are a lot of avenues for Adobe to pursue and they still have huge momentum, but they're going to have to either up their game, specialise, or face the inevitable fate of any technology that doesn't iterate fast enough.
If anything, I would think that Flash has the potential to be faster since it was designed from the beginning to do only what it does, whereas <canvas> is an extension to the already massively complicated technology blob that is HTML.
Looks like the improved version erases just the previous frame's ball, instead of clearing the whole canvas (just my best interpretation -- I'm not familiar with the canvas API).
EDIT: This link details what's going on here:
One important optimization rule to follow is to reuse as many pixels as possible between frames. What I mean by that is the fewer pixels that need to be processed each frame, the faster your program will run. A good example of this is when erasing pixels with the clearRect(x,y,w,h)method, it is very beneficial to clear and redraw only the pixels that have changed and not, for instance, a full screen 1920x1280 sized canvas. Unlike the Flash Player’s redraw regions, this management of "dirty rectangles" needs to be done manually for canvas. [http://www.kontain.com/fi/entries/94636/]
Apparently Flash Player optimizes the reuse of pixels automatically, and MobileSafari does not.
Speed Test: Flash vs HTML5 On The Nexus One [video]
Everyone even relatively familiar with graphics rendering should involuntarily cringe when hearing comparisons like this.
See the light: http://www.mvps.org/directx/articles/fps_versus_frame_time.h...
I was pleasantly surprised when I seen my HTC Desire running flash, but then after a few weeks it just got annoying and I turned it off, battery performance went up, and I have not once had an inclination to turn it back on.
There's a big difference between comparing a "good written" flash thing which you make yourself and having the flash enabled while browsing the web. With first you can demonstrate Flash's superiority, with the second you're picking up all the incompetent code written by anybody and almost 100% of it is used only to make something totally unimportant just moving to get an attention from you.
When we consider Flash as the content delivery mechanism and not the movement based attention taker we're left only with videos and games on the web. But both should be optimized for mobile. For video, transcoding is needed. For games, better writing them native.
That's why I intend to use Opera Mini as long as it works.
I have it on ondemand, and while I seldom enable it, when I do I appreciate that I have the option.
"--Call me an Apple Fanboy, fine. But there's a reason I've got work, how bout them Windows Developers?--"
Is he actually implying there is no work for Windows developers?