@galacean/engine-toolkit-stats
v1.6.0
Published
Statistics toolkit to gather performance data
Maintainers
Keywords
Readme
Stats
Statistics toolkit to gather performance data
Features
- 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;
npm
The Stats is published on npm with full typing support. To install, use:
npm install @galacean/engine-toolkit-statsThis 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.
Links
License
The engine is released under the MIT license. See LICENSE file.
