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:
Miguel Ángel
2026-05-23 16:23:32 -04:00
parent d88df39613
commit 1891578dd6
7 changed files with 785 additions and 2 deletions
@@ -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),