Add an optional stage breakdown to the scene timing summary #21
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T16:57:27Z.
The Proton report in #19 compares texture preparation, GPU time, copy-back time and dropped draws for individual samples.
--breakdownextracts 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 --breakdownImported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T17:02:42Z.
Thanks a lot @HandshakeHackin! Noted. I'll test it on the RX 9070 XT in the next test build and report back here.
Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-26T05:07:12Z.
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:. Atb13635fthe 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 --breakdownreturns 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 checksImported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T10:42:41Z.
Thanks, recovering those wrapped PowerShell lines makes old logs usable again. We'll use it on our next run.
Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T13:58:48Z.
--breakdownnow includes submission refresh time, flushes, spans and the median per-sample cost per span, for the scene comparison in #425. I checked it against two real v26.12.1 logs from #427. In the 60-second windows ending 10 seconds before each log ended, the script parsed 57 and 58 refresh records, plus 12 host timing samples in each.To reproduce from that issue’s ZIP: use
--lines 37927 41811 --breakdownon the16-03-14log and--lines 42606 46654 --breakdownon16-17-46. Their median costs were 0.00210 and 0.00192 ms per logged span. Fixed three-decimal output rounded both to 0.002, so the script now keeps three significant digits. All four parser tests passed. These two windows verify the parser on real logs; they cover different gameplay workloads. Code and regression testView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.