Statistics toolkit to gather performance data
- fps: frame rate;
- memory: CPU memory;
- drawCall: draw call count;
- triangles: triangle count;
- lines: line count;
- points: point count;
- textures: texture count;
- shaders: shader count;
- webglContext: webgl context type;
The Stats
is published on npm with full typing support. To install, use:
npm install @galacean/engine-toolkit-stats
This will allow you to import stats entirely using:
import * as Stats from "@galacean/engine-toolkit-stats";
or individual classes using:
import { Stats } from "@galacean/engine-toolkit-stats";
If you don't want DOM panel, you can use Core directly:
import { Core } from "@galacean/engine-toolkit-stats";
and call update
manually.
The engine is released under the MIT license. See LICENSE file.