You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Viewer: optional full-recording background streaming with capped cache #254
User feedback: clinicians (e.g. neurologists reviewing a whole recording) want the full recording loaded so paging/scrubbing is instant, rather than the current fetch-on-demand per window.
Proposed behavior:
Off by default. A gear toggle ("Preload full recording") persisted client-side (localStorage alongside other viewer preferences — no server state needed; a cookie would needlessly ride every request).
When on: keep serving the visible window first (unchanged), then continue fetching the remainder of the recording in the background at the current view level — idle-time, low-priority, sequential from the playhead outward, so interactive fetches always win.
Memory cap: in-memory chunk cache with LRU eviction, default 500 MB, exposed as a setting (e.g. 250 MB / 500 MB / 1 GB). The cap bounds the preloader; when full, preloading stops rather than evicting what the user is looking at.
Open question: preload at level 0 (full resolution) or at the current pyramid level? Recommendation: current level first (that is what scrubbing hits), optionally level 0 for the region around the playhead.
Implementation notes:
store.ts currently reads window chunks on demand; this adds a background scheduler + a byte-accounted cache in front of the zarr fetches.
Activity
neuromechanist commentedon Sep 1, 2026
Shipped in PR #259, merged to staging via epic PR #270 (merge commit 9e047c1). Closing by hand: closing keywords only fire on the default branch.