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

Frame stats #579

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Frame stats #579

wants to merge 5 commits into from

Conversation

VyrCossont
Copy link

All native runtimes now log frame durations and print a brief histogram to the console on a successful exit. This is intended for investigating #554 more easily than by eye, and doesn't need to be merged, although I've written it so that it could be.

$ wasm4 cart.wasm
Frame stats:
    0 ms:        1
    1 ms:        1
   14 ms:        1
   15 ms:       45
   16 ms:       45
   22 ms:        1
   33 ms:       53
   60 ms:        2
   78 ms:        1
>= 99 ms:        1

$ wasm4_glfw cart.wasm
Frame stats:
   16 ms:       58
   17 ms:       64
   29 ms:        1
   70 ms:        1
   96 ms:        1
>= 99 ms:        0

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.

1 participant