Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/engine/src/services/browserManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ export function buildChromeArgs(
...getLowMemoryFlags(),
// Disable features that add overhead
"--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process,Translate,BackForwardCache,IntensiveWakeUpThrottling",
// Allow AudioContext to start without a user gesture in headless Chrome.
// Without this flag, any code path that constructs an AudioContext
// (including GSAP tweening an <audio> element's volume) triggers the
// autoplay policy and causes the AudioContext to stay suspended. The
// frame-capture loop then blocks waiting for it, deadlocking the render.
"--autoplay-policy=no-user-gesture-required",
];

if (browserGpuMode !== "software") {
Expand Down
1 change: 1 addition & 0 deletions packages/engine/src/services/hdrCapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,6 @@ export function buildHdrChromeArgs(width: number, height: number): string[] {
"--disable-sync",
"--no-zygote",
"--force-gpu-mem-available-mb=4096",
"--autoplay-policy=no-user-gesture-required",
];
}
Loading