MCPcopy
hub / github.com/CapSoftware/Cap / resetStats

Function resetStats

apps/desktop/src/routes/editor/PerformanceOverlay.tsx:142–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 );
141
142 const resetStats = () => {
143 frameTimestamps = [];
144 frameIntervals = [];
145 lastFrameTime = 0;
146 droppedFrameCount = 0;
147 totalFrameCount = 0;
148 setStats({
149 fps: 0,
150 avgFrameMs: 0,
151 minFrameMs: 0,
152 maxFrameMs: 0,
153 jitter: 0,
154 droppedFrames: 0,
155 totalFrames: 0,
156 });
157 };
158
159 createEffect(() => {
160 if (!performanceMode()) {

Callers 1

PerformanceOverlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected