Giter Site home page Giter Site logo

jastec / jsgamebench Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookarchive/jsgamebench

1.0 1.0 0.0 18.92 MB

Client and server code to exercise browsers under game-like conditions to measure how many sprites can moved around on the screen at once.

License: Other

jsgamebench's Introduction

jsgamebench

JSGameBench exists to explore HTML5โ€™s game performance limits. For version 0.1, the focus is sprite performance a player is likely to see. Scoring is how many sprites are drawn, so large scores are better. Going forward, we want to collect peak and average scores for browsers across a range of hardware configurations. We hope JSGameBench helps the community improve game performance and we look forward to HTML5 game engine developers improving on our ideas and crushing these number!

For each render path, JSGameBench draws as many moving, animating sprites as possible at 30fps against a background with both axis-aligned and rotated sprites. We try both because significant performance differences between the two indicate flaws or oversights in current rendering techniques. More importantly, while animation can be used instead of sprite rotations, it is often an unacceptable trade off that game developers should not be forced to make.

The final score is the geometric mean of the axis aligned and rotated scores. Geometric mean is used to prevent a high axis aligned score from hiding the poor rotated performance.

License

JSGameBench is licensed under the Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0) except as noted otherwise.

How to run it

install nodejs

Get the stable build of nodejs from http://nodejs.org/#download ./configure --prefix=~/local make;make install add ~/local/bin to your PATH

npm

Install npm node package manager https://github.com/isaacs/npm curl http://npmjs.org/install.sh | sh

install node socket.io package

npm install socket.io

run it (runs on port 8081 by default)

node bin/jsgamebench

Debugging

Install node-inspector for server debugging: (https://github.com/dannycoates/node-inspector)

npm install node-inspector

jsgamebench's People

Contributors

conorwdickinson avatar brucer avatar nincode avatar cory avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.