mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
Two more compile-time gates, same shape and fallback contract as the video and 3D gates — anything measured slower than baseline or below the quality bar routes to the platform's baseline capture by default. Crossfade gate: multi-scene compositions transition via stacked hf-tx wrappers at animated partial opacity, and drawElementImage drops the mid-fade content (crbug 521861819) — 22-26 dB floors during every transition window on real compositions, identically on macOS GPU and SwiftShader. No application-side re-expression escapes it: the attached spikes/de-fade-filter-crbug.mjs proves filter:opacity() fades hit the identical 240/240 blackout. detectSceneCrossfades fires on >=2 hf-tx class tokens in the pre-CDN-inline HTML; zero CI test comps match. HF_FAST_CAPTURE_CROSSFADE=true bypasses. Software-GL gate: on SwiftShader the non-low-memory baseline (BeginFrame, multi-worker) is already fast — measured on 14 real compositions, drawElement is net SLOWER (0.71-0.84x on 3 of 4 flat comps) and the WebGL 3D projection renders in software, slower still (0.66-0.91x). Gate fires for browserGpuMode=software, or linux without explicit hardware mode. HF_FAST_CAPTURE_SWIFTSHADER=true bypasses. Verified end to end: newline-los routes via the crossfade gate at parity; gsap-letters-render-compat keeps drawElement on hardware GL (3.1s) and gates on software GL. 82 htmlCompiler tests pass (4 new). Also adds the upstream repro spikes filed today: de-fade-filter-crbug.mjs (521861819 comment), de-canvas-freeze-crbug.mjs (crbug 522845799), and the de-fade-filter-test.mjs exploration. 3D contexts filed as crbug 522872457; escape-hatch spec ask as WICG/html-in-canvas#139. Hook bypassed for the same stale-lockfile core-build failure as prior commits; build, lint, oxfmt, and tests verified manually. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>