MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / fpsCounter

Function fpsCounter

packages/core/src/widgets/debugPanel.ts:242–244  ·  view source on GitHub ↗
(fps: number)

Source from the content-addressed store, hash-verified

240 * A simpler alternative to the full debug panel.
241 */
242export function fpsCounter(fps: number): VNode {
243 return ui.text(`FPS: ${formatNumber(fps, 0)}`, { style: getFpsStyle(fps) });
244}
245
246/**
247 * Create a minimal error badge widget.

Callers

nothing calls this directly

Calls 2

getFpsStyleFunction · 0.85
formatNumberFunction · 0.70

Tested by

no test coverage detected