Should help with memory inflation.

This commit is contained in:
cryptofyre 2022-05-31 00:56:00 -05:00
parent a30aaba1d3
commit 8af080abb0

View file

@ -55,6 +55,9 @@ export class AppEvents {
app.exit() app.exit()
} }
// Try limiting JS memory to 350MB.
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=350');
// Expose GC // Expose GC
app.commandLine.appendSwitch('js-flags', '--expose_gc') app.commandLine.appendSwitch('js-flags', '--expose_gc')