From 681a704ea4a8cda8180e5fc45dc07d36cb8aa086 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 27 Nov 2022 18:38:45 +0800 Subject: [PATCH] AppDelegate // Boost memory limiter to 512MB. --- Source/Modules/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/AppDelegate.swift b/Source/Modules/AppDelegate.swift index 17a08a6c..a9550d84 100644 --- a/Source/Modules/AppDelegate.swift +++ b/Source/Modules/AppDelegate.swift @@ -113,7 +113,7 @@ extension AppDelegate { guard let currentMemorySizeInBytes = NSApplication.memoryFootprint else { return 0 } let currentMemorySize: Double = (Double(currentMemorySizeInBytes) / 1024 / 1024).rounded(toPlaces: 1) switch currentMemorySize { - case 300...: + case 512...: vCLog("WARNING: EXCESSIVE MEMORY FOOTPRINT (\(currentMemorySize)MB).") let userNotification = NSUserNotification() userNotification.title = NSLocalizedString("vChewing", comment: "")