Add an optional stage breakdown to the scene timing summary #21

Open
github-bot wants to merge 3 commits from github-bot/gh-21 into beta AGit
Owner

@⁠HandshakeHackin on GitHub · 2026-11-25 16:57 UTC · original
HandshakeHackin:log-timing-breakdown → beta · +56 −10 · 1 files · 3 commits · open

The Proton report in #19 compares texture preparation, GPU time, copy-back time and dropped draws for individual samples. --breakdown extracts those counters and copy preparation from existing host timing lines over the selected scene. It reports the median of each counter and the number of complete records. Older or partial records still contribute to the top-level host summary.

I checked five captured timing lines from fxceless/victory-fork#26 and fxceless/victory-fork#148. For the RTX 5060 Ti sample, the new line returned 46.7 ms preparing copies, 6.5 ms preparing textures, 121.5 ms on the GPU and 31.9 ms copying back, with 4,030 draws and 443 dropped. Default output matched the original byte-for-byte on both excerpts. I also checked UTF-16 PowerShell output, ANSI colors, inclusive line ranges and a truncated timing line.

python docs/klbf/summarize_log.py run.log --lines 1200 2500 --breakdown

**@⁠HandshakeHackin** on GitHub · 2026-11-25 16:57 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/21) `HandshakeHackin:log-timing-breakdown` → `beta` · +56 −10 · 1 files · 3 commits · open The Proton report in #19 compares texture preparation, GPU time, copy-back time and dropped draws for individual samples. `--breakdown` extracts those counters and copy preparation from existing host timing lines over the selected scene. It reports the median of each counter and the number of complete records. Older or partial records still contribute to the top-level host summary. I checked five captured timing lines from fxceless/victory-fork#26 and fxceless/victory-fork#148. For the RTX 5060 Ti sample, the new line returned 46.7 ms preparing copies, 6.5 ms preparing textures, 121.5 ms on the GPU and 31.9 ms copying back, with 4,030 draws and 443 dropped. Default output matched the original byte-for-byte on both excerpts. I also checked UTF-16 PowerShell output, ANSI colors, inclusive line ranges and a truncated timing line. `python docs/klbf/summarize_log.py run.log --lines 1200 2500 --breakdown`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:52:30 +00:00
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-25 17:02 UTC · original

Thanks a lot @⁠HandshakeHackin! Noted. I'll test it on the RX 9070 XT in the next test build and report back here.

**@⁠PastiiJay** on GitHub · 2026-11-25 17:02 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/21#issuecomment-7168918182) Thanks a lot @⁠HandshakeHackin! Noted. I'll test it on the RX 9070 XT in the next test build and report back here.
Author
Owner

@⁠HandshakeHackin on GitHub · 2026-11-26 05:07 UTC · original

I found a case in #31 where the existing command reported zero timing samples. PowerShell wrapped each timestamped entry between the CPU value and preparing:. At b13635f the tool reconstructs those entries inside the selected physical line range. The attached UTF-16 debug log now yields 37 complete host samples and 37 stage breakdowns. The unwrapped #55 log still gives the same 86 samples and medians.

For a small check on #31, --lines 2767 2769 --breakdown returns one sample at 30.7 FPS, 32.5 ms/frame, and 1.3 ms of CPU preparation. A range ending at line 2767 contains only the incomplete header. Windows and Linux checks passed across 41 single-wrap positions, four encodings, and record/range boundaries. Original #31 log · Windows and Linux checks

**@⁠HandshakeHackin** on GitHub · 2026-11-26 05:07 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/21#issuecomment-7183197464) I found a case in #31 where the existing command reported zero timing samples. PowerShell wrapped each timestamped entry between the CPU value and `preparing:`. At `b13635f` the tool reconstructs those entries inside the selected physical line range. The attached UTF-16 debug log now yields 37 complete host samples and 37 stage breakdowns. The unwrapped #55 log still gives the same 86 samples and medians. For a small check on #31, `--lines 2767 2769 --breakdown` returns one sample at 30.7 FPS, 32.5 ms/frame, and 1.3 ms of CPU preparation. A range ending at line 2767 contains only the incomplete header. Windows and Linux checks passed across 41 single-wrap positions, four encodings, and record/range boundaries. [Original #31 log](https://github.com/user-attachments/files/35434357/run.log) · [Windows and Linux checks](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45759334277)
Author
Owner

@⁠PastiiJay on GitHub · 2026-11-26 10:42 UTC · original

Thanks, recovering those wrapped PowerShell lines makes old logs usable again. We'll use it on our next run.

**@⁠PastiiJay** on GitHub · 2026-11-26 10:42 UTC · [original](https://github.com/PastiiJay/klbf-lab/pull/21#issuecomment-7189730772) Thanks, recovering those wrapped PowerShell lines makes old logs usable again. We'll use it on our next run.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/21/head:github-bot/gh-21'
git switch 'github-bot/gh-21'

Merge

Merge the changes and update on Forgejo.
git switch 'beta'
git merge --no-ff 'github-bot/gh-21'
git switch 'github-bot/gh-21'
git rebase 'beta'
git switch 'beta'
git merge --ff-only 'github-bot/gh-21'
git switch 'github-bot/gh-21'
git rebase 'beta'
git switch 'beta'
git merge --no-ff 'github-bot/gh-21'
git switch 'beta'
git merge --squash 'github-bot/gh-21'
git switch 'beta'
git merge --ff-only 'github-bot/gh-21'
git switch 'beta'
git merge 'github-bot/gh-21'
git push origin 'beta'
This discussion has been locked. Commenting is limited to contributors.
No description provided.