Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Chrome Facebook Firefox Internet Explorer The Internet Games News

Facebook Develops HTML5 Gaming Benchmark 84

An anonymous reader writes "A couple of Facebook engineers are developing an HTML5 gaming benchmark. They write, 'Two weeks ago Bruce and I released JSGameBench version 0.1. Today marks the release of version 0.2, a much faster and cleaner version. We continue to learn both from tightening the code and from the strong HTML5 community. Version 0.2 reinforces our belief in HTML5 as a strong, horizontal platform for games and highly interactive applications across the web.'"
This discussion has been archived. No new comments can be posted.

Facebook Develops HTML5 Gaming Benchmark

Comments Filter:
  • by Anonymous Coward
    • Re: (Score:2, Funny)

      by Anonymous Coward

      Because Chrome fanboys* are a lot like Apple fanboys* -- unconcerned with objective evidence of any kind. They are unable to appreciate Mozilla's accomplishments and strengths because they weren't done by "their team" and anyone not on "their team" is TEH ENEMY. Course, "their team" is sort of like the fat couch potatoes who see their favorite football team win a game and say "fuck yeah, we won" and the only correct response is "really? I didn't see you out there on that field". So they won, you shallow

      • by Thing 1 ( 178996 )
        My new favorite response to office football discussions.
      • tl;dr watch this [youtube.com].
        • I never realized that religious wars over differing programs were like sports until now. I've never understand how people can argue over vi vs. emacs or Firefox vs. Chrome vs. Opera. I've never been into sports, either. Is it some sort of territorial thing?
          • by BZ ( 40346 )

            Not quite territorial. Tribal. There's your tribe, and the Others. And you have to protect your tribe from those Others....

    • hell even ie9 scores better. chrome outhta be ashamed.

      • Well, Chrome 11 is still in alpha though.

        And from what I noticed, while Chrome seems to "lag" other browsers when you compare versions, but due to it's ridiculously fast development cycle it almost always catches up if not surpass it's competition.

        People have been saying, IE9 has this, FF4 has that, since ... Chrome 7, and they both still aren't out yet.

        • No, Webkit is slow at compositing images, which I'm sure is what this benchmark reflecting. Firefox is really fast. Interestingly, this seems to be the case whether you use a bunch of HTML elements or canvas. The image rendering in Webkit needs an overhaul.

          I found this out when I was making this [ontographstudios.com]. Check it out in Firefox or Opera compared to Safari or Chrome.

          • Interesting.

            It's quite a lot more jerky in Safari and Chrome.

            Looks like this is something the Webkit guys need to work on.

  • Didn't they just release Chrome 10 beta? It's still on the front page of Slashdot (at this time).

  • by dotwhynot ( 938895 ) on Saturday February 19, 2011 @06:37PM (#35256476)
    Kind of ironic when Apple is the company that is most vocal about HTML5 replacing Flash. http://developers.facebook.com/attachment/scores.png [facebook.com]
    • by inpher ( 1788434 )
      They tested Chrome 11 and Firefox 4 and IE9 (all development versions) but not the development version of Safari: WebKit [webkit.org].
      • by inpher ( 1788434 )
        Oh, I forgot, the latest stable Chrome on OS X is 9.0.597.102 which makes Chrome 10 a development version also. So unless Chrome 10 on Windows is a shipping stable version, then Safari is doing pretty well.
        • Chrome 10 is BETA; Chrome 11 is more like nightly/alpha.

          • by inpher ( 1788434 )
            Still a development versions. Makes no sense to exclude development versions of Opera and Safari when they both are readily available.
            • My point was that Chrome 10 is still Beta on Windows. Absolutely agree with your main point that the other browsers deserved to have their dev versions tested too.

    • The fastest non-BETA browser is Safari 5 on OSX. Your point?

    • by Anonymous Coward

      I have first hand experience that browsing is sub-par on OS X using any mainstream browser - Safari, Chrome, FF. I recently bought a top end Macbook Pro (Core i7 Nvidia 330M) and was very unimpressed with browsing performance - scrolling and page rendering mainly. I installed Win 7 and both Chrome and FF4 beta really shine in performance department - so much so that I am very reluctant to go back to OS X. FF4 it is explainable that the hardware acceleration may be making a difference but Chrome by default d

    • Isn't this also because FF4 and IE9 both use hardware acceleration on Windows? (+ The points made already about comparing dev builds vs. stable)

      • by BZ ( 40346 )

        Yes, which is precisely the point. On Mac there is no way to easily do 2d hardware acceleration at the moment.

        • by inpher ( 1788434 )
          Core Animation [wikipedia.org] is the way to animate 2D on Mac OS X (and iOS). It is what is used to animate CSS (which the article touches upon). From what I can tell reading various developer blogs Core Animation seems pretty well liked.
          • by BZ ( 40346 )

            The problem is that Core Animation is too high-level. It wants to handle the entire animation itself, which makes it suitable for implementing CSS Transitions and CSS Animations (heck, the initial specs for those were basically "do what Core Animation does, because that's how we implemented it"), but not great for handling painting of web pages where you don't know what the web page will do next

            To put it in web terms, Core Animation is closer to being like SVG while Direct2D is closer to being like canvas.

    • They used different hardware for Windows and OS X. It looks like the Mac is actually more powerful though, so the OSX browsers should score higher if they were equally efficient.

      * For OS X: a MacBook Pro laptop, currently OS X 10.6.6, 4GB of RAM, 2.66 GHz Intel Core i7, and NVIDIA GT 330M with 512MB of RAM.
      * For Windows: a Lenovo T410s laptop, currently Windows 7 Enterprise, 4GB of RAM, 2.53 GHz Intel Core i5, and NVIDIA NVS 3100M with 512MB of RAM.

      • by tlhIngan ( 30335 )

        They used different hardware for Windows and OS X. It looks like the Mac is actually more powerful though, so the OSX browsers should score higher if they were equally efficient.

        * For OS X: a MacBook Pro laptop, currently OS X 10.6.6, 4GB of RAM, 2.66 GHz Intel Core i7, and NVIDIA GT 330M with 512MB of RAM.
        * For Windows: a Lenovo T410s laptop, currently Windows 7 Enterprise, 4GB of RAM, 2.53 GHz Intel Core i5, and NVIDIA NVS 3100M with 512MB of RAM.

        That makes no sense, really. Why use two different machine

  • Sanitary engineers? Advertising consultants? What engineering does fb do???

    • by maxume ( 22995 )

      They serve a massive number of complicated pages. They have been hiring people away from Google and such.

      • complexity where? what is new in fb?

        Google does some cool engineering but much of its work involves only routine IT skills.

        • by Anonymous Coward
          If you're really so good at making sites that serve billions of page views per month, has fairly low latency across the globe despite the huge volume and variety of requests being processed, has marketed itself successfully to half a billion active users worldwide, interface with hundreds of thousands of third party apps, work on a range of mobile devices... and no matter how crude and low-tech the front-end UI may feel to the end user, IT WORKS. If all these are just "routine IT skills" for you - ok, great
          • If you're really so good at making sites that serve billions of page views per month

            Creating a routine site which "serves billions of page views per month" is a routine IT skill. Hell, creating a routine site which serves millions of page views requires no expertise at all, and is something I'm sure lots of enthusiasts posting here have done before the days of point-and-click blogs and social networking sites. So, is Facebook routine?

            has fairly low latency across the globe despite the huge volume

            Fifteen years ago called. They want your cutting edge content delivery network research.

            has marketed itself successfully to half a billion active users worldwide

            No disagreement here. Facebook knows how to sell itself.

            interface with hundreds of thousands of third party apps

            Have you actua

            • Have you actually used the Facebook API? While this is the only "engineered" component of Facebook, it's (i.e. the Graph API is) basically a frontend to tables of personal information and junction/link tables between them. Again, the skill here is the routine deployment of an SQL database.

              They've actually develop their own non-relational database (Cassandra, now an Apache project).

    • Think in terms of "software engineers" - 500 million users is a hefty workload for any single site.

  • Except for the canvas element, there's not much HTML5 to be found here. It's mostly about DOM manipulation using JavaScript and about fancy new CSS styles.

    • by tepples ( 727027 )

      Except for the canvas element, there's not much HTML5 to be found here.

      It's precisely the 2D canvas that makes HTML5 game graphics practical.

      • by am 2k ( 217885 )

        It's precisely the 2D canvas that makes HTML5 game graphics practical.

        Wrong, canvas isn't suited for games in current browsers. Moving around divs is much faster and much easier (no need to do image loading manually, no need to handle redraws, etc). The only issue is alpha-aware hit testing, that's actually impossible with divs.

        See this presentation [slideshare.net] by Paul Backaus (the guy behind jQuery UI and a javascript game engine that was bought by Zynga) starting on slide 31.

        WebGL will change a lot there, when it's finally working in all major browsers (except IE of course).

        • Moving around divs is much faster

          One needs to horizontally flip an image when a character in a side-scrolling platformer faces the other way. Which browser can horizontally flip an image in a div? Otherwise, download size for sprite sheets doubles, as the server has to send both the unflipped and flipped versions of every cel.

          • by BZ ( 40346 )

            > Which browser can horizontally flip an image in a div?

            Any browser implementing CSS 2D Transforms (Firefox 3.5 or newer, Safari 3.2 or newer, Chrome at 7 and maybe even older, Opera 10.5 or newer, IE 9).

            So pretty much anything on the market that supports canvas supports transforms too.

            • by tepples ( 727027 )
              But good luck getting users of IE 8 on Windows XP, which isn't getting IE 9, to convince their local administrators to install the Google Chrome Frame plug-in. Flash Player gets a free pass because far more web sites require it than require the HTML features that Chrome Frame has and IE 8 lacks.
              • by Anonymous Coward

                You asked which browser supported horizontally flipping and image, and when shown that virtually every modern browser supports it, you responded with the one that doesn't. It would have been more gentlemanly to admit you were wrong.

                • when shown that virtually every modern browser supports it, you responded with the one that doesn't.

                  I apologize for being unclear. I should have written the following: "Half of users don't use a modern browser. Good luck convincing them to."

              • by BZ ( 40346 )

                Yes, but the original claim was that you have to do HTML5 games in canvas because you can't flip images otherwise. IE8 doesn't support canvas either, so if you're writing an HTML5 game with canvas you aren't targeting IE8 to start with.

  • Is Facebook releasing this to rationalize their creation of ineffective code?
  • I'm ignorant when it comes to web programming. When creating games using HTML5 do developers need to be more concerned with code stealing than with Flash? There are already many duplicate games on the web, will this further compound the issue?

"The medium is the message." -- Marshall McLuhan

Working...