mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Reduced CPU usage significantly when a menu is open.
This commit is contained in:
parent
7275f020f1
commit
2aabe2eef3
|
@ -438,6 +438,16 @@ void Window::render()
|
||||||
Settings::getInstance()->getString("ScreensaverType") == "slideshow")
|
Settings::getInstance()->getString("ScreensaverType") == "slideshow")
|
||||||
renderBottom = false;
|
renderBottom = false;
|
||||||
|
|
||||||
|
// Don't render the bottom if the menu is open and the opening animation has finished
|
||||||
|
// playing. If the background is invalidated rendering will be enabled briefly until
|
||||||
|
// a new cached background has been generated.
|
||||||
|
if (mGuiStack.size() > 1 && mCachedBackground) {
|
||||||
|
if ((Settings::getInstance()->getString("MenuOpeningEffect") == "scale-up" &&
|
||||||
|
mBackgroundOverlayOpacity == 255) ||
|
||||||
|
Settings::getInstance()->getString("MenuOpeningEffect") != "scale-up")
|
||||||
|
renderBottom = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (renderBottom)
|
if (renderBottom)
|
||||||
bottom->render(trans);
|
bottom->render(trans);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue