Eliminated unnecessary rendering when the video or slideshow screensaver is running.

This commit is contained in:
Leon Styhre 2020-11-18 23:52:29 +01:00
parent 50e74595e4
commit 401d433be0

View file

@ -308,7 +308,12 @@ void Window::render()
bottom->stopAllAnimations();
}
bottom->render(transform);
// Don't render the system view or gamelist view if the video or slideshow screensaver
// is running.
if (!(mRenderScreensaver && (Settings::getInstance()->getString("ScreensaverType") ==
"video" || Settings::getInstance()->getString("ScreensaverType") == "slideshow")))
bottom->render(transform);
if (bottom != top) {
#if defined(USE_OPENGL_21)
if (!mCachedBackground) {