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.
This commit is contained in:
Leon Styhre 2022-10-30 09:11:59 +01:00
parent 15d853db96
commit b17c78bc42
3 changed files with 6 additions and 6 deletions

View file

@ -1023,7 +1023,7 @@ void GuiMenu::openOtherOptions()
s->addRow(rowMediaDir);
// Maximum VRAM.
auto maxVram = std::make_shared<SliderComponent>(128.0f, 1024.0f, 8.0f, "MiB");
auto maxVram = std::make_shared<SliderComponent>(128.0f, 2048.0f, 16.0f, "MiB");
maxVram->setValue(static_cast<float>(Settings::getInstance()->getInt("MaxVRAM")));
s->addWithLabel("VRAM LIMIT", maxVram);
s->addSaveFunc([maxVram, s] {

View file

@ -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__)

View file

@ -117,10 +117,10 @@ void TextureDataManager::load(std::shared_ptr<TextureData> 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;
}