Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

perf(desktop): skip pending legacy camera renders

Richie McIlroy1239c8940693
diff --git a/apps/desktop/src/routes/camera.tsx b/apps/desktop/src/routes/camera.tsx
index 18c063c46..4678a688c 100644
--- a/apps/desktop/src/routes/camera.tsx
+++ b/apps/desktop/src/routes/camera.tsx
@@ -798,6 +798,7 @@ function LegacyCameraPreviewPage(props: { disconnected: Accessor<boolean> }) {
if (!isWindowVisible()) return;
lastFrameTime = Date.now();
+ if (pendingRender) return;
const buffer = event.data as ArrayBuffer;
const clamped = new Uint8ClampedArray(buffer);