Live data from Hacker News

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

labs.codecomputerlove.com

51–60 of 129 posts

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

#53

this should use a constant FPS game loop ( http://dewitters.koonsolo.com/gameloop.html ). Currently, the flash side is much faster; supposedly due to it rendering faster in my browser.

wouldn't that defeat the purpose?

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

#54
post #12

Interesting problem of tuning both sides speed. Here (small Atom netbook hooked to big screen) the ball moves noticeably faster on the Flash side. To the point of making me lose a Pong match with myself.

1.6GHz MacBook Air (late 2010): After an initial stutter on the HTML5 side (where the ball was served), both sides perform equally to my eyes.

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

#55
post #12

Interesting problem of tuning both sides speed. Here (small Atom netbook hooked to big screen) the ball moves noticeably faster on the Flash side. To the point of making me lose a Pong match with myself.

Perhaps you're better at controlling the {A,Z} keys with your left hand than you are at controlling {K,M} with your left?

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

#56
post #53

this should use a constant FPS game loop ( http://dewitters.koonsolo.com/gameloop.html ). Currently, the flash side is much faster; supposedly due to it rendering faster in my browser.

wouldn't that defeat the purpose?

I guess it would if the idea is to show one has superior performance over the other. I was just commenting from the perspective of having a more uniform experience on both sides.

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

#57
post #12

Interesting problem of tuning both sides speed. Here (small Atom netbook hooked to big screen) the ball moves noticeably faster on the Flash side. To the point of making me lose a Pong match with myself.

Pre-Atom Eee 900, Linux, Chrome 6, the Flash side is almost unplayably sluggish, while the HTML5 side zips along.

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

#59
Gah. People please stop using Z as the default key for down (or whatever). If you can't detect my keyboard layout use keys that are the same on every keyboard, no matter the language, or provide an option to configure the keys. My Z (on a Slovenian keyboard) is where your Y is (on your English keyboard). This makes the game unplayable for me, since my "down" key is above my "up" key, which makes it almost impossible to play. /rant over

Awesome demo tho. Would love to see source of the flash part (maybe I missed it) so we could compare the source, not just performance (which seems to be about the same on my 5 year old laptop).

edit: who's now working on a (HTML5|Flash) vs Silverlight demo? That would be even more awesome.

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

#60
I would definitely like to see the source for this. Over time, it's become a lot more clear to me that Flash's defaults (and the normal tutorial code you read) are tuned for high resolution advertising contexts, mostly, so the need for taking steps to get good real-time / interactive performance out of Flash isn't always totally obvious to people.
Post reply on HN