Mootionblue renders everything in your browser. Our main test film has 473 layers across six compositions: 12.3 seconds, 740 frames at 60 fps. Played live, it stuttered.12
So I rebuilt how the preview is cached. Here’s what changed, what it bought us, and what still isn’t good enough.
Why a live preview stutters
In the candidate 8.5 staging runs, our 473-layer film played live at about 44 fps.1
A live preview draws every frame as it plays, reusing work where it can; at 60 fps each frame gets 16.7 ms. The live rate depends on preview quality, viewer zoom and the machine.15
Cached ACK rates were near 60 fps in these six test groups; live rates varied
In these six tested groups, cached ACK rates stayed near 60 fps while live rates varied.
Candidate 8.5 staging, Apple M1 Max, medians of three full-range 15 s plays per group. Cached fps counts main-thread receipts of worker acknowledgements; neither series is physical screen timing.
Max ACK gaps ranged from 26.6 to 30.0 ms; the strict 25 ms goal remained unmet. The matched short Half loop separately failed its gap bar. These full-trial fps values differ from the rolling cadence used by the headline stat.
Data and sources
| Group | Measure | Value | Context |
|---|---|---|---|
| Three projects · Half and Auto | Film · 473 layers · Half · Cached | 60.021 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Film · 473 layers · Half · Live | 43.537 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Film · Auto · Cached | 59.996 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Film · Auto · Live | 44.406 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Light card · Half · Cached | 60.015 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Light card · Half · Live | 60.002 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Light card · Auto · Cached | 59.976 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Light card · Auto · Live | 59.992 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Bracket · Half · Cached | 59.986 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Bracket · Half · Live | 50.184 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Bracket · Auto · Cached | 60.000 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | Bracket · Auto · Live | 50.185 fps | Candidate 8.5 staging, medians of three 15 s plays. |
| Three projects · Half and Auto | 60 fps reference | 60 fps | Reference line, not a measured sample. |
Earlier staging builds already kept chunks on disk; this work improved how they fill and play back. The browser can still clear or evict that storage, so a cached preview is only ever a disposable copy.64
Cut the film into half-second chunks
The new cache works in small pieces:2
- I cut the project into half-second chunks, each keyed to exactly what it depends on.
- Automatic filling asks a background worker to draw missing chunks nearest the playhead first.
- It compresses finished frames and stores them on disk, inside your browser.
- A playback worker reads, decodes and draws ready frames on an offscreen canvas. We measure its frame acknowledgements separately from physical screen timing.
Illustration of eight half-second chunks at 60 fps, with six marked ready. Green highlights the selected chunk; dashed edges mark the two pending chunks. This is a diagram, not live cache status.
Each chunk’s key records what its frames visually depend on. An edit confined to shot two can leave unrelated chunks ready; a shared or project-wide change can make a wider range stale.
What keeps the cache, and what doesn’t
| You do this | Cache |
|---|---|
| Select a layer, zoom or pan the canvas | kept |
| Save, rename the project | kept |
| Move the playhead or scrub | kept |
| Change a layer’s position, colour or timing | affected chunks redraw |
| Switch preview quality | that quality fills on its own |
Nearest first, then outward
Automatic filling starts with the missing chunks nearest the playhead, and seeking changes that order. A manual work-range fill goes in timeline order. The automatic rule fits in a few lines:12
Illustrative only; chunks, cache, distance and playhead are supplied by the caller. The real automatic queue sorts by distance; separate pacing and quality policies respond to measured work and device hints.
// Fill the chunks nearest the playhead first.
const queue = chunks
.filter((c) => !cache.has(c))
.sort((a, b) => distance(a, playhead) - distance(b, playhead));The test film is 25 chunks, filled outward from the playhead
Chunk number above; fill rank below. Rank 1 fills first. Scroll horizontally for the full diagram.
The 740-frame film has 24 full chunks of 30 frames and a final 20-frame chunk. Rank 1 starts with the chunk containing the 10.2 s playhead. All chunks are assumed missing.
Derived from 60 fps and the nearest-first rule: sort by distance from the playhead frame to each chunk; ties go to the earlier chunk. The film lasts 740/60 seconds (about 12.33 s).
A full chunk is 0.5 s; the last is about 0.33 s. This is not a recorded fill. This illustration assumes every chunk is missing.
Data and sources
| Group | Measure | Value | Context |
|---|---|---|---|
| Chunk 1 | Frames 0–29 | Rank 25 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 2 | Frames 30–59 | Rank 24 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 3 | Frames 60–89 | Rank 23 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 4 | Frames 90–119 | Rank 22 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 5 | Frames 120–149 | Rank 21 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 6 | Frames 150–179 | Rank 20 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 7 | Frames 180–209 | Rank 19 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 8 | Frames 210–239 | Rank 18 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 9 | Frames 240–269 | Rank 17 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 10 | Frames 270–299 | Rank 16 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 11 | Frames 300–329 | Rank 15 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 12 | Frames 330–359 | Rank 14 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 13 | Frames 360–389 | Rank 13 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 14 | Frames 390–419 | Rank 12 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 15 | Frames 420–449 | Rank 11 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 16 | Frames 450–479 | Rank 10 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 17 | Frames 480–509 | Rank 8 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 18 | Frames 510–539 | Rank 6 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 19 | Frames 540–569 | Rank 4 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 20 | Frames 570–599 | Rank 2 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 21 | Frames 600–629 | Rank 1 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 22 | Frames 630–659 | Rank 3 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 23 | Frames 660–689 | Rank 5 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 24 | Frames 690–719 | Rank 7 | 30 frames; nearest-first derivation at 10.2 s, not recorded fill. |
| Chunk 25 | Frames 720–739 | Rank 9 | 20 frames; nearest-first derivation at 10.2 s, not recorded fill. |
With automatic caching on, filling starts by itself. In candidate 8.5 staging, the first green chunk appeared about 3.2 seconds after the first live frame: an existing project, an empty cache, and no input after opening.
Watch it fill
Illustration from the caching film; its timing is not a cache-fill measurement. Scrub it, or go full screen.

