You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7ea65ab
Browse filesBrowse the repository at this point in the historyBrowse files
fix(producer): gate drawElement on WebGL compositions to preserve multi-worker screenshot (heygen-com#5604)
Compositions with WebGL or accelerated canvases of >= 900 frames were
qualifying for the single-worker DrawElement priority inversion, forcing
them onto 1 worker and degrading render performance compared to
multi-worker screenshot capture.
- Add detectWebGlUsage() in htmlCompiler to statically detect WebGL, WebGPU,
Three.js, Babylon, Pixi, Mapbox, and MapLibre
- Clear cfg.useDrawElement and set deCompileGate to 'webgl' during compileStage,
and restore page-side compositing when auto-disabled
- Guard against runtime WebGL adapter usage in renderOrchestrator and cleanly
discard probe sessions initialized in drawElement mode
- Export isWebGlRouteActive helper and include WebGL guards in
layeredOrEffectRoute for DE single-worker and parallel router predicates,
respecting HF_FAST_CAPTURE_WEBGL and HF_FAST_CAPTURE_CSSFX bypasses
- Add tests in htmlCompiler.test.ts, compileStage.test.ts, and
renderOrchestrator.test.ts verifying WebGL compositions >= 900 frames
preserve multi-worker screenshot capture
0 commit comments