Skip to content

Commit

Permalink
Enable WebGL hardware acceleration by default
Browse files Browse the repository at this point in the history
  • Loading branch information
willroberts committed Jan 14, 2023
1 parent 439d4b9 commit c49c619
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
@@ -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);

0 comments on commit c49c619

Please sign in to comment.