Live data from Hacker News

Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

labs.codecomputerlove.com

41–50 of 129 posts

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#42
post #38

The Flash side was unexpectedly slow, and comments on this same article on Reddit indicate that it is because they are doing a lot of JavaScript-to-Flash communication, which is unusual for a game, as well as enabling "wmode=transparent", which allows DOM elements to be positioned on top of Flash content, slows down Flash content, and is apparently unnecessary for this page.

HTML5 does all of that out of the box without any flags, so it's a fair comparison.

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#44

IBM thinkpad T61, 2GB ram, running firefox 3.6.8 for Ubuntu 9.10 (yeah yeah, I know), and Flash 10,1,82,76 . Ball is nice and smooth on HTML5 side, and kind of jerky on flash side. That could just be Linux+flash issues, but the animation for HTML5 is super-smooth, so I'm guessing it's just bad flash plugin.

Flash on linux sucks quite a bit unfortunately :(

Yeah in the old days it performed quite bad. Nowadays with the newer distro's like suse 11, (k)ubuntu and a couple of others I really havent found any more glitches than on any regular windows machine running flash..

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#45
Running Gentoo with Firefox 3.6.9 on a Core i7, HTML 5 is much more noticeably laggy while Flash (10.2.161.23) is perfectly smooth. In Chrome they're more or less equivalent. (Firefox's sluggishness could have something to do with many Firefox addons and having over 100 tabs open.)

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#46
post #11

Make sure you've excluded the URL from Vimium/Vimperator before playing!

Actually you don't need to do so - at least in Vimperator you can enter 'pass through mode' by pressing ctrl-z. This disables vimperator keys and allows you to interact with sites in 'normal way'.

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#47
MacOSX on a 2.16GHz Dual2Core Macbook with Chrome: HTML5 is really fluent here while Flash seems somehow laggy (I would guess 20 FPS or less).

I think I also found a bug in the Flash version. The ball got stuck somehow at the top bar.

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#48
post #44

Earlier quoted context omitted.

Flash on linux sucks quite a bit unfortunately :(

Yeah in the old days it performed quite bad. Nowadays with the newer distro's like suse 11, (k)ubuntu and a couple of others I really havent found any more glitches than on any regular windows machine running flash..

I develop with flash regularly on my Linux machine (Ubuntu 10.something), and it's definitely a bear compared to windows. I'll be happy for the day I can walk away from flash, but it makes computationally intensive consumer applications much easier/feasible. When we started out project almost three years ago, it was such a clear winner over JS, but now it's becoming a wash.

Re: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.

#50
post #45

Running Gentoo with Firefox 3.6.9 on a Core i7, HTML 5 is much more noticeably laggy while Flash (10.2.161.23) is perfectly smooth. In Chrome they're more or less equivalent. (Firefox's sluggishness could have something to do with many Firefox addons and having over 100 tabs open.)

are you sure its the flash that is smooth? I got have the same firefox on osx, and flash is laggy compared to the smooth js version. Flash is left, remember?
Post reply on HN