mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
Change LowMemWarning default to always enabled
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
658a1391f8
commit
4b3aedd5d0
|
|
@ -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", "");
|
||||
|
|
|
|||
Loading…
Reference in a new issue