mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
feat(engine): add --enable-unsafe-webgpu flag for WebGPU glass rendering
Adds WebGPU support to the Chrome launch args alongside the existing CanvasDrawElement flag. Use PRODUCER_HEADLESS_SHELL_PATH to point to Brave for full WebGPU + drawElementImage support. Also fixes flicker in liquid glass blocks by removing onpaint/requestPaint callbacks that conflicted with GSAP's deterministic onUpdate rendering. Adds macos-tahoe-liquid-glass block (WIP).
This commit is contained in:
@@ -484,6 +484,7 @@ export interface BuildChromeArgsOptions {
|
||||
}
|
||||
|
||||
const CANVAS_DRAW_ELEMENT_FEATURE_FLAG = "--enable-features=CanvasDrawElement";
|
||||
const WEBGPU_FLAG = "--enable-unsafe-webgpu";
|
||||
|
||||
export function buildChromeArgs(
|
||||
options: BuildChromeArgsOptions,
|
||||
@@ -503,6 +504,7 @@ export function buildChromeArgs(
|
||||
"--disable-setuid-sandbox",
|
||||
"--disable-dev-shm-usage",
|
||||
CANVAS_DRAW_ELEMENT_FEATURE_FLAG,
|
||||
WEBGPU_FLAG,
|
||||
"--enable-webgl",
|
||||
"--ignore-gpu-blocklist",
|
||||
...getBrowserGpuArgs(browserGpuMode, platform),
|
||||
|
||||
Reference in New Issue
Block a user