From b17c78bc42bbce3ac274a39a5ba2c234ba45bccf Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 30 Oct 2022 09:11:59 +0100 Subject: [PATCH] Increased the default VRAM limit from 256 to 512 MiB and increased the maximum limit from 1024 to 2048 MiB. Also increased the default VRAM limit for the Raspberry Pi from 184 to 192 MiB. --- es-app/src/guis/GuiMenu.cpp | 2 +- es-core/src/Settings.cpp | 4 ++-- es-core/src/resources/TextureDataManager.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index b57c21259..f7bbbaa3b 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -1023,7 +1023,7 @@ void GuiMenu::openOtherOptions() s->addRow(rowMediaDir); // Maximum VRAM. - auto maxVram = std::make_shared(128.0f, 1024.0f, 8.0f, "MiB"); + auto maxVram = std::make_shared(128.0f, 2048.0f, 16.0f, "MiB"); maxVram->setValue(static_cast(Settings::getInstance()->getInt("MaxVRAM"))); s->addWithLabel("VRAM LIMIT", maxVram); s->addSaveFunc([maxVram, s] { diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 64e0a064d..0cc30fc60 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -218,9 +218,9 @@ void Settings::setDefaults() #if defined(STEAM_DECK) || defined(RETRODECK) mIntMap["MaxVRAM"] = {512, 512}; #elif defined(RASPBERRY_PI) - mIntMap["MaxVRAM"] = {184, 184}; + mIntMap["MaxVRAM"] = {192, 192}; #else - mIntMap["MaxVRAM"] = {384, 384}; + mIntMap["MaxVRAM"] = {512, 512}; #endif mIntMap["DisplayIndex"] = {1, 1}; #if defined(__APPLE__) diff --git a/es-core/src/resources/TextureDataManager.cpp b/es-core/src/resources/TextureDataManager.cpp index eeb1f5533..671a1ea89 100644 --- a/es-core/src/resources/TextureDataManager.cpp +++ b/es-core/src/resources/TextureDataManager.cpp @@ -117,10 +117,10 @@ void TextureDataManager::load(std::shared_ptr tex, bool block) Settings::getInstance()->setInt("MaxVRAM", 128); settingVRAM = 128; } - else if (settingVRAM > 1024) { + else if (settingVRAM > 2048) { LOG(LogWarning) << "MaxVRAM is too high at " << settingVRAM - << " MiB, setting it to the maximum allowed value of 1024 MiB"; - Settings::getInstance()->setInt("MaxVRAM", 1024); + << " MiB, setting it to the maximum allowed value of 2048 MiB"; + Settings::getInstance()->setInt("MaxVRAM", 2048); settingVRAM = 1024; }