45 comments

[ 0.26 ms ] story [ 97.2 ms ] thread
This sure is impressing, but nobody said Flash doesn't have some good features. The question is about whether anybody who wants to can implement a player for this page.
The hero example is a lot better than the one you posted.
Neat. This example is nowhere near as pretty as the Flash examples, but it's interesting that my CPU is barely doing anything even when walking around. In the Flash version my CPU is pegged just sitting there doing nothing.
I am pretty sure if HTML5 implement the same scene as bunker.swf it would hog much much more CPU.

http://www.ponticstar.com/projects/burning-words/

Try set the font to 100, and see if it's still as smooth as you thought.

Canvas is by all means a CPU hog and much slower than software-mode Flash.

http://vimeo.com/10553088

But hey, Flash is dying, etc

Flash Games, demos, and webcomics are nice.

However:

No matter the codec or operating system, we should not NEED Flash to view video on the Web.

i completely agree

however, suppose you are about to design a video site for the common public back in 2005, what technology would you choose? quicktime? realplayer? windows media player?

i dont think flash video is unneeded any soon, even if html5 has a 70% adoption rate, people would still need flash for h.264 fallback

150 in Opera runs smooth
(comment deleted)
Not respecting dvorak keyboard layout, even in 2008?
Lack of universal acceptance was one of the cons you either accepted, or naively overlooked, back when you decided dvorak was the way to go. It'd be nice to see it work in more places, sure, but it just ain't... you're conflating 'should' and 'could'.
(comment deleted)
The issue with ignoring dvorak is that any web browser (heck, nearly any application) will handle it just fine. Flash apparently doesn't, or makes doing simple things (like capturing +/- keystrokes) hard enough that people don't do them in a generic way.

Given that Flash is primarily used in the web browser, and most of the world doesn't use QWERTY, it's rather shameful.

A quick test on my end shows that the Flash example indeed does not respect dvorak, while a Javascript key event captures the same code regardless of layout. Including Japanese. How's Flash handle that?

Alternative keyboard layouts work for pretty much everything. Almost all applications rely on the OS to translate key mappings, so there's virtually no incompatibility to worry about. I don't think I've ever come across an application that didn't work just as well in Dvorak as Qwerty.
A snarky Apple fan could respond in the same way with regard to the absence of Flash on the iPhone products.
And additional mouse buttons.
It's just plain displacement mapping. It's a very simple (and old), but versatile technique allowing a large amount of effects to be done. The first time I saw this was in 93 or 94, rendered in real time in 256*256 in 25 fps, on an Amiga running a 14mhz 68020 processor. THAT was impressive to me, but seeing this 15 years later in 15-20 fps in Flash on a 2ghz machine just isn't.
Agreed - Also worth looking at the other examples est posted lower in the discussion. Those are more interesting.
Exactly. And flash was introduced 14 years ago. It really has no excuse for not having better performance at this point. I'm glad its dying.
(comment deleted)
Of course the real difference is a lot higher as it's not just about the clock rate - an awful lot of improvements were made in areas such as the pipeline, caching, floating-point support etc. so I wouldn't be very surprised if the real performance ratio was higher than 1000.
Floating point ops used to take a while. A 16Mhz Amiga with a floating point co-processor might have had one of these:

http://en.wikipedia.org/wiki/Motorola_68881

Yeah, 16 Mhz ==> 160 KFlops, if you believe wikipedia. Supposedly the i7 has a peak of 79 GFlops. Sure, you can't get all of that performance out (either then, or now), but 79,000,000 / 160 is a bit larger than 143.

You used to measure the number of cycles an integer multiply costed, in the dozens or hundreds. Now it takes 1/4 of a cycle. A factor of 10,000 might be a fairer number

(comment deleted)
I remember something exactly like this except it was an Asian lady and it looked like a real photo. Also instead of looking away from the cursor her eyes were following the cursor.
It's so slow.. According to hackermom the 14Mhz Amiga could do this at 25 fps, any idea why this is so slow on modern computers?
It's not slow on modern computers. It's slow on these environments that weren't made to execute code quickly, much less do any pixel manipulation. How many orders of magnitude more instructions is it to set a pixel on an Amiga, versus setting it via JavaScript?
Because it's running in canvas? In other words, it's running within abstraction layer upon abstraction layer, with various other abstraction layers involved to help make sense of the fact that there are too many abstraction layers.

The amiga code was probably pretty close to talking to the graphics driver directly. Canvas is cool, but in terms of performance it's never really going to compete with native code, or even with flash for that matter since flash can remove some complexity by only building for a single, predictable, optimized environment.

That's why everyone is embracing GPU powered graphics.
> it's running within abstraction layer upon abstraction layer, with various other abstraction layers involved to help make sense of the fact that there are too many abstraction layers.

"Every problem can be solved by adding another layer of abstraction--Except for the problem of having too many layers of abstraction"--Alan Perlis

"Graphics driver" still sounds too complex. The code was probably poking bytes to the memory segment mapped directly to the display - just like in DOS days, where each byte of the 0xA000 segment represented a pixel when using a VGA 320x200 resolution, 256 colors palette.
Not in Chrome it isn't!
It's just as fast in Opera!
'Similar', but not the same - it's only changing the color and not actually displacing the bitmap. Big difference.
Really? What dimension of reality are we living in if we're even considering comparing this to canvas today?
Dramatically faster on Chrome vs. Firefox. I think Google is right... javascript speed does make a difference.
And how would this improve the web experience? (considering you can do similar stuff with canvas as well...)