@armathai/pixi-stats

Pixi Performance Monitor

Usage no npm install needed!

<script type="module">
  import armathaiPixiStats from 'https://cdn.skypack.dev/@armathai/pixi-stats';
</script>

README

npm version styled with prettier

pixi-stats

Pixi Performance Monitor (Textures, Draw Calls) for WebGL applications. Uses stats.js under the hood.

Install

$ npm install @armathai/pixi-stats # for npm users
$ yarn add @armathai/pixi-stats # for yarn users

Using

import from '@armathai/pixi-stats';

class Game extends PIXI.Application {
    public constructor() {
        super({ resizeTo: window, backgroundColor: 0xcdcdcd });
        document.body.appendChild(this.view);
        document.body.appendChild(this.stats.dom);
        this.ticker.add(() => {
            this.stats.update();
        });
    }
}