The difference will be if HTML5 can replace 80% of Flash uses in a performant manner. The video tag makes up a huge block of that 80%. The other 20% will always run like a dog on mobile hardware, no matter the technology.
But I'm hoping you're referring to a real-time 3D execution. If, please share a link.
Then can you explain why setting font size to 200 on this HTML5 demo http://www.ponticstar.com/projects/burning-words/
then my browser is slowing down to unusable?
I've seen burning words demo in Flash 4 from 2000 and it's very smooth even on a PIII machine.
It has however one core maxed out.
Or So They Say only advanced frames in Firefox when I moved my mouse. It actually ran for me in Chrome, but was pixelated (2x?), and still laggy (I'm guessing <24fps)
While it's cooler than anything I've ever done with javascript, I was watching more impressive demos on a Pentium 75 over a decade ago.
HTML5/Javascript/etc. appear to have a long way to go, performance-wise, before they catch up to Flash. And by the time it catches up to Flash 10, where will Flash be?
In Safari 5.0.1 your link didn't render a single frame in three minutes.
Firefox 4b3 did render, but the animation would not normally be watchable. The opening scene ran the best, probably around 15fps while during second and third scenes the galaxies would jump about an inch with each frame. I don't know what the fps were, but it was updating the screen less than one time per second with a single core maxed out.
Also, on launch, FF was using 76MB of RAM yet after the three minute test it was using 168MB of RAM.
So your link didn't function in one browser, used 2.8GHz of processing power and ~90MB of RAM in another yet was completely unwatchable.
Was I supposed to be impressed?
What if this were a Flash demo? Only be mildy interesting -- and that's only for the presentation itself. From a technology perspective it'd be ho-hum.
I think more important than that is that it's not even interactive. Interactivity with HTML 5 apps has light years to go compared with Flash even if browser vendors can lick the performance problem.
In other words, HTML 5 as a content delivery platform has a very long way to go...and as it is is certainly not anywhere near as a cross platform as Flash is. It's just not a swap out substitution for Flash yet and forces developers to produce software that's just simply not of the same quality as Flash is able to handle.
ActionScript is just JS plus some extra sugar. JS implementations have gotten hundreds of times faster in the last three years, while Flash has gotten slower. Slap a modern JIT on there and we should get some improvement.
Unfortunately, much of that content is what causes the problem. Using the artist tools (Flash CS3), you can generate content that simply fumes memory, without writing a single line of code. I'm not sure you can even fix those issues without re-authoring the art content.
What makes this worse is that anyone can embed one of these crappy SWFs in a webpage, causing the browser to fume memory too.
Could you provide links to back up your statement that it has gotten slower? I've never heard that before.
Can you elaborate?
> while Flash has gotten slower. Slap a modern JIT on there and we should get some improvement.
Adobe actually contributed to Tracemonkey's JIT as one of their effort towards ECMAScript engine unification, they even planned to write a engine for WSH Active Script, but failed. IMHO Flash is laggy because of the drawing part, but in this case HTML5 is also laggy as hell. Try set font to 100 in this demo:
I don't know about that. Flash may be proprietary, poor coding community, etc, but to suggest it is creeping down to JS performance is pretty outlandish.
Flash has two communities. One: Designers trying to do timeline animation with a mix of code snippets they've found. Two: Decent coders who implement the safest, best methods.
When Flash performance is subject, it tends to be Flash's poor design that gets the bad rap even though it tends to be the poor developer community at fault. In the same way, JS-based interactive content can also be coded poorly and perform poorly as a result.
Honestly, I've seen some pretty intense, balls-to-the-wall sites that I know would absolutely work at a crawl or snail's pace in JS, but work elegantly in Flash.
A full open-source file format would be a great move for Adobe.
But suppose Adobe's programmers are not completely incompetent? Perhaps Flash's execution model is genuinely unable to be optimized further. Or perhaps most Flash content in the wild runs at the limits of desktop performance, and that compositing vector graphics and text on top of video while running multiple VMs embedded in a webpage is just too much for a memory- and CPU-constrained device.
In that case, open-sourcing Flash would have little effect. Even if we had an optimal mobile Flash player, we'd still need everyone to rewrite their Flash movies to run well on it. That's why HTML5 has the advantage here: HTML5 content is being freshly written and tested for mobile platforms.