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

Add FPS counter to top-left of screen #42

Merged
merged 1 commit into from
Nov 2, 2019

Conversation

Jazarro
Copy link

@Jazarro Jazarro commented Nov 1, 2019

I was thinking about looking into adding frame rate independence and ran into the issue that the game did not have an FPS counter. This commit adds the FPS counter available in the Amethyst examples.

I just noticed that issue #20 calls for a debug UI that includes an FPS counter. The FPS counter added in this commit can be removed once that feature gets merged. Until then, I think it would be useful to have.

Currently the FPS counter is static and cannot be turned off, but it could eventually be made toggleable or be replaced by something more sophisticated.

The FPS counter allows developers to test the effects of lag on the gameplay. This is useful among other things to make the game's animations and the character's movements framerate-independent.
Copy link
Member

@krankur krankur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks.

@krankur krankur merged commit 552e28d into amethyst:master Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants