From 6cc734fd24e25c09e28824b5543fa4f85612f02c Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Wed, 11 Nov 2026 23:01:58 +0000 Subject: [PATCH] feat(core): motion blur preview draws fewer filter copies at lower preview quality (#7547) * feat(core): motion blur preview draws fewer filter copies at lower preview quality The filter tier's preview draws 16 copies at preview quality 1/2 and 8 at 1/4 and below; renders keep 32. Preview facts now list those levels in lighterAt once the filter tier has movers, so a host that steps quality down on choppy playback can do so for a film whose only load is blur. Co-Authored-By: Claude Opus 5.5 * refactor(core): name the blur preview copies instead of commenting them Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- docs/guides/motion-blur.mdx | 2 +- .../runtime/captureMotionBlur/filterTier.ts | 28 ++++++++++++------- .../runtime/captureMotionBlur/index.test.ts | 18 ++++++++++++ .../src/runtime/captureMotionBlur/index.ts | 12 +++++++- packages/core/src/runtime/init.ts | 17 +++++++++-- 5 files changed, 63 insertions(+), 14 deletions(-) diff --git a/docs/guides/motion-blur.mdx b/docs/guides/motion-blur.mdx index a9e3950407..9b48039a3a 100644 --- a/docs/guides/motion-blur.mdx +++ b/docs/guides/motion-blur.mdx @@ -91,7 +91,7 @@ In the page, `window.__hfMotionBlur.report()` returns `state`, `tier`, `reason`, - **Distributed renders.** Blur applies in every chunk, drawn with the filter tier on `auto`. Measured on two real 1080p films with plan, `renderChunk` and assemble at 240 frames per chunk, in a software-GPU Chrome 153 on a machine other work was loading (load average 12 to 25), one run per arm: summed chunk CPU seconds went from 155 to 246 (1.6 times) on `k3-promo` and from 338 to 545 (1.6 times) on `spacex-launch`; summed chunk wall time rose 1.2 and 1.4 times. A film with `data-motion-blur="on"` also plans screenshot capture instead of BeginFrame capture, and the measured cost includes that switch. - **Editing.** The filter tier never wraps anything. With capture the root is wrapped only while playing or rendering; paused, it is plain DOM, so click-to-select works. - **Capture only.** Blurred preview can run at half the frame rate on heavy compositions, and a `