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

Function startTickLoop

packages/node/src/worker/engineWorker/tickLoop.ts:118–131  ·  view source on GitHub ↗
(
  state: EngineWorkerTickState,
  fpsCap: number,
  scheduleTickNowFn: () => void,
  armSabFrameWakeFn: () => void,
)

Source from the content-addressed store, hash-verified

116}
117
118export function startTickLoop(
119 state: EngineWorkerTickState,
120 fpsCap: number,
121 scheduleTickNowFn: () => void,
122 armSabFrameWakeFn: () => void,
123): void {
124 stopTickLoop(state);
125 const timing = computeTickTiming(fpsCap);
126 state.tickIntervalMs = timing.tickIntervalMs;
127 state.maxIdleDelayMs = timing.maxIdleDelayMs;
128 state.idleDelayMs = state.tickIntervalMs;
129 scheduleTickNowFn();
130 armSabFrameWakeFn();
131}

Callers 1

startTickLoopLocalFunction · 0.85

Calls 2

stopTickLoopFunction · 0.85
computeTickTimingFunction · 0.85

Tested by

no test coverage detected