MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / tick

Function tick

graph-ui/src/galaxy/GraphScene.tsx:626–633  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

624 let last = 0;
625 let handle = 0;
626 const tick = (time: number): void => {
627 handle = requestAnimationFrame(tick);
628 if (time - last < interval - FRAME_CAP_TOLERANCE_MS) {
629 return;
630 }
631 last = time;
632 advance(time);
633 };
634 handle = requestAnimationFrame(tick);
635 return () => cancelAnimationFrame(handle);
636 }, [advance, active, cap]);

Callers

nothing calls this directly

Calls 1

advanceFunction · 0.70

Tested by

no test coverage detected