Skip to content

Inspector: Fix CPU time double counting and FPS with skipped frames. - #35070

Merged
sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-inspector-frame-time
Oct 17, 2026
Merged

sunag merged 1 commit into
mrdoob:devfrom
sunag:dev-inspector-frame-time

Conversation

@sunag

@sunag sunag commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

Related issue: -

Description

  • The CPU time of nested renders (RenderPipeline, shadows, render targets) was counted twice, because the parent call already includes it. Only the GPU time of the children is added now.
  • Frames where the application doesn't render are no longer counted as frames, so the FPS and frame time match what the app actually renders.
Render 1 of 2 frames FPS Frame CPU Frame time
Measured 71.9 3.21 ms 13.90 ms
Before 142.8 6.50 ms 7.00 ms
After 71.9 3.28 ms 13.90 ms

@sunag

sunag commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator Author

cf1cdfb This is the second time I’ve fallen for this trick with Claude: it creates a worktree with a different branch that reflects the upstream :|

@sunag sunag added this to the r187 milestone Oct 17, 2026
@sunag
sunag marked this pull request as ready for review October 17, 2026 13:05
@sunag
sunag merged commit 5ea24a7 into mrdoob:dev Oct 17, 2026
9 checks passed
@sunag
sunag deleted the dev-inspector-frame-time branch October 17, 2026 13:35
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