From fa4df11aa16b7dc5c3f9ed99355f5c007e81540f Mon Sep 17 00:00:00 2001 From: jae Date: Fri, 10 Jun 2022 14:22:36 +0100 Subject: [PATCH] run the GPU process as a thread in the browser process for linux (itchio#2816) --- src/main/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/main.ts b/src/main/main.ts index cd8602f5f..2d839560d 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -39,6 +39,11 @@ export function main() { if (process.env.ITCH_IGNORE_CERTIFICATE_ERRORS === "1") { app.commandLine.appendSwitch("ignore-certificate-errors"); } + + // Run the GPU process as a thread in the browser process for linux. + if (process.platform === "linux") { + app.commandLine.appendSwitch("in-process-gpu"); + } protocol.registerSchemesAsPrivileged([ { scheme: "itch-cave",