4.1.1 • Published 5 months ago

pixi-stats v4.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

pixi-stats

JavaScript Performance Monitor

This library provides an info box that will help you monitor your code performance.

  • FPS Frames rendered in the last second. The higher the number the better.
  • MS Milliseconds needed to render a frame. The lower the number the better.
  • MB MBytes of allocated memory. (Run Chrome with --enable-precise-memory-info)
  • DC Draw Calls made within one frame.
  • TC Texture Count used within one frame.
  • CUSTOM User-defined panel support.

Screenshots

fps.png ms.png mb.png custom.png

Live demo

https://prozi.github.io/oneforall/demo/?fps

Usage (pixi.js)

import { Application } from 'pixi.js';
import { Stats } from 'pixi-stats';

const { renderer } = new Application();
const stats = new Stats(renderer);

Usage (three.js)

import { Renderer } from 'three';
import { Stats } from 'pixi-stats';

const renderer = new Renderer();
const stats = new Stats(renderer);

Installation

npm install pixi-stats --save

Set CSS

#stats {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

#stats canvas {
  width: max(100px, 10vw, 10vh);
  height: max(60px, 6vh, 6vw);
  user-select: none;
}

Contributors

The credit goes to:

License

MIT

You can buy me a coffee

https://paypal.me/jacekpietal

3.1.1

8 months ago

3.0.2

8 months ago

3.1.0

8 months ago

3.0.1

8 months ago

4.1.0

5 months ago

4.0.1

5 months ago

4.0.0

5 months ago

4.1.1

5 months ago

4.0.2

5 months ago

2.0.2

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

3.0.0

9 months ago

1.3.7

12 months ago

1.0.9

12 months ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.10

12 months ago

1.3.9

12 months ago

1.3.8

12 months ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0-beta

2 years ago

1.1.0-alpha

2 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago