Skip to content

Commit

Permalink
Merge pull request #257 from willroberts/linux-flags
Browse files Browse the repository at this point in the history
[Desktop] Enable WebGL hardware acceleration by default
  • Loading branch information
willroberts authored Jan 14, 2023
2 parents 439d4b9 + c49c619 commit 951b079
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions desktop/desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 951b079

Please sign in to comment.