From 8af080abb00e3c5e64879b1b0520993fd56768c2 Mon Sep 17 00:00:00 2001 From: cryptofyre Date: Tue, 31 May 2022 00:56:00 -0500 Subject: [PATCH] Should help with memory inflation. --- src/main/base/app.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/base/app.ts b/src/main/base/app.ts index dad4d4a9..73fefd9c 100644 --- a/src/main/base/app.ts +++ b/src/main/base/app.ts @@ -55,6 +55,9 @@ export class AppEvents { app.exit() } + // Try limiting JS memory to 350MB. + app.commandLine.appendSwitch('js-flags', '--max-old-space-size=350'); + // Expose GC app.commandLine.appendSwitch('js-flags', '--expose_gc')