mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
SwiftShader's GPU compositor retains stale transformed layers across frames, producing phantom duplicate content at renderHeight/4 offsets in transparent renders. The --disable-gpu-compositing workaround was previously gated to BeginFrame capture mode only, but the same artefact affects Page.captureScreenshot on SwiftShader — and software-GPU renders are clamped to screenshot mode by the forceScreenshot invariant. Move --disable-gpu-compositing outside the BeginFrame-only block so it applies to all capture modes when browserGpuMode is "software". Also adds PRODUCER_EXTRA_CHROME_ARGS env var: a space-separated escape hatch for passing additional Chrome flags during debugging, so future compositor investigations do not require wrapping the chrome binary. Closes #3049