Skip to content

Commit

Permalink
Enable WebGL for open source drivers and optimize performance, closes d…
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Aug 5, 2018
1 parent dbced5b commit 4e0eefb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ if (app.makeSingleInstance((commandLine: any[], workingDirectory: string) => {
}
else {
require("electron-debug")()

// Enable WebGL for open source drivers and optimize performance
app.commandLine.appendSwitch('ignore-gpu-blacklist', 'true')
app.commandLine.appendSwitch('enable-gpu-rasterization', 'true')
app.commandLine.appendSwitch('enable-zero-copy', 'true')
app.commandLine.appendSwitch('disable-software-rasterizer', 'true')
app.commandLine.appendSwitch('enable-native-gpu-memory-buffers', 'true')

app.on("ready", () => {
ipcMain.on("log.error", (event: any, arg: any) => {
Expand All @@ -25,4 +32,4 @@ else {
windowManager = new WindowManager()
windowManager.openWindows()
})
}
}

0 comments on commit 4e0eefb

Please sign in to comment.