--enable-unsafe-webgpu, #483

This commit is contained in:
Ralf Vogler 2025-06-05 19:53:26 +02:00
parent eaadf5bc2f
commit c5f0c20322
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,8 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, {
// https://peter.sh/experiments/chromium-command-line-switches/ // https://peter.sh/experiments/chromium-command-line-switches/
args: [ args: [
'--hide-crash-restore-bubble', '--hide-crash-restore-bubble',
'--ignore-gpu-blocklist', '--ignore-gpu-blocklist', // required for OpenGL: Disabled -> Enabled & WebGL: Software only -> Hardware accelerated
'--enable-unsafe-webgpu', // required for WebGPU: Disabled -> Hardware accelerated
], ],
// The following makes the browser crash in docker with 'Chromium sandboxing failed!': // The following makes the browser crash in docker with 'Chromium sandboxing failed!':
// chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52 // chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52

View file

@ -10,7 +10,8 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, {
// https://peter.sh/experiments/chromium-command-line-switches/ // https://peter.sh/experiments/chromium-command-line-switches/
args: [ args: [
'--hide-crash-restore-bubble', '--hide-crash-restore-bubble',
'--ignore-gpu-blocklist', // required for OpenGL to be enabled '--ignore-gpu-blocklist', // required for OpenGL: Disabled -> Enabled & WebGL: Software only -> Hardware accelerated
'--enable-unsafe-webgpu', // required for WebGPU: Disabled -> Hardware accelerated
], ],
}); });