mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Optimized by skipping some unnecessary rendering when the media viewer is active.
This commit is contained in:
parent
c7a27c8c6a
commit
bf39f10381
|
@ -339,11 +339,22 @@ void Window::render()
|
||||||
bottom->stopAllAnimations();
|
bottom->stopAllAnimations();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't render the system view or gamelist view if the video or slideshow screensaver
|
// Don't render the system view or gamelist view if the media viewer is active or if the
|
||||||
// is running, unless the fallback screensaver is active due to lack of images or videos.
|
// video or slideshow screensaver is running. The exception is if the fallback screensaver
|
||||||
if ((mRenderScreensaver && mScreensaver->isFallbackScreensaver()) ||
|
// is active due to a lack of videos or images.
|
||||||
(!(mRenderScreensaver && (Settings::getInstance()->getString("ScreensaverType") ==
|
bool renderBottom = true;
|
||||||
"video" || Settings::getInstance()->getString("ScreensaverType") == "slideshow"))))
|
if (mRenderMediaViewer)
|
||||||
|
renderBottom = false;
|
||||||
|
else if (mRenderScreensaver && mScreensaver->isFallbackScreensaver())
|
||||||
|
renderBottom = true;
|
||||||
|
else if (mRenderScreensaver &&
|
||||||
|
Settings::getInstance()->getString("ScreensaverType") == "video")
|
||||||
|
renderBottom = false;
|
||||||
|
else if (mRenderScreensaver &&
|
||||||
|
Settings::getInstance()->getString("ScreensaverType") == "slideshow")
|
||||||
|
renderBottom = false;
|
||||||
|
|
||||||
|
if (renderBottom)
|
||||||
bottom->render(transform);
|
bottom->render(transform);
|
||||||
|
|
||||||
if (bottom != top) {
|
if (bottom != top) {
|
||||||
|
|
Loading…
Reference in a new issue