-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Implement enabled
flag for fps overlay
#15246
Implement enabled
flag for fps overlay
#15246
Conversation
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.
Just a small perf optimization then this LGTM.
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.
Whoops, you're totally right. That last change was unnecessary and should be reversed. I missed the run condition.
No problem! Reverted in 26ecd30 |
Objective
Fixes #15223
Solution
Adds an
enabled
flag to theFpsOverlayConfig
resource with a system that detects it's change, and adjusts the visibility of the overlay text entity.Testing
I extended the
fps_overlay
example with the option to toggle the overlay. Run with: