Skip to content

five-on-it / apps/client/src/renderer/frame-stats

apps/client/src/renderer/frame-stats ​

What a frame costs, for the HUD, window.__poc().render and the benchmark (npm run perf, window.__perf()): how long the game's own work took (the ticks, the snapshots, the drawing: everything the frame callback does), how many ticks it ran, and the scene's counters (draw calls, meshes the scene evaluated as active, meshes in the scene) as Babylon's instrumentation reads them. The work is kept per second: its mean and its worst, so a dip shows even between two reads.

Classes ​

Interfaces ​

Type Aliases ​