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 placementTime metric #11043

Merged
merged 5 commits into from Sep 30, 2021
Merged

Add placementTime metric #11043

merged 5 commits into from Sep 30, 2021

Conversation

arindam1993
Copy link
Contributor

@arindam1993 arindam1993 commented Sep 21, 2021

Adding this metric to better quantify the impact of #10795 .

Since PausablePlacement is has a time budget per frame, any regressions in performance there might not surface upto observable framerate directly.
This measures the average time required for placement to fully finish, including the time it stays paused between frames.

Based on some suggestions from @ansis , I changed this to instead measure total time spent during placement.
In the same convo we also discussed how both this and frameTimes would be better if we only measured them after the full-load has happened and during an animation.
This PR also adds the changes for that.
We decided to skip the frameTime measurement changes for now and focus on just the changes for the placementTime metric.

frame(timestamp: number, isRenderFrame: boolean) {
// Ignore frametimes during loading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we skip this for now and add while reviewing the rendering benchmarks more closely?

@arindam1993 arindam1993 merged commit 2452af7 into main Sep 30, 2021
@arindam1993 arindam1993 deleted the perf-metrics/placement-time branch September 30, 2021 22:15
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

2 participants