@galacean/engine-toolkit-stats

v1.3.9
Statistics toolkit to gather performance data

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-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.

Links

License

The engine is released under the MIT license. See LICENSE file.

npm i @galacean/engine-toolkit-stats

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 9/24/2024

Downloads