UI switch for --disable-gpu - #5131, #3499

This commit is contained in:
Eugene Pankov
2021-12-19 18:11:43 +01:00
parent 5249a9076a
commit e90db7f07f
3 changed files with 22 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ export class Application {
app.commandLine.appendSwitch('enable-transparent-visuals')
app.disableHardwareAcceleration()
}
if (this.configStore.hacks?.disableGPU) {
app.commandLine.appendSwitch('disable-gpu')
app.disableHardwareAcceleration()
}
}
this.userPluginsPath = path.join(