MCPcopy Create free account
hub / github.com/GCWing/BitFun / scheduleNextFrame

Function scheduleNextFrame

src/web-ui/src/shared/utils/startupTrace.ts:624–637  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

622
623 let remainingFrames = frameCount;
624 const scheduleNextFrame = () => {
625 requestFrame(() => {
626 remainingFrames -= 1;
627 if (remainingFrames <= 0) {
628 trace.markPhase(phase, {
629 ...(data ?? {}),
630 frameCount,
631 durationMs: roundDurationMs(now() - startedAt),
632 });
633 return;
634 }
635 scheduleNextFrame();
636 });
637 };
638
639 scheduleNextFrame();
640}

Callers 1

Calls 2

roundDurationMsFunction · 0.90
markPhaseMethod · 0.80

Tested by

no test coverage detected