src.nth.io/

summaryrefslogtreecommitdiff
path: root/scrypted/scrypted-viewport.ts
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-14 21:06:09 -0500
committerLuke Hoersten <[email protected]>2026-06-14 21:06:09 -0500
commitbea6b50ddaf4809402c132d721bfd4be7c971382 (patch)
treeb5623e5fd53c0dfc6025844515ecbae20de73353 /scrypted/scrypted-viewport.ts
parent086398dde1deeb79af8d1db01a5197e668a5d561 (diff)
scrypted: default frame interval 500 ms (~2 fps) — measured ceiling for snapshot-based pipeline
Diffstat (limited to 'scrypted/scrypted-viewport.ts')
-rw-r--r--scrypted/scrypted-viewport.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/scrypted/scrypted-viewport.ts b/scrypted/scrypted-viewport.ts
index 69ccd70..405b019 100644
--- a/scrypted/scrypted-viewport.ts
+++ b/scrypted/scrypted-viewport.ts
@@ -70,7 +70,7 @@ type SettingValue = any;
// Tuning constants. Frame interval is also exposed on the parent's
// Settings page so it can be tweaked without editing the script.
-const DEFAULT_FRAME_INTERVAL_MS = 1_000;
+const DEFAULT_FRAME_INTERVAL_MS = 500; // ~2 fps — snapshot-based; cameras typically can't sustain faster
const REREGISTER_INTERVAL_MS = 5 * 60_000;
const HTTP_TIMEOUT_MS = 1_000;
const DEFAULT_IDLE_TIMEOUT_MS = 60_000;