From b6a12341680592e32637e7a16ed56e5c00582402 Mon Sep 17 00:00:00 2001 From: pjft Date: Mon, 28 Aug 2017 11:08:56 +0100 Subject: [PATCH] Setting VRAM default at 80 for the Pi More often than not users are running into glGetErrors 505 (running out of video memory) when using heavy themes with the default 100 VRAM setting. The advice of setting it to 80 is often the solution. Until we have a proper/better GPU management solution, this is probably a better default. --- es-core/src/Settings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 381b42ace..6f36432a3 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -71,7 +71,11 @@ void Settings::setDefaults() mIntMap["ScreenSaverTime"] = 5*60*1000; // 5 minutes mIntMap["ScraperResizeWidth"] = 400; mIntMap["ScraperResizeHeight"] = 0; - mIntMap["MaxVRAM"] = 100; + #ifdef _RPI_ + mIntMap["MaxVRAM"] = 80; + #else + mIntMap["MaxVRAM"] = 100; + #endif mStringMap["TransitionStyle"] = "fade"; mStringMap["ThemeSet"] = "";