mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Increased the minimum VRAM limit from 80 MiB to 128 MiB.
This commit is contained in:
parent
9d1c352968
commit
15e30bc0ca
|
@ -780,7 +780,7 @@ void GuiMenu::openSoundOptions()
|
|||
VolumeControl volumeControl;
|
||||
int currentVolume {volumeControl.getVolume()};
|
||||
|
||||
auto systemVolume = std::make_shared<SliderComponent>(0.f, 100.f, 1.f, "%");
|
||||
auto systemVolume = std::make_shared<SliderComponent>(0.0f, 100.0f, 1.0f, "%");
|
||||
systemVolume->setValue(static_cast<float>(currentVolume));
|
||||
s->addWithLabel("SYSTEM VOLUME", systemVolume);
|
||||
s->addSaveFunc([systemVolume, currentVolume] {
|
||||
|
@ -793,7 +793,7 @@ void GuiMenu::openSoundOptions()
|
|||
#endif
|
||||
|
||||
// Volume for navigation sounds.
|
||||
auto soundVolumeNavigation = std::make_shared<SliderComponent>(0.f, 100.f, 1.f, "%");
|
||||
auto soundVolumeNavigation = std::make_shared<SliderComponent>(0.0f, 100.0f, 1.0f, "%");
|
||||
soundVolumeNavigation->setValue(
|
||||
static_cast<float>(Settings::getInstance()->getInt("SoundVolumeNavigation")));
|
||||
s->addWithLabel("NAVIGATION SOUNDS VOLUME", soundVolumeNavigation);
|
||||
|
@ -807,7 +807,7 @@ void GuiMenu::openSoundOptions()
|
|||
});
|
||||
|
||||
// Volume for videos.
|
||||
auto soundVolumeVideos = std::make_shared<SliderComponent>(0.f, 100.f, 1.f, "%");
|
||||
auto soundVolumeVideos = std::make_shared<SliderComponent>(0.0f, 100.0f, 1.0f, "%");
|
||||
soundVolumeVideos->setValue(
|
||||
static_cast<float>(Settings::getInstance()->getInt("SoundVolumeVideos")));
|
||||
s->addWithLabel("VIDEO PLAYER VOLUME", soundVolumeVideos);
|
||||
|
@ -1023,7 +1023,7 @@ void GuiMenu::openOtherOptions()
|
|||
s->addRow(rowMediaDir);
|
||||
|
||||
// Maximum VRAM.
|
||||
auto maxVram = std::make_shared<SliderComponent>(80.f, 1024.f, 8.f, "MiB");
|
||||
auto maxVram = std::make_shared<SliderComponent>(128.0f, 1024.0f, 8.0f, "MiB");
|
||||
maxVram->setValue(static_cast<float>(Settings::getInstance()->getInt("MaxVRAM")));
|
||||
s->addWithLabel("VRAM LIMIT", maxVram);
|
||||
s->addSaveFunc([maxVram, s] {
|
||||
|
|
|
@ -117,11 +117,11 @@ void TextureDataManager::load(std::shared_ptr<TextureData> tex, bool block)
|
|||
size_t size {TextureResource::getTotalMemUsage()};
|
||||
size_t settingVRAM {static_cast<size_t>(Settings::getInstance()->getInt("MaxVRAM"))};
|
||||
|
||||
if (settingVRAM < 80) {
|
||||
if (settingVRAM < 128) {
|
||||
LOG(LogWarning) << "MaxVRAM is too low at " << settingVRAM
|
||||
<< " MiB, setting it to the minimum allowed value of 80 MiB";
|
||||
Settings::getInstance()->setInt("MaxVRAM", 80);
|
||||
settingVRAM = 80;
|
||||
<< " MiB, setting it to the minimum allowed value of 128 MiB";
|
||||
Settings::getInstance()->setInt("MaxVRAM", 128);
|
||||
settingVRAM = 128;
|
||||
}
|
||||
else if (settingVRAM > 1024) {
|
||||
LOG(LogWarning) << "MaxVRAM is too high at " << settingVRAM
|
||||
|
|
Loading…
Reference in a new issue