feat: allow disabling low RAM warning

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-04-09 19:34:11 +05:00
parent 194b72f180
commit c044ed36af
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
5 changed files with 189 additions and 166 deletions

View file

@ -736,6 +736,12 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv)
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);
// Java Settings
m_settings->registerSetting("JavaPath", "");
m_settings->registerSetting("JavaSignature", "");