Add a reproducible renderer benchmark preset #249

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

@⁠AzusaMyo on GitHub · 2026-11-26 13:17 UTC · original
AzusaMyo:codex/7900xtx-benchmark-preset → main · +151 −19 · 4 files · 1 commits · open

Summary

  • Add a -Benchmark launcher preset for the documented Series S, ray-tracing-off configuration with renderer ports 1, 2, 5, 6, and 7. Add -Console for profile comparisons.
  • Log launch settings, the selected adapter's driver version, and p50, p95, p99, and the percentage of successful present intervals over the 30 fps budget.
  • Document how to compare the same route with cold and warm pipeline caches.

Validation

  • Exercised the PowerShell launcher with a stub executable for the default, benchmark, and override paths.
  • Passed the frame interval statistics test and all nine xtask tests.
  • Cross-checked the default and diagnostics builds for x86_64-pc-windows-msvc using blake3/pure for the macOS toolchain. In-game measurements on the RX 7900 XTX are pending.
**@⁠AzusaMyo** on GitHub · 2026-11-26 13:17 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/249) `AzusaMyo:codex/7900xtx-benchmark-preset` → `main` · +151 −19 · 4 files · 1 commits · open ## Summary - Add a `-Benchmark` launcher preset for the documented Series S, ray-tracing-off configuration with renderer ports 1, 2, 5, 6, and 7. Add `-Console` for profile comparisons. - Log launch settings, the selected adapter's driver version, and p50, p95, p99, and the percentage of successful present intervals over the 30 fps budget. - Document how to compare the same route with cold and warm pipeline caches. ## Validation - Exercised the PowerShell launcher with a stub executable for the default, benchmark, and override paths. - Passed the frame interval statistics test and all nine `xtask` tests. - Cross-checked the default and diagnostics builds for `x86_64-pc-windows-msvc` using `blake3/pure` for the macOS toolchain. In-game measurements on the RX 7900 XTX are pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:20:34 +00:00
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-27 01:11 UTC · original

I checked what an automated recorder sees when the benchmarked process exits early. At 3750ec0, pwsh -NoProfile -File scripts/play.ps1 -Exe <fixture> -Benchmark selected Series S and set VICTORY_BENCHMARK=1 as documented. However, child exit codes 0, 7, 42 all produced launcher exit code 0. A runner can therefore mark a failed benchmark successful even when no frame sample exists.

I invoked the actual script in separate PowerShell 7.7 processes on Ubuntu, with a native stand-in under target/diag/victory.exe recording its arguments and returning the requested status. On this head I got 0/0/0 in the default mode, in -Benchmark, and in -Benchmark -Safe -Console series-x. The base script also masked the status in its default mode; this predates the benchmark preset. The explicit console override reached the child as Series X.

As a control, saving $LASTEXITCODE immediately after the native call, keeping Pop-Location in finally, and exiting the script with the saved value returned 0/7/42 in all three modes. Only the launcher process contract was exercised here; there was no renderer or GPU timing in the fixture.

**@⁠Yoshi-233** on GitHub · 2026-11-27 01:11 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/249#issuecomment-7207093261) I checked what an automated recorder sees when the benchmarked process exits early. At `3750ec0`, `pwsh -NoProfile -File scripts/play.ps1 -Exe <fixture> -Benchmark` selected Series S and set `VICTORY_BENCHMARK=1` as documented. However, child exit codes `0`, `7`, `42` all produced launcher exit code `0`. A runner can therefore mark a failed benchmark successful even when no frame sample exists. I invoked the actual script in separate PowerShell 7.7 processes on Ubuntu, with a native stand-in under `target/diag/victory.exe` recording its arguments and returning the requested status. On this head I got `0/0/0` in the default mode, in `-Benchmark`, and in `-Benchmark -Safe -Console series-x`. The base script also masked the status in its default mode; this predates the benchmark preset. The explicit console override reached the child as Series X. As a control, saving `$LASTEXITCODE` immediately after the native call, keeping `Pop-Location` in `finally`, and exiting the script with the saved value returned `0/7/42` in all three modes. Only the launcher process contract was exercised here; there was no renderer or GPU timing in the fixture.
This pull request has changes conflicting with the target branch.
  • scripts/play.ps1
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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