Skip to content
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

Merged
merged 1 commit into from
Oct 17, 2019
Merged

avoid update of window title #6773

merged 1 commit into from
Oct 17, 2019

Conversation

plappermaul
Copy link
Contributor

only update the window title if user really wants to display the FPS during gameplay. Additionally wait some frames for better low FPS averages.

@Megamouse
Copy link
Contributor

Sorry but ... Just no

@plappermaul
Copy link
Contributor Author

Hm? Why do we refresh the game title twice a second with inactive FPS display?

@Megamouse
Copy link
Contributor

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

@plappermaul
Copy link
Contributor Author

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?

@Megamouse
Copy link
Contributor

You cannot change it on the fly at the moment.
But your change breaks it once it's possible.

@plappermaul
Copy link
Contributor Author

Got it, changed it.

@plappermaul
Copy link
Contributor Author

Simplified the patch for better readability.

Copy link
Contributor

@elad335 elad335 left a 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.

@Megamouse Megamouse added the GUI label Oct 17, 2019
@Megamouse
Copy link
Contributor

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.
@plappermaul
Copy link
Contributor Author

done

@Megamouse
Copy link
Contributor

Megamouse commented Oct 17, 2019

I meant the cfg changes ;)
I'll just add a few words in my next PR

@Megamouse Megamouse merged commit 2850d0c into RPCS3:master Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants