--enable-unsafe-webgpu, #483
This commit is contained in:
parent
eaadf5bc2f
commit
c5f0c20322
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue