API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPerformanceLayer
Debug layer that renders a compact screen-space HUD (top-left) showing rolling-average FPS, per-frame time in milliseconds, GPU frame time, draw-call count, scene-node count, and how many of the last 120 frames ran over frameBudget, alongside a 120-sample frame-time sparkline. The layer asks the backend for hardware GPU timing when it first becomes visible and turns it off again in destroy. Devices that expose no GPU timer report `GPU: n/a`; where one exists, the value is the last frame whose results have come back, which trails the frame on screen. Enable via DebugOverlay or by pressing F1 while the canvas has focus.
import { PerformanceLayer } from '@codexo/exojs/debug'Debug layer that renders a compact screen-space HUD (top-left) showing rolling-average FPS, per-frame time in milliseconds, GPU frame time, draw-call count, scene-node count, and how many of the last 120 frames ran over frameBudget, alongside a 120-sample frame-time sparkline.
The layer asks the backend for hardware GPU timing when it first becomes visible and turns it off again in destroy. Devices that expose no GPU timer report `GPU: n/a`; where one exists, the value is the last frame whose results have come back, which trails the frame on screen.
Enable via DebugOverlay or by pressing F1 while the canvas has focus.
destroy(): voidrender(backend: RenderBackend): voidvisible: boolean