Bench: read the frame line's new "draws or dispatches" wording #2475
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2475"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T13:23:49Z.
Fixes the frame-line pattern of the bench tools (no issue open for it).
What it changes
d2c2a2bc("report descriptor slot allocation drops") changed the 5-second frame line fromdropped N without a host pipeline (M being made)todropped N draws or dispatches (M being made).scripts/bench.ps1andscripts/summarize-frame-log.pystill match only the old text, so on a log frommainthey find no frame line at all:summarize-frame-log.pyreports"samples": 0, andbench.ps1, which waits for a frame line with 500 draws or more to know the world has started, never sees it.Both patterns now accept either wording, so logs from before and after
d2c2a2bcread alike. Two lines, nothing else.How it was tested
d2c2a2bcand one from829188e.bench.ps1's$lineRematched 0 of 46 frame lines in the829188elog (47 of 47 in the older one).summarize-frame-log.pygave"samples": 0for the829188elog.summarize-frame-log.pygives 36 samples for each log, and the same summary as before for the older one.cargo testpassed for the crates it touches: no crate touched (scripts only).Note:
summarize-frame-log.pyneeds Python 3.11 or later to read the logs'...Ztimestamps (datetime.fromisoformat). On 3.10 every line is skipped and it also reports 0 samples, whatever the pattern. That is unchanged here.Checked for overlap
tools/bench.ps1and does not touch these two files; #1319 only quotes the old wording in a report.This pull request was prepared with an AI assistant (Claude Code); the runs and logs it is checked on are mine.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T06:26:51Z.
Validated
ca95aa0against two v2026.11.29.05 gameplay captures. I ran the PowerShell/.NET and Python frame regexes frommainand this PR against the same inputs. Each parser went from 0 matches onmainto 365 and 254 matches on the two captures. The benchmark's>=500draws/frame check recognized 355 and 244 of those records, respectively. Both updated regexes also matched every record after substituting the legacy wording to check compatibility.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T09:43:05Z.
This addresses the Python 3.10 limitation noted in the description. The log summarizer now turns the trailing
Zinto an explicit UTC offset and pads or truncates the fractional seconds to six digits. Review commit · Python datetime documentationI checked the exact proposal
ca95aa0fwith ten synthetic frame records covering both frame-line wordings and timestamps with zero, one, three, six, and nine fractional digits. Python 3.10.11 reported zero samples before the change. With2a570ea0f7051d76f09cb510d758314056da876f, Python 3.10.11 and 3.14.10 both reported ten samples and produced the same JSON as the original script on 3.14.10. The staged policy passed for the one changed file.The commit is ready for this PR if you want to include Python 3.10 compatibility. Please preserve the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it into another commit.AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T13:06:51Z.
An independent RTX 4060 Ti run on v2026.11.30.03 hit the 900-second boot timeout because the stock PowerShell matcher missed the world-start line. The reporter used this PR's frame-line change for the benchmark and recovered the first two captures with the patched parser and
-From.That confirms the benchmark misses a successful game launch on the current release. The Python 3.10 timestamp correction in
2a570ea0has its own synthetic check in the comment above.AI-assisted with OpenAI Codex.
View 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.