mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
change(EnsureAvailableMemory): add lenience
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
c044ed36af
commit
658a1391f8
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ void EnsureAvailableMemory::executeTask()
|
|||
const uint64_t max = m_instance->settings()->get("MaxMemAlloc").toUInt();
|
||||
const uint64_t required = std::max(min, max);
|
||||
|
||||
if (required > available) {
|
||||
if (static_cast<double>(required) * 0.9 > static_cast<double>(available)) {
|
||||
bool shouldAbort = false;
|
||||
|
||||
if (m_instance->settings()->get("LowMemWarning").toBool()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue