Small fix
This commit is contained in:
parent
83fb556aa2
commit
3a276b2a8d
2 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ export class AppEvents {
|
|||
break;
|
||||
|
||||
case "webgpu":
|
||||
console.info("WebGPU is enabled.");
|
||||
console.info("[AppEvents] WebGPU is enabled.");
|
||||
app.commandLine.appendSwitch("enable-unsafe-webgpu");
|
||||
if (process.platform === "linux") {
|
||||
app.commandLine.appendSwitch("enable-features", "Vulkan");
|
||||
|
@ -85,7 +85,7 @@ export class AppEvents {
|
|||
break;
|
||||
|
||||
case "disabled":
|
||||
console.info("Hardware acceleration is disabled.");
|
||||
console.info("[AppEvents] Hardware acceleration is disabled.");
|
||||
app.commandLine.appendSwitch("disable-gpu");
|
||||
app.disableHardwareAcceleration();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue