Add a reproducible renderer benchmark preset #249

Open
AzusaMyo wants to merge 1 commit from upstream-pr/249 into main
AzusaMyo commented 2026-11-26 13:17:06 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by AzusaMyo on 2026-11-26T13:17:06Z.


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.
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5510729542 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/249). Originally posted by [AzusaMyo](https://github.com/AzusaMyo) on 2026-11-26T13:17:06Z. --- ## 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.
Yoshi-233 commented 2026-11-27 01:11:55 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Yoshi-233 on 2026-11-27T01:11:55Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7207093261 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/249#issuecomment-7207093261). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-27T01:11:55Z. --- 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 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/249:upstream-pr/249'
git switch 'upstream-pr/249'

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/249'
git switch 'upstream-pr/249'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/249'
git switch 'upstream-pr/249'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/249'
git switch 'main'
git merge --squash 'upstream-pr/249'
git switch 'main'
git merge --ff-only 'upstream-pr/249'
git switch 'main'
git merge 'upstream-pr/249'
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
avatarmanz/VIctory-7900XTX!249
No description provided.