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

Function getFpsStyle

packages/core/src/widgets/debugPanel.ts:109–113  ·  view source on GitHub ↗

* Get color style based on FPS value.

(fps: number)

Source from the content-addressed store, hash-verified

107 * Get color style based on FPS value.
108 */
109function getFpsStyle(fps: number): TextStyle {
110 if (fps >= 55) return GOOD_STYLE;
111 if (fps >= 30) return WARN_STYLE;
112 return ERROR_STYLE;
113}
114
115/**
116 * Get color style based on frame time.

Callers 2

debugPanelFunction · 0.85
fpsCounterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected