-
-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid drawing unnecessary things when we're about to quit #2653
Conversation
Is there a case when |
Not that I know of. |
Additionally, while the game quit screen fade is being performed, wouldn't not further drawing the UI elements make them disappear immediately before the fade starts, causing for a visual inconsistency? I will test this soon to check, this is just an observation from looking at the code. |
Testing shows that now quitting the game with transitions enabled makes the UI disappear before the fade out happens. Considering this didn't happen before the change, and keeping in mind |
What is the optimization achieved in this PR? Is it significant enough to warrant not drawing UI elements on screen fade-out? |
It's drawing them now |
It's only drawing the menu on fade-out, still hides FPS counter, player position, etc... There should be some benefit from not drawing those UI items to warrant changing their behaviour, and I'm not sure what it is. |
Fine, you want the pr closed, I'll close the pr. |
Sorry, I only wanted to ask a question regarding the PR, so I can justify a review. For example, the integration change seems beneficial. For this part I genuinely didn't know what benefit it serves, so I'm asking to hear why you decided to implement it, possibly I could be missing something. |
Reason I implemented this was because shutdown always felt slow to me |
Did it feel slow when the menu was hidden? |
Also, don't update integrations for every tick, that's way too often and wastes CPU cycles.