Same film, same Mac, before and after
Candidate 8.1 → 8.5 staging · Apple M1 Max · 473-layer film · Auto quality · fill and rolling ACK fps: medians of 3 · capture gaps: maxima across 31
These are observed differences, not a controlled speedup: the older build ran on a much busier host. Playback fps counts rolling worker acknowledgements.
The gap is the longest wait between capture-stream video callbacks, not a physical screen hold. As in the source report, displayed fps and favorable percentages are truncated.
Visual changes make affected frames stale. Selecting, zooming, saving or moving the playhead keeps the cache.
What’s next
Heavy films still play slower before they’re cached, and editing on slower laptops needs work. I wrote up the editing side in Editing while it caches, and how we measure smoothness in 33 ms.1
Sources
The Mootionblue reports below are internal test records, not public downloads. They identify the historical build, setup and signal behind each result. The diagrams and code examples are illustrative.
Mootionblue. Candidate 8.5 staging report (C85-STAGING-REPORT.md), 22 October 2026, canonical fixture and three-trial comparison.
473 layers across six compositions; 740 frames; live playback; 3.2 s first green chunk; 33.5 → 16.0 s fill, 34.7 → 60.0 rolling ACK fps and 242 → 41 ms maximum capture-callback gap. The older host was busier; this is not a controlled speedup.
Mootionblue. Candidate 8.7.1 implementation review, 24 October 2026, commit 2009c8ef.
Half-second chunks, visual dependencies, invalidation, nearest-first automatic fill, timeline-order manual fill, worker rendering, disk storage and worker playback. This is a code review, not a timing trial.
Mootionblue. Round 14 local performance report (R14-REPORT.md), 22 October 2026, Smart Auto and memory policy, build 3033195b.
The Auto choice of 960 × 540 is a local result on an M1 Max, separate from candidate 8.5 staging.
MDN. Origin private file system.
Browser-managed disk storage, quotas and deletion when site data is cleared. Accessed 25 October 2026.
WHATWG. HTML Living Standard, event loop processing model.
Animation callbacks and rendering opportunities; 1000 / 60 gives about 16.7 ms. Accessed 25 October 2026.
Mootionblue. Round 11 local report (R11-REPORT.md, undated) and round 12 local report (R12-REPORT.md), 22 October 2026.
The earlier cache already used disk-backed chunks and a decode worker. The post describes improvements to filling and playback, not the invention of disk storage.

