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

fps measurement in worker ? #25

Closed
jeromeetienne opened this issue Jun 3, 2012 · 2 comments
Closed

fps measurement in worker ? #25

jeromeetienne opened this issue Jun 3, 2012 · 2 comments
Labels

Comments

@jeromeetienne
Copy link

  • currently when the worker is overloaded and cant produce one output per renderer frame
  • it is impossible to do
  • possibily provide a fps measure of that in a stat.js i dunno
@chandlerprall
Copy link
Owner

scene.simulate() returns true or false depending on if the physics is still running or not. Checking this value will let you know how to count the FPS

if ( scene.simulate() ) { 
    stats.update(); // if using mrdoob's stats.js
}

@jeromeetienne
Copy link
Author

Oh true. Excelent. I will likely use the event, there is one which is notified on update, thus i can get the frequency. Thanks

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

No branches or pull requests

2 participants