mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
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:
parent
15d853db96
commit
b17c78bc42
|
@ -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] {
|
||||
|
|
|
@ -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__)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue