Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 684 Bytes

File metadata and controls

37 lines (25 loc) · 684 Bytes

Performance API

ExoJS exposes practical runtime counters through renderManager.stats.

RenderStats Fields

  • frame
  • submittedNodes
  • culledNodes
  • drawCalls
  • batches
  • renderPasses
  • renderTargetChanges
  • frameTimeMs

Application resets stats each frame via renderManager.resetStats().

Example

const stats = app.renderManager.stats;
console.log(stats.drawCalls, stats.batches, stats.culledNodes, stats.frameTimeMs);

Benchmark Harness

A repeatable baseline benchmark exists at:

  • test/perf/rendering-benchmark.ts

Run:

npm run perf:benchmark

Use this for before/after performance comparisons in renderer/runtime work.