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

Function getFrameTimeStyle

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

* Get color style based on frame time.

(ms: number)

Source from the content-addressed store, hash-verified

116 * Get color style based on frame time.
117 */
118function getFrameTimeStyle(ms: number): TextStyle {
119 if (ms <= 18) return GOOD_STYLE;
120 if (ms <= 33) return WARN_STYLE;
121 return ERROR_STYLE;
122}
123
124/**
125 * Create a labeled value row.

Callers 1

debugPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected