-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 update of window title #6773
Conversation
Sorry but ... Just no |
Hm? Why do we refresh the game title twice a second with inactive FPS display? |
Because we want to know if the setting changed. You may use some check to find out if the current configuration changed from true to false and then update it once. Then it would be fine. But with the current PR it will never remove the fps counter. And the arbitrary 5 frame check doesn't seem right |
Maybe I'm too stupid ... I reverted to master: Running on Linux I cannot change the parameter on the fly. Either the game starts with the FPS counter and everything is fine or it starts without. Changing the parameter during gameplay does not give any effect. Same goes for settings like vsync. So the patch behaves as desired or do you expect something else? |
You cannot change it on the fly at the moment. |
Got it, changed it. |
Simplified the patch for better readability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to use get() method for the config value, theres an implicit conversion to bool iirc.
I forgot. Could you please add a comment next to the member declaration that explains its purpose? That way noone removes it unknowingly in the future. |
only update title if user really wants to display the FPS during gameplay.
done |
I meant the cfg changes ;) |
only update the window title if user really wants to display the FPS during gameplay. Additionally wait some frames for better low FPS averages.