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

Function doConfigUpdate

apps/desktop/src/routes/editor/Editor.tsx:531–538  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

529 };
530
531 const doConfigUpdate = (time: number) => {
532 pendingPreviewConfigUpdate = {
533 config: getPreviewProjectConfig(project, editorState),
534 frameNumber: Math.max(Math.floor(time * FPS), 0),
535 resolutionBase: previewResolutionBase(),
536 };
537 void flushPreviewConfigUpdate();
538 };
539
540 const throttledConfigUpdate = throttle(doConfigUpdate, 1000 / FPS);
541 const trailingConfigUpdate = debounce(doConfigUpdate, 1000 / FPS + 16);

Callers

nothing calls this directly

Calls 3

getPreviewProjectConfigFunction · 0.85
previewResolutionBaseFunction · 0.85
flushPreviewConfigUpdateFunction · 0.85

Tested by

no test coverage detected