Live data from Hacker News

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

labs.codecomputerlove.com

61–70 of 129 posts

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

#61

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.

windows 7 and chrome with the same results. there is noticeable jerkiness as well as the ball flickering

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

#64
post #62

On my Motorola Droid running Froyo, the flash side is much smoother. On the JS side I couldnt really control it because the browser was also intercepting every keystroke and trying to put them in the url/search bar.

Interesting. A big complaint leveled against Flash was that it steals keyboard focus. This causes problems when you're playing a Flash game and then want to tab away from the screen. In this instance, that it doesn't delegate control to the browser is a feature.

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

#65

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.

Same experience here. Cool concept, wonder how it matches up to silverlight?

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

#68
post #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.

Could you clarify this comment? I'm unsure what HTML5 does out of the box, and what flags you're referring to. Thanks!

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

#69

This is depressing. It's 2010, and our computers have issues rendering Pong .

Granted, the ball is using more pixels to render itself than all the pixels available on an atari 2600, and it's going through 10 levels of abstraction layers rather than using assembly code to blit pixels directly to the framebuffer...

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

#70
I didn't notice any real difference between the two on Firefox 3.6.

The only complaint I had was that there was some sort of hit detection problem on the HTML5 side (the ball got caught inside the paddle, and the rally count shot up by about 30 in about a second). I can't hold it against the HTML5 code though, since the flash side did it to me too about 10 seconds later.

Post reply on HN