diff --git a/epic-games.js b/epic-games.js index 15148df..4731a2c 100644 --- a/epic-games.js +++ b/epic-games.js @@ -31,7 +31,8 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, { // https://peter.sh/experiments/chromium-command-line-switches/ args: [ '--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!': // chromiumSandbox: true, // https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/issues/52 diff --git a/test/webgl.js b/test/webgl.js index f5668ff..754c331 100644 --- a/test/webgl.js +++ b/test/webgl.js @@ -10,7 +10,8 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, { // https://peter.sh/experiments/chromium-command-line-switches/ args: [ '--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 ], });