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

factor out framerate info from examples #11

Open
timo opened this issue Oct 5, 2018 · 0 comments
Open

factor out framerate info from examples #11

timo opened this issue Oct 5, 2018 · 0 comments
Labels
enhancement hacktoberfest good issue to start contributing, or contribute only one or two help wanted

Comments

@timo
Copy link
Owner

timo commented Oct 5, 2018

I'm not entirely sure if it should go into SDL2::Raw at all, but it'd surely be better to have a little module than to have it spread out over all the examples.

Currently in the "main loop" of the examples there's a native num array where frame times (taken using nqp::time_n, though surely a higher-level function ought to be okay, too, nowadays) are pushed, then at the end they are sorted and a few percentiles are printed out. However, if there's not enough values, sometimes it'll output Any or Nil or so.

It'd be nice to analyze it more thoroughly, like giving information about framerate stability (for example, how often do GC pauses increase frame times?)

@timo timo added enhancement help wanted hacktoberfest good issue to start contributing, or contribute only one or two labels Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement hacktoberfest good issue to start contributing, or contribute only one or two help wanted
Projects
None yet
Development

No branches or pull requests

1 participant