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

Getting FPS and UPS directly from the StatManager #1

Open
GoogleCodeExporter opened this issue Oct 29, 2015 · 2 comments
Open

Getting FPS and UPS directly from the StatManager #1

GoogleCodeExporter opened this issue Oct 29, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

The functions GetFrames() and GetUpdates() only return the current frame- or 
updatecount since it's last reset as a second was over.
Whith that information the user would then have to create again his own clocks 
and synchronize them somehow with the StatManager clocks to be able to 
calculate the FramePerSecond or UpdatesPerSecond rates.
But on the other hand StatManager does calculate the FPS and UPS every second, 
so it actually could return those rates, even if they are not from the current 
second, but from the last one.

With that said, it would be nice to have two functions in the StatManager, 
which returns
a) the FPS
b) the UPS

The UPS is essential for calculating the next move of any moving object, 
otherwise it would end up being dependend on the process power.

Original issue reported on code.google.com by youtube@my-gate.net on 14 Feb 2011 at 12:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant