Skip to content

feat(producer): fast-capture render stages + remote bg-image localizer#1920

Open
vanceingalls wants to merge 1 commit into
de2-04-engine-corefrom
de2-05-producer
Open

feat(producer): fast-capture render stages + remote bg-image localizer#1920
vanceingalls wants to merge 1 commit into
de2-04-engine-corefrom
de2-05-producer

Conversation

@vanceingalls

@vanceingalls vanceingalls commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Producer render stages + remote bg-image localizer (stack 5/6)

Producer-side wiring of fast capture into the render pipeline, plus a cross-origin asset fix.

Render stages

  • captureStreamingStage.ts (+102/−) — branch to the worker-encode pipeline when enabled, else the standard capture loop; normalized ensureFrameWritten to main's arg shape.
  • compileStage.ts, captureStage.ts, probeStage.ts — fast-capture routing, BeginFrame-liveness probe, gate wiring.
  • renderOrchestrator.ts, regression-harness.ts, stubs/hf-early-stub.ts (+191) — orchestration glue + the injected early-stub that registers seek/timeline hooks; generated/hf-early-stub-inline.ts regenerated from the stub.

htmlCompiler.ts (+93) — localizeRemoteBackgroundImages

Fix for cross-origin damage: drawElementImage omits cross-origin content (spec: keeps the canvas readable), so a remote CSS background-image: url(https://…) renders black on the DE path while the screenshot baseline shows it. This scans background(-image): url(remote), downloads + rewrites to same-origin (reusing the font-face url() machinery), wired between localizeRemoteImageSources and localizeRemoteFontFaces. (The prior localizer covered <img>/<video>/@font-face but not CSS backgrounds.)

Tests / fixtures

htmlCompiler.test.ts (localizer), validate-fast-video.ts script, and fast-capture-gsap / fast-capture-3d / css-spinner / render-symlinked-assets fixtures.


Stack: #1916#1917#1918#1919#1920 (here)#1921. Rebased onto current main; supersedes #1295 + #1444. Intermediate PRs don't compile independently — feature green at the tip (#1921).

🤖 Generated with Claude Code

vanceingalls commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant