Giter VIP home page Giter VIP logo

bunny-mark's Introduction

Bunny Mark

The purpose of this tool is to crudely sanity-check relative performance changes in PixiJS between release versions and branches. It is not designed to show off the performance capabilities of PixiJS and does not reflect typical, real-world rendering conditions. Different devices will have different performance thresholds.

Preview

https://pixijs.io/bunny-mark/

Rebuilding From Source

Setup

Requires to build from source.

npm install

Build

Build the source code.

npm run build

Previewing

Open the deploy folder within a browser.

npm start

Local Previewing

If you want to test a local build, simply drop pixi.js into the deploy folder. This should be a dist build of pixi.js.

Then start running the Preview, if it's not running already:

npm start

bunny-mark's People

Contributors

bigtimebuddy avatar ivanpopelyshev avatar luxaritas avatar nikkikoole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bunny-mark's Issues

Only bitmask transparency when "transparent" option enabled.

When selecting the "transparent" option, I would expect bunnymark to use alpha transparency for blending over the background. Instead seems to use bitmask transparency and looks like this:

image

Unlike the animated bunnys, the bunnys at the bottom have full alpha transparency.

image

Would it be possible to add an option for switching between alpha and bitmask transparency. I know almost nothing about WebGL, yet, but my project would required full alpha transparency for sprites, so this issue report doubles as a question if alpha transparency with sprites is possible at all.

powerPreference shouldn't be boolean

I was trying bunny-mark in Safari (Version 11.0.3 (13604.5.6)) on High Sierra 10.13.3 Beta.

I noticed a Type error. Turns out it's because the powerPreference is filled with a boolean value because of the checkbox in the input form. I think it should be a string 'default', 'high-performance' or 'low-power' based on the spec (https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.2.1).

Not sure how to change the HTML form to make it more sensible, couldn't easily figure out where and how the form is parsed and passed to the initialization of the Pixi canvas.

Test doesn't start with new versions of Pixi.js

Attempting to run the test with all the default settings against the dev branch results in the test breaking with this error:

Uncaught TypeError: Right-hand side of 'instanceof' is not an object
    at BunnyMark.ready (index.js:228)
    at VersionChooser.stop (index.js:670)
    at VersionChooser.update (index.js:655)

It is checking if the renderer is an instance of PIXI.CanvasRenderer and my guess is that that is not bundled with what it is pulling due to the split between pixi.js and pixi.js-legacy.

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.