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 performance metrics #159

Open
veeenu opened this issue Feb 29, 2024 · 0 comments
Open

Add performance metrics #159

veeenu opened this issue Feb 29, 2024 · 0 comments

Comments

@veeenu
Copy link
Owner

veeenu commented Feb 29, 2024

It should be easy to add a performance metrics tracker for debugging purposes.

Things that should be tracked:

  • Duration of message processing step
  • Duration of Pipeline::prepare_render
  • Duration of Pipeline::render
  • Duration of client code frame generation
  • Frame-to-frame elapsed time

These metrics don't necessarily need a big object, they can be stored in a struct of floats and updated via exponentially-weighted moving average with a low coefficient like 0.1 which should stabilize after 100 frames.

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

No branches or pull requests

1 participant