[GH #819] Testing: a bench script that gives every build the same five numbers (with memory guards) #819

Open
opened 2026-11-24 12:04:20 +00:00 by bittertea0323 · 2 comments
bittertea0323 commented 2026-11-24 12:04:20 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T11:34:15Z.

Upstream labels: request, area: build


A reusable bench script: one command gives the same five numbers for any build

Chasing individual bugs is the maintainers' job. What is missing on the testing side is a
comparable scorecard — right now every report in this tracker states its numbers differently
(different durations, different stages, sometimes no memory figure), so two patches cannot be put
side by side. This is a small script that fixes that for Windows hosts.

What it produces

One Markdown report per run, with exactly the numbers a patch review needs:

| metric | value |
|---|---|
| translation failures | 63 |
| texture creation failures | 4 |
| peak draws/frame | 1894 |
| peak fps | 30 |
| peak RAM | 3.34 GB |
| crash RVA | (none) |

## Failures by reason
  44x  a descriptor read only as data
  11x  a structured buffer of unknown stride

plus a 3-second-resolution timeline and an optional -Baseline <report> diff table, so
"this patch moved the needle" becomes a two-column comparison instead of a paragraph.

Safety is built in (this matters on 32 GB hosts)

A title run in Series X mode reaches 13.2 GB RSS and eats the desktop (see #784). The script
therefore stops the run on any of three conditions and says which one fired:

process RSS   > 8 GB        (default, -MaxRamGB)
system free   < 3 GB        (default, -MinSysGB)
time budget   expired       (default 180 s, -Seconds)

Three-second sampling, because a 5-second window can miss a spike.

Usage

# baseline, memory-lean mode
.\victory-bench.ps1 -Console series-s -Seconds 120 -Label 'main @ ffe310e'

# a patched build, diffed against that baseline
.\victory-bench.ps1 -Exe ..\victory-target\release\victory.exe `
                    -Baseline .\bench\report-<stamp>.md -Label 'with #728'

It never writes into the repository, never reports game content, and only records counts,
timings and the faulting RVA.

First measured baseline on this host (Series S, 90 s, main @ ffe310e + #729)

translation failures   0        (menu stage only)
texture failures       4        (the 86/115 video formats, see #797)
peak draws/frame       8
peak fps              30
peak RAM              3.34 GB
crash                  none

That is the honest baseline for "menus only": zero translation failures at the menu, and the four
texture failures are the video path. It also shows why Series S mode is the safe way to test on a
32 GB box — 3.34 GB versus 13.2 GB.

I am happy to keep posting these scorecards for each new main if that is useful; the script is
under E:\gta6-build\bench\victory-bench.ps1 on my side but is small enough to include on request.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6580840917 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/819). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T11:34:15Z. **Upstream labels:** request, area: build --- # A reusable bench script: one command gives the same five numbers for any build Chasing individual bugs is the maintainers' job. What is missing on the testing side is a **comparable scorecard** — right now every report in this tracker states its numbers differently (different durations, different stages, sometimes no memory figure), so two patches cannot be put side by side. This is a small script that fixes that for Windows hosts. ## What it produces One Markdown report per run, with exactly the numbers a patch review needs: ```markdown | metric | value | |---|---| | translation failures | 63 | | texture creation failures | 4 | | peak draws/frame | 1894 | | peak fps | 30 | | peak RAM | 3.34 GB | | crash RVA | (none) | ## Failures by reason 44x a descriptor read only as data 11x a structured buffer of unknown stride ``` plus a 3-second-resolution timeline and an optional `-Baseline <report>` diff table, so "this patch moved the needle" becomes a two-column comparison instead of a paragraph. ## Safety is built in (this matters on 32 GB hosts) A title run in Series X mode reaches 13.2 GB RSS and eats the desktop (see #784). The script therefore stops the run on any of three conditions and says which one fired: ``` process RSS > 8 GB (default, -MaxRamGB) system free < 3 GB (default, -MinSysGB) time budget expired (default 180 s, -Seconds) ``` Three-second sampling, because a 5-second window can miss a spike. ## Usage ```powershell # baseline, memory-lean mode .\victory-bench.ps1 -Console series-s -Seconds 120 -Label 'main @ ffe310e' # a patched build, diffed against that baseline .\victory-bench.ps1 -Exe ..\victory-target\release\victory.exe ` -Baseline .\bench\report-<stamp>.md -Label 'with #728' ``` It never writes into the repository, never reports game content, and only records counts, timings and the faulting RVA. ## First measured baseline on this host (Series S, 90 s, `main` @ `ffe310e` + #729) ``` translation failures 0 (menu stage only) texture failures 4 (the 86/115 video formats, see #797) peak draws/frame 8 peak fps 30 peak RAM 3.34 GB crash none ``` That is the honest baseline for "menus only": zero translation failures at the menu, and the four texture failures are the video path. It also shows why Series S mode is the safe way to test on a 32 GB box — 3.34 GB versus 13.2 GB. I am happy to keep posting these scorecards for each new `main` if that is useful; the script is under `E:\gta6-build\bench\victory-bench.ps1` on my side but is small enough to include on request.
bittertea0323 commented 2026-11-24 12:04:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T11:36:14Z.


Second run with the script, this time Series X with the 8 GB guard, confirms why scene-stage
numbers are rare in this tracker:

failures=63  texFail=2  peakDraws=11  peakFps=31  peakRAM=8.3GB  crash=none
                                                        ^ stopped by -MaxRamGB 8

peakDraws is still 11 (menu) when the guard fires: Series X loading alone reaches 8.3 GB
before the scene appears
, and the scene itself measured 13.2 GB earlier (#784). On a 31.2 GB host
there is no safe window to capture the scene numbers at all.

So the three data points on this machine are:

Series S  3.34 GB    runs, 8 draws (menu/UI only)
Series X  8.3 GB     loading, guard-fired before the scene
Series X 13.2 GB     after the scene loads, system already unstable

That is the honest reason my copy-cost numbers are menu-stage only, and probably why other testers
report the same gap. Reducing the title process footprint would be worth as much as any shader fix
for testability: with Series X at 13 GB, nobody on a 32 GB box can iterate on the world.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7130310019 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/819#issuecomment-7130310019). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T11:36:14Z. --- Second run with the script, this time **Series X with the 8 GB guard**, confirms why scene-stage numbers are rare in this tracker: ``` failures=63 texFail=2 peakDraws=11 peakFps=31 peakRAM=8.3GB crash=none ^ stopped by -MaxRamGB 8 ``` `peakDraws` is still 11 (menu) when the guard fires: **Series X loading alone reaches 8.3 GB before the scene appears**, and the scene itself measured 13.2 GB earlier (#784). On a 31.2 GB host there is no safe window to capture the scene numbers at all. So the three data points on this machine are: ``` Series S 3.34 GB runs, 8 draws (menu/UI only) Series X 8.3 GB loading, guard-fired before the scene Series X 13.2 GB after the scene loads, system already unstable ``` That is the honest reason my copy-cost numbers are menu-stage only, and probably why other testers report the same gap. Reducing the title process footprint would be worth as much as any shader fix for testability: with Series X at 13 GB, nobody on a 32 GB box can iterate on the world.
Marvisak commented 2026-11-25 04:07:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:48:15Z.


Automated triage for the maintainers. This proposes a PowerShell bench script for Windows hosts that reports the same metrics for every run (translation and texture failures, draws, fps, peak RAM, crash RVA) and stops the run at memory or time limits. The script is not in the repository and has not been posted. If the maintainers want it, it can be sent as a pull request (they are open to everyone, see #717); it must record only counts and timings, as described. Related: #1743 (a benchmark that replays a world frame's copies). The Series X memory numbers are a separate point for the maintainers; #784 has the 13.2 GB measurement.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152256438 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/819#issuecomment-7152256438). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:48:15Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T11:36:14Z at=2026-11-25T03:48:15Z --> Automated triage for the maintainers. This proposes a PowerShell bench script for Windows hosts that reports the same metrics for every run (translation and texture failures, draws, fps, peak RAM, crash RVA) and stops the run at memory or time limits. The script is not in the repository and has not been posted. If the maintainers want it, it can be sent as a pull request (they are open to everyone, see #717); it must record only counts and timings, as described. Related: #1743 (a benchmark that replays a world frame's copies). The Series X memory numbers are a separate point for the maintainers; #784 has the 13.2 GB measurement. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
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
Marvisak/VIctory#819
No description provided.