OptionalkeepAlive: PerfKeepAlivePrivate ReadonlyelPrivate ReadonlynumPrivate ReadonlyunitPrivate ReadonlycanvasPrivate Readonlyctx2dPrivateisPrivatemodePrivateframePrivateframePrivateframePrivatemsPrivateframePrivatewindowPrivatefpsPrivatelastPrivate ReadonlyfpsPrivate Optional ReadonlykeepThe widget element — the caller mounts it (e.g. docked in the control rail).
Private ReadonlyonPrivate ReadonlyonPrivaterenderPrivatedrawToggle visibility. Subscribes to frame timing only while visible.
Cycle the displayed metric: FPS → ms → graph → FPS.
PrivatesubscribePrivateunsubscribe
Compact, theme-matched performance readout (the vendored replacement for stats.js). Shows one metric at a time and cycles FPS → frame time (ms) → a scrolling graph on click, driven by the animation loop's
frame-start/frame-endevents (subscribed to only while visible). Preserves the original#luxar-statselement id and toggle/show/hide/dispose surface so the P-key InputHandler and control-rail gauge drive it unchanged.