Change LowMemWarning default to always enabled

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-04-10 11:53:37 +05:00
parent 658a1391f8
commit 4b3aedd5d0
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -735,12 +735,7 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv)
m_settings->registerSetting({ "MinMemAlloc", "MinMemoryAlloc" }, 512);
m_settings->registerSetting({ "MaxMemAlloc", "MaxMemoryAlloc" }, SysInfo::defaultMaxJvmMem());
m_settings->registerSetting("PermGen", 128);
// https://github.com/PrismLauncher/PrismLauncher/issues/5305
// arm64 Macs have configurations with very little physical memory, but the OS can compensate by compressing and swapping
// According to user reports, this is not noticeable under normal usage due to fast storage speeds
const bool lowMemWarningDefault = !(SysInfo::currentSystem() == "osx" && SysInfo::useQTForArch() == "arm64");
m_settings->registerSetting("LowMemWarning", lowMemWarningDefault);
m_settings->registerSetting("LowMemWarning", true);
// Java Settings
m_settings->registerSetting("JavaPath", "");