mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
Open time is one number at one instant. It cannot see the CPU Studio burns while idle, the full-document media scan every scrub frame, the same media file fetched eight times on open, or the heap kept after a project switch. This adds a browser gate for all four and the baseline they read today, before any fix. The idle window samples consecutive ten-second windows until the style-recalc count settles rather than sleeping: the first window on a media project drains the thumbnail-extraction backlog and reads 56% of a core against a flat steady state, so a fixed sleep would gate on a transient. Animation-frame scheduling is attributed by call site in every frame, which is what makes a future regression debuggable rather than merely red. The scrub window counts full-document video/audio queries during a synthetic playhead drag, patched in every frame — all of those queries happen inside the preview iframe, not the Studio document. The Chrome resolver both e2e gates need moves to a shared puppeteerEnv module.