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

Open
github-bot wants to merge 1 commit from github-bot/gh-2475 into main AGit
Owner

@⁠m335671 on GitHub · 2026-11-29 13:23 UTC · original
m335671:fix/bench-frame-line → main · +2 −2 · 2 files · 1 commits · open

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

**@⁠m335671** on GitHub · 2026-11-29 13:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475) `m335671:fix/bench-frame-line` → `main` · +2 −2 · 2 files · 1 commits · open 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)
d2c2a2bc (descriptor slot 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 matched only the old text, so on a
log from main they find no frame line at all: summarize-frame-log.py
reports 0 samples, and bench.ps1 never sees the world start. Both now
accept either wording, so logs from before and after d2c2a2bc read alike.

Checked on two release logs of the same 240 s run (RTX 4070): the old
pattern matched 0 of 46 frame lines on a log from 829188e and 47 of 47
on one from before d2c2a2bc; the new one matches 46 of 46 and 47 of 47,
and summarize-frame-log.py gives the same summary for the older log as
before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 13:28:19 +00:00
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 06:26 UTC · original

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.

**@⁠tyr0nsur** on GitHub · 2026-11-30 06:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475#issuecomment-7270657933) 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.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 09:43 UTC · original

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 09:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475#issuecomment-7307103009) 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.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 13:06 UTC · original

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 13:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2475#issuecomment-7312124068) [An independent RTX 4060 Ti run on v2026.11.30.03](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/3970) 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 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/2475/head:github-bot/gh-2475'
git switch 'github-bot/gh-2475'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2475'
git switch 'github-bot/gh-2475'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2475'
git switch 'github-bot/gh-2475'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2475'
git switch 'main'
git merge --squash 'github-bot/gh-2475'
git switch 'main'
git merge --ff-only 'github-bot/gh-2475'
git switch 'main'
git merge 'github-bot/gh-2475'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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