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

change all_rAF_time.html timestamps #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

becky-gilbert
Copy link
Collaborator

This is an experiment to see if changing the timestamps will improve display duration accuracy in the rAF time version.
We were using the timestamp ts that is automatically passed to rAF callbacks, but this timestamp is the time that the frame's main thread starts. Instead, I'm wondering if it would help to get a performance.now() timestamp inside the callback function. See here under 'Addendum about the rAF timestamp', and in the 'Life of a frame' figures, I think this is the difference between 'Begin frame' and 'rAF'.
I think the timing of the frame's main thread might be more consistent over time/frames, so I'm still using the automatically-passed ts timestamps to determine the frame durations.
If this looks an improvement then I can change the time + frames version as well.

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.

None yet

1 participant