4.1.1 • Published 9 months ago
pixi-stats v4.1.1
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

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 --saveSet 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:
- https://github.com/mrdoob/stats.js/ - FPS, MS, MB counters
- https://github.com/eXponenta/gstatsjs/ - DC, TC counters
- https://github.com/Prozi/ - maintainer, fixes, updates
License
MIT
You can buy me a coffee
3.1.1
12 months ago
3.0.2
12 months ago
3.1.0
12 months ago
3.0.1
12 months ago
4.1.0
9 months ago
4.0.1
9 months ago
4.0.0
9 months ago
4.1.1
9 months ago
4.0.2
9 months ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
3.0.0
1 year ago
1.3.7
1 year ago
1.0.9
1 year ago
1.3.6
1 year ago
1.3.5
1 year ago
1.3.4
1 year ago
1.3.10
1 year ago
1.3.9
1 year ago
1.3.8
1 year ago
1.3.3
1 year ago
1.3.2
1 year ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.1.1
3 years ago
1.1.2
3 years ago
1.1.0-beta
3 years ago
1.1.0-alpha
3 years ago
1.0.8
3 years ago
1.0.7
4 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago