1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-28 01:10:52 +01:00

In process GPU

This commit is contained in:
Nayam Amarshe 2023-10-15 15:10:00 +05:30
parent 0ce2d43c05
commit 8e8ef37e07

View File

@ -18,6 +18,7 @@ import batchUpscayl from "./commands/batch-upscayl";
import doubleUpscayl from "./commands/double-upscayl";
import autoUpdate from "./commands/auto-update";
import sharp from "sharp";
import { getPlatform } from "./utils/get-device-specs";
// INITIALIZATION
log.initialize({ preload: true });
@ -50,7 +51,9 @@ app.on("window-all-closed", () => {
});
// ! ENABLE THIS FOR MACOS APP STORE BUILD
app.commandLine.appendSwitch("in-process-gpu");
if (getPlatform() === "mac") {
app.commandLine.appendSwitch("in-process-gpu");
}
ipcMain.on(COMMAND.STOP, stop);