Bench: read the frame line's new "draws or dispatches" wording #2475

Open
m335671 wants to merge 1 commit from upstream-pr/2475 into main
m335671 commented 2026-11-29 13:23:49 +00:00 (Migrated from github.com)

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 from dropped N without a host pipeline (M being made) to dropped N draws or dispatches (M being made). scripts/bench.ps1 and scripts/summarize-frame-log.py still match only the old text, so on a log from main they find no frame line at all: summarize-frame-log.py reports "samples": 0, and bench.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 d2c2a2bc read alike. Two lines, nothing else.

How it was tested

  • GPU and profile: RTX 4070 12 GB, Series X, 1440p, DLSS Quality, frame generation off, ray tracing off. Two release logs of the same 240 s unattended run, one from before d2c2a2bc and one from 829188e.
  • Before: bench.ps1's $lineRe matched 0 of 46 frame lines in the 829188e log (47 of 47 in the older one). summarize-frame-log.py gave "samples": 0 for the 829188e log.
  • After: 46 of 46 and 47 of 47. summarize-frame-log.py gives 36 samples for each log, and the same summary as before for the older one.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: no crate touched (scripts only).

Note: summarize-frame-log.py needs Python 3.11 or later to read the logs' ...Z timestamps (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

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2340 adds a separate tools/bench.ps1 and 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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5551136406 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475). Originally posted by [m335671](https://github.com/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 from `dropped N without a host pipeline (M being made)` to `dropped N draws or dispatches (M being made)`. `scripts/bench.ps1` and `scripts/summarize-frame-log.py` still match only the old text, so on a log from `main` they find no frame line at all: `summarize-frame-log.py` reports `"samples": 0`, and `bench.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 d2c2a2bc read alike. Two lines, nothing else. ## How it was tested - GPU and profile: RTX 4070 12 GB, Series X, 1440p, DLSS Quality, frame generation off, ray tracing off. Two release logs of the same 240 s unattended run, one from before d2c2a2bc and one from `829188e`. - Before: `bench.ps1`'s `$lineRe` matched 0 of 46 frame lines in the `829188e` log (47 of 47 in the older one). `summarize-frame-log.py` gave `"samples": 0` for the `829188e` log. - After: 46 of 46 and 47 of 47. `summarize-frame-log.py` gives 36 samples for each log, and the same summary as before for the older one. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: no crate touched (scripts only). Note: `summarize-frame-log.py` needs Python 3.11 or later to read the logs' `...Z` timestamps (`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 - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2340 adds a separate `tools/bench.ps1` and 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](https://claude.com/claude-code)
tyr0nsur commented 2026-11-30 06:26:51 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T06:26:51Z.


Validated ca95aa0 against two v2026.11.29.05 gameplay captures. I ran the PowerShell/.NET and Python frame regexes from main and this PR against the same inputs. Each parser went from 0 matches on main to 365 and 254 matches on the two captures. The benchmark's >=500 draws/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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7270657933 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475#issuecomment-7270657933). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T06:26:51Z. --- Validated `ca95aa0` against two v2026.11.29.05 gameplay captures. I ran the PowerShell/.NET and Python frame regexes from `main` and this PR against the same inputs. Each parser went from 0 matches on `main` to 365 and 254 matches on the two captures. The benchmark's `>=500` draws/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.
andrewpozdnakov7-jpg commented 2026-12-01 09:43:05 +00:00 (Migrated from github.com)

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 Z into an explicit UTC offset and pads or truncates the fractional seconds to six digits. Review commit · Python datetime documentation

I checked the exact proposal ca95aa0f with 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. With 2a570ea0f7051d76f09cb510d758314056da876f, 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7307103009 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475#issuecomment-7307103009). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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 `Z` into an explicit UTC offset and pads or truncates the fractional seconds to six digits. [Review commit](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/2a570ea0f7051d76f09cb510d758314056da876f) · [Python datetime documentation](https://docs.python.org/3.11/library/datetime.html#datetime.datetime.fromisoformat) I checked the exact proposal `ca95aa0f` with 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. With `2a570ea0f7051d76f09cb510d758314056da876f`, 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.
andrewpozdnakov7-jpg commented 2026-12-01 13:06:51 +00:00 (Migrated from github.com)

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 2a570ea0 has its own synthetic check in the comment above.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7312124068 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475#issuecomment-7312124068). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T13:06:51Z. --- [An independent RTX 4060 Ti run on v2026.11.30.03](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3970#issuecomment-7311943866) 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 `2a570ea0` has its own synthetic check in the comment above. AI-assisted with OpenAI Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2475:upstream-pr/2475'
git switch 'upstream-pr/2475'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2475'
git switch 'upstream-pr/2475'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2475'
git switch 'upstream-pr/2475'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2475'
git switch 'main'
git merge --squash 'upstream-pr/2475'
git switch 'main'
git merge --ff-only 'upstream-pr/2475'
git switch 'main'
git merge 'upstream-pr/2475'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!2475
No description provided.