From c49c61954360c6de932c5f771248a947901c67bf Mon Sep 17 00:00:00 2001 From: Will Roberts Date: Sat, 14 Jan 2023 10:59:31 -0500 Subject: [PATCH] Enable WebGL hardware acceleration by default --- desktop/desktop.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/desktop.js b/desktop/desktop.js index efc7826f0..a0b262749 100644 --- a/desktop/desktop.js +++ b/desktop/desktop.js @@ -28,6 +28,13 @@ if (argv.inProcessGpu) { app.commandLine.appendSwitch('in-process-gpu'); } +// enable WebGL hardware acceleration by default +app.commandLine.appendSwitch('enable-accelerated-mjpeg-decode'); +app.commandLine.appendSwitch('enable-accelerated-video'); +app.commandLine.appendSwitch('enable-gpu-rasterization'); +app.commandLine.appendSwitch('enable-native-gpu-memory-buffers'); +app.commandLine.appendSwitch('ignore-gpu-blacklist'); + process.on('uncaughtException', (error) => { if (error != null && error.message != null) console.log(error.message); if (error != null && error.stack != null) console.log(error.stack);