8 GB NVIDIA laptop data: VICTORY_MEMORY_CARD_MB=2048 was worth ~6x, plus a possible VRAM creep #3505

Open
opened 2026-11-27 11:16:24 +00:00 by YUYING234 · 20 comments
YUYING234 commented 2026-11-27 11:16:24 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T11:16:24Z.


Measured on an 8 GB NVIDIA laptop (RTX 4060 Laptop, 8188 MiB; D3D12 budget reported 6489-6569 MB), i9-14900HX, 32 GB DDR5, Windows 11 build 26300, driver 621.01, hybrid graphics. Public fork edsuuu/VI-BR-PORT, built from source (MSVC 14.44 + rust 1.98.1, ~45 s). No game files included or linked.

Posting here because two of the findings look layer-level rather than fork-level, and this is where most people will look.

Results (Series S profile, 1080p)

  • Menus 30 fps (title cap), cell 17-24, walking 12-17, heavy 8.5k-draw street 9-12
  • 6 min 11 s session, 47 samples: median 12 fps, GPU median 85 %, 62-64 C, no throttling
  • Frame rate is nearly independent of draw count here (3k draws -> 13 fps, 8.5k -> 12 fps): the cost is per-frame fixed overhead, not scene scale

Two switches that mattered

Change Before After
VICTORY_MEMORY_CARD_MB=1024 -> 2048 1-3 fps (GPU only 3-25 % busy, frames 300-1200 ms) 13-17 fps (GPU 85 %)
VICTORY_HEAP_RECHECK=0 prepare 44 ms/frame, copies 12 ms / 70 MB prepare 29 ms, copies 10 ms / 55 MB

The first one is worth ~6x on this card: at 1024 the GPU sits idle most of the frame, waiting for memory. The second changes no frame rate while the GPU is the limit, but removes about a third of the host-side work, so it should matter as the GPU side improves. No visual difference; the "texture picked by index changed after its upload" warnings drop to zero.

Negative results (so nobody repeats them)

  • 720p output instead of 1080p: 13-17 -> 13-14 fps. Not pixel-bound.
  • VICTORY_ASYNC_SUBMIT=1: 13-17 -> 7-12 fps on this 32 GB laptop, i.e. worse (it is reported as +1.4 fps on a 64 GB desktop, so it looks memory/thread-count dependent).
  • Half render scale and FSR: no change, same reason as 720p.

Something that may be a real leak

VRAM goes 7342 -> 7921 MiB in 6 minutes (96 % of 8192). At the ceiling the frame rate collapses to 3-4 fps and textures blur; restarting the title resets it. If this reproduces for others on 8 GB, a note about session length would save people some confusion.

Shaders that still fail to translate (dropped draws)

002e93a6cc2aa355, 0e64f14fae060d04, dbdbf36298727135, 96ccb14ef981fd85 (a lane-read VGPR written without a dword value); 77360df21e12ea43, 9fc111d3be79364f, 39321a95223001ed (a first-lane read where not every lane); 07c93bfb77fecebb (a descriptor read only as data). Plus 7 compute pipelines refused by the driver with E_INVALIDARG (0x80070057).

Full configuration and the A/B tables: edsuuu/VI-BR-PORT PR #7 (docs/benchmarks-4060-laptop-8gb.md). Tracker entry: 4lwayz/portwatch-vi issue #251.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6645346866 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-27T11:16:24Z. --- Measured on an 8 GB NVIDIA **laptop** (RTX 4060 Laptop, 8188 MiB; D3D12 budget reported 6489-6569 MB), i9-14900HX, 32 GB DDR5, Windows 11 build 26300, driver 621.01, hybrid graphics. Public fork `edsuuu/VI-BR-PORT`, built from source (MSVC 14.44 + rust 1.98.1, ~45 s). No game files included or linked. Posting here because two of the findings look layer-level rather than fork-level, and this is where most people will look. ## Results (Series S profile, 1080p) - Menus 30 fps (title cap), cell 17-24, walking 12-17, heavy 8.5k-draw street 9-12 - 6 min 11 s session, 47 samples: median **12 fps**, GPU median 85 %, 62-64 C, no throttling - Frame rate is nearly independent of draw count here (3k draws -> 13 fps, 8.5k -> 12 fps): the cost is per-frame fixed overhead, not scene scale ## Two switches that mattered | Change | Before | After | |---|---|---| | `VICTORY_MEMORY_CARD_MB=1024` -> `2048` | **1-3 fps** (GPU only 3-25 % busy, frames 300-1200 ms) | **13-17 fps** (GPU 85 %) | | `VICTORY_HEAP_RECHECK=0` | prepare 44 ms/frame, copies 12 ms / 70 MB | prepare **29 ms**, copies **10 ms / 55 MB** | The first one is worth ~6x on this card: at 1024 the GPU sits idle most of the frame, waiting for memory. The second changes no frame rate while the GPU is the limit, but removes about a third of the host-side work, so it should matter as the GPU side improves. No visual difference; the "texture picked by index changed after its upload" warnings drop to zero. ## Negative results (so nobody repeats them) - 720p output instead of 1080p: 13-17 -> 13-14 fps. Not pixel-bound. - `VICTORY_ASYNC_SUBMIT=1`: 13-17 -> 7-12 fps on this 32 GB laptop, i.e. worse (it is reported as +1.4 fps on a 64 GB desktop, so it looks memory/thread-count dependent). - Half render scale and FSR: no change, same reason as 720p. ## Something that may be a real leak VRAM goes 7342 -> 7921 MiB in 6 minutes (96 % of 8192). At the ceiling the frame rate collapses to 3-4 fps and textures blur; restarting the title resets it. If this reproduces for others on 8 GB, a note about session length would save people some confusion. ## Shaders that still fail to translate (dropped draws) `002e93a6cc2aa355`, `0e64f14fae060d04`, `dbdbf36298727135`, `96ccb14ef981fd85` (a lane-read VGPR written without a dword value); `77360df21e12ea43`, `9fc111d3be79364f`, `39321a95223001ed` (a first-lane read where not every lane); `07c93bfb77fecebb` (a descriptor read only as data). Plus 7 compute pipelines refused by the driver with `E_INVALIDARG (0x80070057)`. Full configuration and the A/B tables: `edsuuu/VI-BR-PORT` PR #7 (`docs/benchmarks-4060-laptop-8gb.md`). Tracker entry: 4lwayz/portwatch-vi issue #251.
neonbyte1 commented 2026-11-27 11:37:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T11:37:47Z.


@YUYING234 thanks for the shader list. I ran your 8 hashes through an offline census on our tree (main plus the PRs we need on NVIDIA under Wine, with #3506 to match runtime hashes): all 8 translate there. 7 already do on our base; 07c93bfb77fecebb needs #2999 (implicit-derivative samples in compute). The reasons you saw ("a lane-read VGPR written without a dword value", "a first-lane read where not every lane") don't exist in main's translator, so they come from the fork's own changes; that may be worth raising on the fork. Details are in #3502.

For the 7 compute pipelines the driver refused with E_INVALIDARG: if you can post their hashes (from the dropped ... refused [compute <hash>] lines), I'll check them on our RTX 5090, and they would go into section C of #3502 as host refusals with your driver version.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7217294834 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7217294834). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-27T11:37:47Z. --- @YUYING234 thanks for the shader list. I ran your 8 hashes through an offline census on our tree (`main` plus the PRs we need on NVIDIA under Wine, with #3506 to match runtime hashes): all 8 translate there. 7 already do on our base; `07c93bfb77fecebb` needs #2999 (implicit-derivative samples in compute). The reasons you saw ("a lane-read VGPR written without a dword value", "a first-lane read where not every lane") don't exist in `main`'s translator, so they come from the fork's own changes; that may be worth raising on the fork. Details are in #3502. For the 7 compute pipelines the driver refused with `E_INVALIDARG`: if you can post their hashes (from the `dropped ... refused [compute <hash>]` lines), I'll check them on our RTX 5090, and they would go into section C of #3502 as host refusals with your driver version. _AI-assisted (Claude); measured on my machine, no game data shared._
YUYING234 commented 2026-11-27 12:58:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T12:58:07Z.


@neonbyte1 thanks - both answers below.

The 7 hashes the driver refused with E_INVALIDARG (from host pipeline refused error=0x80070057 shaders=[compute <hash>], 7 distinct hashes over a 10-minute run, each seen once and never retried):

2da4beb386509b77
22338086ea4c5364
02384a60fda6f2d0
6832a9da15c2e584
6b82bc7d22016cb5
3b02415f67c6b0d8
1d434307d981352a

Every one of them carries the same annotation on the same log line:

shaders=[compute 2da4beb386509b77] wave_lanes=Some((64, 64))

So this looks like the wave64-vs-wave32 item you already have in #2220 rather than seven separate bugs: the shader asks for 64-lane waves, and NVIDIA refuses the pipeline instead of lowering it. If a wave32 fallback exists somewhere in main but is not reached from this fork's path, that would explain why we see seven.

On the 8 shader hashes: understood, and that is useful - if main's translator handles them and this fork's does not, then the fork carried a regression in its shader changes, and I will raise it there rather than here. 07c93bfb77fecebb waiting on #2999 is noted.

For context, this is the same machine as 4lwayz/portwatch-vi#251 and it runs the fork at 12 fps median (13-17 walking, 9-12 in the heaviest street scenes, 8 GB laptop, Series S, 1080p).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7218896668 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7218896668). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-27T12:58:07Z. --- @neonbyte1 thanks - both answers below. **The 7 hashes the driver refused with `E_INVALIDARG`** (from `host pipeline refused error=0x80070057 shaders=[compute <hash>]`, 7 distinct hashes over a 10-minute run, each seen once and never retried): ``` 2da4beb386509b77 22338086ea4c5364 02384a60fda6f2d0 6832a9da15c2e584 6b82bc7d22016cb5 3b02415f67c6b0d8 1d434307d981352a ``` Every one of them carries the same annotation on the same log line: ``` shaders=[compute 2da4beb386509b77] wave_lanes=Some((64, 64)) ``` So this looks like the wave64-vs-wave32 item you already have in #2220 rather than seven separate bugs: the shader asks for 64-lane waves, and NVIDIA refuses the pipeline instead of lowering it. If a wave32 fallback exists somewhere in `main` but is not reached from this fork's path, that would explain why we see seven. On the 8 shader hashes: understood, and that is useful - if `main`'s translator handles them and this fork's does not, then the fork carried a regression in its shader changes, and I will raise it there rather than here. `07c93bfb77fecebb` waiting on #2999 is noted. For context, this is the same machine as 4lwayz/portwatch-vi#251 and it runs the fork at 12 fps median (13-17 walking, 9-12 in the heaviest street scenes, 8 GB laptop, Series S, 1080p).
neonbyte1 commented 2026-11-27 13:05:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T13:05:46Z.


@YUYING234 thanks, that settles it. All 7 are wave64 programs with groups larger than 64 threads (numthreads 128 to 1024, from #3506's census output), so your reading matches: the fork emits them with WaveSize(64) and NVIDIA refuses the pipeline (#2220). On main the same programs never reach the driver: the translator refuses them on 32-lane hosts ("console wave64 lanes in a group of more than 64 threads"), and three of them (2da4beb3…, 02384a60…, 6b82bc7d…) are rows of section A in #3502 for that reason.

The fix on both paths is the wave64 stack #2176 → #2711 → #2925, which runs each console wave as two 32-lane halves. In our offline census on an RTX 5090 setup (victory translate --list --host-lanes 32-32), all 7 translate with it. That stack hasn't landed yet, so on main today these dispatches are dropped rather than refused.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7219050628 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7219050628). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-27T13:05:46Z. --- @YUYING234 thanks, that settles it. All 7 are wave64 programs with groups larger than 64 threads (`numthreads` 128 to 1024, from #3506's census output), so your reading matches: the fork emits them with `WaveSize(64)` and NVIDIA refuses the pipeline (#2220). On `main` the same programs never reach the driver: the translator refuses them on 32-lane hosts ("console wave64 lanes in a group of more than 64 threads"), and three of them (`2da4beb3…`, `02384a60…`, `6b82bc7d…`) are rows of section A in #3502 for that reason. The fix on both paths is the wave64 stack #2176 → #2711 → #2925, which runs each console wave as two 32-lane halves. In our offline census on an RTX 5090 setup (`victory translate --list --host-lanes 32-32`), all 7 translate with it. That stack hasn't landed yet, so on `main` today these dispatches are dropped rather than refused. _AI-assisted (Claude); measured on my machine, no game data shared._
KainanP commented 2026-11-27 13:45:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T13:45:54Z.


@YUYING234 this is the most useful 8 GB laptop data I've seen, thanks. I have the same card (RTX 4060 Laptop 8 GB) and I'm working on the 8 GB side of LooperSalty/AnyXboxX (its LowVram preset's texture cap is currently not read by its new Vice-Tay base). If you ever have time for one more run, an AnyXboxX main run with the 8 GB preset and the frame/GPU-time log lines (same scene, Series S, 1080p) would tell us whether that base is GPU-bound the same way on this card — nobody has posted an 8 GB laptop run of it yet. Your two findings (VICTORY_MEMORY_CARD_MB=2048 ~6×, VICTORY_HEAP_RECHECK=0) are going into that work with credit.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7219914792 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7219914792). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-27T13:45:54Z. --- @YUYING234 this is the most useful 8 GB laptop data I've seen, thanks. I have the same card (RTX 4060 Laptop 8 GB) and I'm working on the 8 GB side of LooperSalty/AnyXboxX (its LowVram preset's texture cap is currently not read by its new Vice-Tay base). If you ever have time for one more run, an AnyXboxX `main` run with the 8 GB preset and the frame/GPU-time log lines (same scene, Series S, 1080p) would tell us whether that base is GPU-bound the same way on this card — nobody has posted an 8 GB laptop run of it yet. Your two findings (`VICTORY_MEMORY_CARD_MB=2048` ~6×, `VICTORY_HEAP_RECHECK=0`) are going into that work with credit. _AI use: Claude Code (Claude Opus 5.5)._
vi-tester-8gb commented 2026-11-27 13:56:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by vi-tester-8gb on 2026-11-27T13:56:21Z.


RTX 5060 Laptop 8 GB: trustno1 vs Zaka vs Kemerd, same scene, frame generation on an 8 GB card

Adding a second 8 GB laptop data point next to the RTX 4060 Laptop numbers above, this time comparing three
public NVIDIA forks on the same machine and the same scene (prison prologue), each built from source. No game
files, no NVIDIA files redistributed (Streamline v2.14.16 taken from NVIDIA's GitHub release, signatures checked).

Machine: RTX 5060 Laptop GPU 8 GB (115 W limit), i7-13620H (6P+4E, 16 threads), 31.6 GB RAM, Windows 11
build 26300, driver 621.24, PCIe Gen5 x8 under load, Resizable BAR on, MUX in discrete mode, on AC.
Fan/power profile: vendor "performance". CPU held turbo the whole time (~140-155 % of base clock).

Common settings: Series S profile, DLSS Quality through Streamline, DLSS frame generation, windowed.
Each fork has its own cache and data folder; shaders pre-translated with victory shaders before the first run
(25,667 translated, 222 do not on the trustno1/Kemerd tree; 25,689 / 200 on Zaka's).

Results

Frame times from the window title every ~4 s, split by draws per frame. "Rendered" = what the title runs at;
frame generation multiplies the shown rate only.

Build Frame gen Draws < 3,500: median (p90) Draws >= 3,500: median (p90) Dropped draws (no host pipeline)
trustno1-coder/VIctory-NVIDIA 959dcaf 4x 71 ms (301) 115 ms (347) ~440
TheUnrealZaka/VIctoryUnified-DLSS (yaekai-base, 27 Nov) 2x ~114 ms median overall, GPU 99 % busy not counted
Kemerd/VIctory-NVIDIA-RT 421dfac, its "fast" set 4x 64 ms (80) 93 ms (115) 251

Both trustno1 and Kemerd numbers include their first launch. Best moments with Kemerd: 18.8 rendered / 75 shown
at 2,600 draws. Kemerd whole session: n=370, median 76 ms, p90 121, p99 203. No crash, no device loss
(~25 min). Pool tuning from trustno1's launcher was on for both (THIN 12 / UNDER 8 / LAND 6, PLACED_ORDER=1).

Observations

  1. First launch. trustno1 sat at 2.5-3.5 fps for ~5 minutes while ~600 pipelines were being made
    (CPU at 99 %, log: dropped N without a host pipeline (M being made)); only once that count reached 0
    did it jump to 14 fps. Kemerd ran ~11 fps while ~510 were still being made. The p90 difference
    above (301 vs 80 ms) is mostly this.
  2. Heavy scenes are GPU/VRAM bound here, not CPU bound. Kemerd at 6,000-9,000 draws: ~100 ms a frame,
    the submitting thread preparing ~55-60 ms, the card 76-95 % busy at only ~50 W of 115.
    Texture queue at the same time: 6633 MB in use ... = 5924 MB against a line of 5459 MB (80.0 % of a budget of 6824 MB): no room, new textures wait. With frame generation on, render targets plus FG take
    ~1.7 GB more (trustno1: 1695 MB kept for render targets, 6,942 MB against a 5,266 MB line).
    So unlike the 4060 Laptop report above, frame time here does scale with draw count (64 ms -> 93 ms).
  3. Frame generation 4x works on an RTX 5060 Laptop. victory upscaler-check --device --present:
    DLSS and FG supported, 180/180 generated frames, status 0. In game the title shows
    X fps (frame gen 4X fps) consistently.
  4. victory warm did nothing for us (possible bug or misuse). Kemerd tree, VICTORY_CACHE_DIR set to a
    cache whose pipelines\known-pipelines.bin (plus early/slow lists) came from a trustno1 run of the same
    title: 83563 pipelines known, 0 made before, 0 bad; 2470 to make with --used, then
    0 made in 4 s (0 have no host pipeline, 0 ended their process), also with --jobs 1 --limit 5.
    No error printed. Maybe the book is not usable across trees, or warm needs the title images a first run
    writes into cache\images; if so, a message saying why would help.
  5. Zaka's fork (2x FG, mip drop 1, card buffers 1536): GPU-bound at 99 %, 5-10 fps rendered after its
    pipelines were made, CPU 42-82 %. One visual issue: a cellmate's hair strands and glasses floating beside
    the head (not seen on trustno1/Kemerd in the same spot).

Not tried yet

  • VICTORY_HEAP_RECHECK=0 (from the report above) on Kemerd: added to our launcher, not measured yet.
  • VICTORY_MEMORY_CARD_MB: Kemerd's default is already max(4 GiB, budget/4), so the 1024 -> 2048 finding
    above does not apply as is; unclear whether 4 GiB is too much on an 8 GB card with FG.
  • DLSS Performance instead of Quality, and a 10 fps cap (40 shown) for even pacing, for the GPU-bound heavy
    scenes.

Measured on my laptop and written up with help from Claude.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7220129660 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7220129660). Originally posted by [vi-tester-8gb](https://github.com/vi-tester-8gb) on 2026-11-27T13:56:21Z. --- ## RTX 5060 Laptop 8 GB: trustno1 vs Zaka vs Kemerd, same scene, frame generation on an 8 GB card Adding a second 8 GB **laptop** data point next to the RTX 4060 Laptop numbers above, this time comparing three public NVIDIA forks on the same machine and the same scene (prison prologue), each built from source. No game files, no NVIDIA files redistributed (Streamline v2.14.16 taken from NVIDIA's GitHub release, signatures checked). **Machine:** RTX 5060 Laptop GPU 8 GB (115 W limit), i7-13620H (6P+4E, 16 threads), 31.6 GB RAM, Windows 11 build 26300, driver 621.24, PCIe Gen5 x8 under load, Resizable BAR on, MUX in discrete mode, on AC. Fan/power profile: vendor "performance". CPU held turbo the whole time (~140-155 % of base clock). **Common settings:** Series S profile, DLSS Quality through Streamline, DLSS frame generation, windowed. Each fork has its own cache and data folder; shaders pre-translated with `victory shaders` before the first run (25,667 translated, 222 do not on the trustno1/Kemerd tree; 25,689 / 200 on Zaka's). ### Results Frame times from the window title every ~4 s, split by draws per frame. "Rendered" = what the title runs at; frame generation multiplies the shown rate only. | Build | Frame gen | Draws < 3,500: median (p90) | Draws >= 3,500: median (p90) | Dropped draws (no host pipeline) | |---|---|---|---|---| | trustno1-coder/VIctory-NVIDIA `959dcaf` | 4x | 71 ms (301) | 115 ms (347) | ~440 | | TheUnrealZaka/VIctoryUnified-DLSS (yaekai-base, 27 Nov) | 2x | ~114 ms median overall, GPU 99 % busy | | not counted | | Kemerd/VIctory-NVIDIA-RT `421dfac`, its "fast" set | 4x | **64 ms (80)** | **93 ms (115)** | **251** | Both trustno1 and Kemerd numbers include their first launch. Best moments with Kemerd: 18.8 rendered / 75 shown at 2,600 draws. Kemerd whole session: n=370, median 76 ms, p90 121, p99 203. No crash, no device loss (~25 min). Pool tuning from trustno1's launcher was on for both (THIN 12 / UNDER 8 / LAND 6, PLACED_ORDER=1). ### Observations 1. **First launch.** trustno1 sat at 2.5-3.5 fps for ~5 minutes while ~600 pipelines were being made (CPU at 99 %, log: `dropped N without a host pipeline (M being made)`); only once that count reached 0 did it jump to 14 fps. Kemerd ran ~11 fps *while* ~510 were still being made. The p90 difference above (301 vs 80 ms) is mostly this. 2. **Heavy scenes are GPU/VRAM bound here, not CPU bound.** Kemerd at 6,000-9,000 draws: ~100 ms a frame, the submitting thread preparing ~55-60 ms, the card 76-95 % busy at only ~50 W of 115. Texture queue at the same time: `6633 MB in use ... = 5924 MB against a line of 5459 MB (80.0 % of a budget of 6824 MB): no room, new textures wait`. With frame generation on, render targets plus FG take ~1.7 GB more (trustno1: `1695 MB kept for render targets`, 6,942 MB against a 5,266 MB line). So unlike the 4060 Laptop report above, frame time here *does* scale with draw count (64 ms -> 93 ms). 3. **Frame generation 4x works on an RTX 5060 Laptop.** `victory upscaler-check --device --present`: DLSS and FG supported, 180/180 generated frames, status 0. In game the title shows `X fps (frame gen 4X fps)` consistently. 4. **`victory warm` did nothing for us (possible bug or misuse).** Kemerd tree, `VICTORY_CACHE_DIR` set to a cache whose `pipelines\known-pipelines.bin` (plus early/slow lists) came from a trustno1 run of the same title: `83563 pipelines known, 0 made before, 0 bad; 2470 to make` with `--used`, then `0 made in 4 s (0 have no host pipeline, 0 ended their process)`, also with `--jobs 1 --limit 5`. No error printed. Maybe the book is not usable across trees, or warm needs the title images a first run writes into `cache\images`; if so, a message saying why would help. 5. **Zaka's fork** (2x FG, mip drop 1, card buffers 1536): GPU-bound at 99 %, 5-10 fps rendered after its pipelines were made, CPU 42-82 %. One visual issue: a cellmate's hair strands and glasses floating beside the head (not seen on trustno1/Kemerd in the same spot). ### Not tried yet - `VICTORY_HEAP_RECHECK=0` (from the report above) on Kemerd: added to our launcher, not measured yet. - `VICTORY_MEMORY_CARD_MB`: Kemerd's default is already max(4 GiB, budget/4), so the 1024 -> 2048 finding above does not apply as is; unclear whether 4 GiB is too much on an 8 GB card with FG. - DLSS Performance instead of Quality, and a 10 fps cap (40 shown) for even pacing, for the GPU-bound heavy scenes. _Measured on my laptop and written up with help from Claude._
vi-tester-8gb commented 2026-11-27 14:19:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by vi-tester-8gb on 2026-11-27T14:19:06Z.


@KainanP here is the AnyXboxX run you asked for, on an 8 GB laptop, plus what we learned on the same machine tonight that may help the 8 GB side.

Setup: LooperSalty/AnyXboxX main as of 27 Nov ~14:10 UTC, its own third_party/victory (Vice-Tay base) built from source. RTX 5060 Laptop 8 GB, i7-13620H (16 threads), 32 GB, driver 621.24, on AC (same machine as my comment above). Series S (--console series-s), VICTORY_DISPLAY_MODE and VICTORY_OUTPUT = 1920x1080, windowed. Environment = TUNED + the 16-thread pools (12/8/6) + the launcher's "8 GB card" preset (CARD_WINDOWS_MB=512, CARD_BUFFERS_MB=512, TEXTURE_ROOM_PERCENT=85, TEXTURE_MAX_SIZE=1024), copied from crates/anyxboxx/src/run/settings.rs and crates/anyxboxx-launcher/src/options.rs. Same prison prologue scene as before, shaders pre-translated with victory shaders (25,690 / 199 do not).

(The launcher itself did not build from the GitHub zip: third_party/tombox is a submodule, so anyxboxx-audio's xma dependency is missing outside a recursive clone. Worth a line in the README.)

Result

Phase Frame time Notes
First launch, pipelines being made 2-3 fps (370-540 ms) for ~9 min overlay: Pipelines 3 wk, 1,153 making at the start, 452 after ~6 min
After 0 making, ~6,300 draws median 264 ms (~3.8 fps), 257-279 ms steady overlay: Submit 1 thr 99%, Lists x1.3, Landing x4.1; nvidia-smi SM 75-100 % at only ~36 W; VRAM 5.6 / 6.7 GB (overlay), CPU turbo held

For comparison, same laptop and scene: Kemerd/VIctory-NVIDIA-RT with its "fast" set does ~93 ms at >= 3,500 draws (~100 ms at 6-9k), trustno1 ~115 ms. So on this 8 GB laptop the Vice-Tay base with the 8 GB preset is about 2.5-3x slower, and the limit looks like the single submitting thread rather than VRAM: the overlay showed 5.6 of 6.7 GB at Series S 1080p (I did not capture the texture-queue log line in this run).

VICTORY_TEXTURE_MAX_SIZE is not read

Confirming what you said: no file under third_party/victory/crates or apps names VICTORY_TEXTURE_MAX_SIZE (the other three preset variables are read). So in this run the texture cap did nothing; the smaller reserves alone kept VRAM in budget.

What helped on this laptop (in case it ports to the 8 GB preset)

All measured on the same RTX 5060 Laptop, same scene:

  1. The submitting thread. Kemerd (trustno1's tree plus its own commits and "fast" set) did ~93 ms in heavy scenes where trustno1 did ~115, and 64 ms vs 71 in light ones. Its fast set: VICTORY_SEND_THREAD=1 (ExecuteCommandLists on its own thread), VICTORY_REFRESH_SET=1, VICTORY_REFRESH_SPLIT=1, VICTORY_WAIT_SPLIT=1, VICTORY_TITLE_WRITE_RANGE=1, VICTORY_UNDER_PARTS=1, VICTORY_DECLARE_ACROSS_LISTS=1, plus its VICTORY_MEMORY_* set. Several of these may not exist on the Vice-Tay base; the "one refresh step per list instead of ~52,000" change in Kemerd's README is the one that looks most relevant to Submit 99%.
  2. First launch. Kemerd keeps rendering while pipelines are made (~11 fps with ~510 being made) and keeps pipelines with static samplers in the library (VICTORY_PIPELINE_SAMPLER_TABLE=1), so later launches do not rebuild ~1,100 of them. Here, 3 pipeline workers on a 16-thread laptop meant ~9 minutes at 2-3 fps.
  3. Frame generation on 8 GB costs ~1.7 GB (render targets + FG). With it on, textures went 1-1.5 GB over the texture line (no room, new textures wait) and heavy scenes became GPU-bound at ~50 W. If AnyXboxX adds FG, the 8 GB preset would need to leave that room.
  4. VICTORY_HEAP_RECHECK=0 from @YUYING234's report is in our Kemerd launcher now; not measured separately yet.

If one specific switch set on this laptop would answer a question for the 8 GB work, say which and I can try to run it.

Measured on my laptop and written up with help from Claude.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7220630525 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7220630525). Originally posted by [vi-tester-8gb](https://github.com/vi-tester-8gb) on 2026-11-27T14:19:06Z. --- @KainanP here is the AnyXboxX run you asked for, on an 8 GB laptop, plus what we learned on the same machine tonight that may help the 8 GB side. **Setup:** LooperSalty/AnyXboxX `main` as of 27 Nov ~14:10 UTC, its own `third_party/victory` (Vice-Tay base) built from source. RTX 5060 Laptop 8 GB, i7-13620H (16 threads), 32 GB, driver 621.24, on AC (same machine as my comment above). Series S (`--console series-s`), `VICTORY_DISPLAY_MODE` and `VICTORY_OUTPUT` = 1920x1080, windowed. Environment = `TUNED` + the 16-thread pools (12/8/6) + the launcher's "8 GB card" preset (`CARD_WINDOWS_MB=512`, `CARD_BUFFERS_MB=512`, `TEXTURE_ROOM_PERCENT=85`, `TEXTURE_MAX_SIZE=1024`), copied from `crates/anyxboxx/src/run/settings.rs` and `crates/anyxboxx-launcher/src/options.rs`. Same prison prologue scene as before, shaders pre-translated with `victory shaders` (25,690 / 199 do not). (The launcher itself did not build from the GitHub zip: `third_party/tombox` is a submodule, so `anyxboxx-audio`'s `xma` dependency is missing outside a recursive clone. Worth a line in the README.) ### Result | Phase | Frame time | Notes | |---|---|---| | First launch, pipelines being made | 2-3 fps (370-540 ms) for ~9 min | overlay: `Pipelines 3 wk`, 1,153 making at the start, 452 after ~6 min | | After `0 making`, ~6,300 draws | **median 264 ms (~3.8 fps)**, 257-279 ms steady | overlay: **`Submit 1 thr 99%`**, Lists x1.3, Landing x4.1; nvidia-smi SM 75-100 % at only ~36 W; VRAM 5.6 / 6.7 GB (overlay), CPU turbo held | For comparison, same laptop and scene: Kemerd/VIctory-NVIDIA-RT with its "fast" set does **~93 ms at >= 3,500 draws** (~100 ms at 6-9k), trustno1 ~115 ms. So on this 8 GB laptop the Vice-Tay base with the 8 GB preset is about 2.5-3x slower, and the limit looks like the single submitting thread rather than VRAM: the overlay showed 5.6 of 6.7 GB at Series S 1080p (I did not capture the texture-queue log line in this run). ### `VICTORY_TEXTURE_MAX_SIZE` is not read Confirming what you said: no file under `third_party/victory/crates` or `apps` names `VICTORY_TEXTURE_MAX_SIZE` (the other three preset variables are read). So in this run the texture cap did nothing; the smaller reserves alone kept VRAM in budget. ### What helped on this laptop (in case it ports to the 8 GB preset) All measured on the same RTX 5060 Laptop, same scene: 1. **The submitting thread.** Kemerd (trustno1's tree plus its own commits and "fast" set) did ~93 ms in heavy scenes where trustno1 did ~115, and 64 ms vs 71 in light ones. Its fast set: `VICTORY_SEND_THREAD=1` (ExecuteCommandLists on its own thread), `VICTORY_REFRESH_SET=1`, `VICTORY_REFRESH_SPLIT=1`, `VICTORY_WAIT_SPLIT=1`, `VICTORY_TITLE_WRITE_RANGE=1`, `VICTORY_UNDER_PARTS=1`, `VICTORY_DECLARE_ACROSS_LISTS=1`, plus its `VICTORY_MEMORY_*` set. Several of these may not exist on the Vice-Tay base; the "one refresh step per list instead of ~52,000" change in Kemerd's README is the one that looks most relevant to `Submit 99%`. 2. **First launch.** Kemerd keeps rendering while pipelines are made (~11 fps with ~510 being made) and keeps pipelines with static samplers in the library (`VICTORY_PIPELINE_SAMPLER_TABLE=1`), so later launches do not rebuild ~1,100 of them. Here, 3 pipeline workers on a 16-thread laptop meant ~9 minutes at 2-3 fps. 3. **Frame generation on 8 GB costs ~1.7 GB** (render targets + FG). With it on, textures went 1-1.5 GB over the texture line (`no room, new textures wait`) and heavy scenes became GPU-bound at ~50 W. If AnyXboxX adds FG, the 8 GB preset would need to leave that room. 4. `VICTORY_HEAP_RECHECK=0` from @YUYING234's report is in our Kemerd launcher now; not measured separately yet. If one specific switch set on this laptop would answer a question for the 8 GB work, say which and I can try to run it. _Measured on my laptop and written up with help from Claude._
YUYING234 commented 2026-11-27 14:30:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T14:30:29Z.


@KainanP ran it. Same card as yours: RTX 4060 Laptop 8 GB, i9-14900HX, 32 GB DDR5-5600, driver 621.01, Windows 11 26300. AnyXboxX 14f488b built from source (cargo build --release -p anyxboxx, 1 m 22 s), Neptune/Vice-Tay base built on first run.

Command (the four values of LOW_VRAM, plus the 1080p override from the docs):

anyxboxx run --game-dir <own copy> --frametime-dump --auto-a \
  --override VICTORY_CARD_WINDOWS_MB=512 --override VICTORY_CARD_BUFFERS_MB=512 \
  --override VICTORY_TEXTURE_ROOM_PERCENT=85 --override VICTORY_TEXTURE_MAX_SIZE=1024 \
  --override VICTORY_OUTPUT=1920x1080

Two things you will want to know before reading the numbers:

  • There is no Series S path in the CLI. The log says console Xbox Series X, and RunArgs has no console option, so this run is Series X — it is not the Series S comparison you asked for, and I would need a flag (or the same run on a build that has one) to give you that.
  • VICTORY_OUTPUT=1920x1080 did not take: the log still reports display mode reported to the title width=3840 height=2160. Either the tuned profile sets the display size after --override, or the key is not the one Vice-Tay reads. Worth a look — the docs say that override is how you get 1080p.

Frame and GPU time (97 samples of the runtime's own line, about 9 minutes with the cache cold)

5.2 fps  191.6 ms/frame (41.9 preparing: copies 9.0 ms 53.0 MB, textures 0.8 ms 22.6 MB; 128.2 on the GPU; 29.7 copying back 21.4 MB), 4366 draws/frame, dropped 234
4.7 fps  214.8 ms/frame (44.7 preparing: copies 9.8 ms 66.5 MB, textures 1.2 ms 24.1 MB; 116.3 on the GPU; 30.1 copying back 21.0 MB), 5649 draws/frame, dropped 268
5.7 fps  175.0 ms/frame (32.9 preparing: copies 8.1 ms 51.2 MB, textures 0.9 ms 19.4 MB; 119.1 on the GPU; 24.8 copying back 18.2 MB), 3651 draws/frame, dropped 282
4.6 fps  215.6 ms/frame (38.8 preparing: copies 10.1 ms 70.3 MB, textures 1.4 ms 26.6 MB; 163.3 on the GPU; 27.1 copying back 22.0 MB), 6979 draws/frame, dropped 396

Whole session: median 4.2 fps (mean 7.7, best 30 in menus, worst 0.4 while the pipelines were still being made), median frame 237 ms. The runtime's overlay after the world loaded gives 30-second averages of 2.5 fps while cold → 11.2 fps in the kitchen interior (1,574 draws) → 5.9 fps in the cell block (2,222 draws).

The answer to your question

In the world, yes: this base is GPU-bound on this card — but with a heavy CPU tail. In the last four samples the GPU holds 110 to 163 ms of a 175 to 230 ms frame (55-75 %), with 33-45 ms preparing (12-17 ms of that copies) and 23-30 ms copying back 21-29 MB. In the lighter interior (1,574 draws) the picture flips: GPU 28-47 % busy and one submit thread at 41-57 % becomes the limit, which is the same shape as VI-BR-PORT on this card.

Two further numbers that may matter more than the fps: 234 to 396 draws a frame are dropped without a host pipeline once the world is up, and RAM reaches 19.2-22.9 GB in the process, 30.2 of 32 GB for the system — this laptop has no headroom left at that point. VRAM stayed honest: 5.7-5.8 GB of the 6.4 GB budget, so the LowVram reserves (512 / 512) do keep the card under budget even if the 1024 texture cap is not read by Vice-Tay as you said.

--frametime-dump did write %LOCALAPPDATA%\victory\cache\frametime.csv (119 KB) if you want the raw rows; the header says game: unknown because the title hash is not in that build's table.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7220869986 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7220869986). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-27T14:30:29Z. --- @KainanP ran it. Same card as yours: RTX 4060 **Laptop** 8 GB, i9-14900HX, 32 GB DDR5-5600, driver 621.01, Windows 11 26300. AnyXboxX `14f488b` built from source (`cargo build --release -p anyxboxx`, 1 m 22 s), Neptune/Vice-Tay base built on first run. **Command** (the four values of `LOW_VRAM`, plus the 1080p override from the docs): ``` anyxboxx run --game-dir <own copy> --frametime-dump --auto-a \ --override VICTORY_CARD_WINDOWS_MB=512 --override VICTORY_CARD_BUFFERS_MB=512 \ --override VICTORY_TEXTURE_ROOM_PERCENT=85 --override VICTORY_TEXTURE_MAX_SIZE=1024 \ --override VICTORY_OUTPUT=1920x1080 ``` Two things you will want to know before reading the numbers: - **There is no Series S path in the CLI.** The log says `console Xbox Series X`, and `RunArgs` has no console option, so this run is Series X — it is not the Series S comparison you asked for, and I would need a flag (or the same run on a build that has one) to give you that. - **`VICTORY_OUTPUT=1920x1080` did not take**: the log still reports `display mode reported to the title width=3840 height=2160`. Either the tuned profile sets the display size after `--override`, or the key is not the one Vice-Tay reads. Worth a look — the docs say that override is how you get 1080p. ## Frame and GPU time (97 samples of the runtime's own line, about 9 minutes with the cache cold) ``` 5.2 fps 191.6 ms/frame (41.9 preparing: copies 9.0 ms 53.0 MB, textures 0.8 ms 22.6 MB; 128.2 on the GPU; 29.7 copying back 21.4 MB), 4366 draws/frame, dropped 234 4.7 fps 214.8 ms/frame (44.7 preparing: copies 9.8 ms 66.5 MB, textures 1.2 ms 24.1 MB; 116.3 on the GPU; 30.1 copying back 21.0 MB), 5649 draws/frame, dropped 268 5.7 fps 175.0 ms/frame (32.9 preparing: copies 8.1 ms 51.2 MB, textures 0.9 ms 19.4 MB; 119.1 on the GPU; 24.8 copying back 18.2 MB), 3651 draws/frame, dropped 282 4.6 fps 215.6 ms/frame (38.8 preparing: copies 10.1 ms 70.3 MB, textures 1.4 ms 26.6 MB; 163.3 on the GPU; 27.1 copying back 22.0 MB), 6979 draws/frame, dropped 396 ``` Whole session: median **4.2 fps** (mean 7.7, best 30 in menus, worst 0.4 while the pipelines were still being made), median frame 237 ms. The runtime's overlay after the world loaded gives 30-second averages of **2.5 fps while cold → 11.2 fps in the kitchen interior (1,574 draws) → 5.9 fps in the cell block (2,222 draws)**. ## The answer to your question **In the world, yes: this base is GPU-bound on this card — but with a heavy CPU tail.** In the last four samples the GPU holds **110 to 163 ms of a 175 to 230 ms frame (55-75 %)**, with 33-45 ms preparing (12-17 ms of that copies) and 23-30 ms copying back 21-29 MB. In the lighter interior (1,574 draws) the picture flips: GPU 28-47 % busy and one **submit thread at 41-57 %** becomes the limit, which is the same shape as VI-BR-PORT on this card. Two further numbers that may matter more than the fps: **234 to 396 draws a frame are dropped without a host pipeline** once the world is up, and RAM reaches **19.2-22.9 GB in the process, 30.2 of 32 GB for the system** — this laptop has no headroom left at that point. VRAM stayed honest: **5.7-5.8 GB of the 6.4 GB budget**, so the LowVram reserves (512 / 512) do keep the card under budget even if the 1024 texture cap is not read by Vice-Tay as you said. `--frametime-dump` did write `%LOCALAPPDATA%\victory\cache\frametime.csv` (119 KB) if you want the raw rows; the header says `game: unknown` because the title hash is not in that build's table.
YUYING234 commented 2026-11-27 14:31:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T14:31:44Z.


Correction to my own message above, before anyone acts on the second point: VICTORY_OUTPUT=1920x1080 did work. The log has it:

resolution: patched site=0x224352b what="settings' output size applied" value="1920x1080" ... Done
resolution: back buffer pool's left-over check (1920x1080) at title+0x247af25 ... Done

What I read as a failure, display mode reported to the title width=3840 height=2160 (dxgi.rs:246), is the reported display mode of the Series X profile, which VICTORY_OUTPUT does not change - it patches the title's output size and the back buffer pool check instead. So the run really was 1080p output with a 4K mode reported, and the GPU figures I quoted (-128 to 163 ms in the world) are 1080p output figures, which is what you asked for.

The Series S point stands: the CLI has no console option and the log says console Xbox Series X.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7220897272 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7220897272). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-27T14:31:44Z. --- Correction to my own message above, before anyone acts on the second point: **`VICTORY_OUTPUT=1920x1080` did work.** The log has it: ``` resolution: patched site=0x224352b what="settings' output size applied" value="1920x1080" ... Done resolution: back buffer pool's left-over check (1920x1080) at title+0x247af25 ... Done ``` What I read as a failure, `display mode reported to the title width=3840 height=2160` (`dxgi.rs:246`), is the *reported* display mode of the Series X profile, which `VICTORY_OUTPUT` does not change - it patches the title's output size and the back buffer pool check instead. So the run really was 1080p output with a 4K mode reported, and the GPU figures I quoted (-128 to 163 ms in the world) are 1080p output figures, which is what you asked for. The Series S point stands: the CLI has no console option and the log says `console Xbox Series X`.
KainanP commented 2026-11-27 14:38:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T14:38:20Z.


@YUYING234 thanks for the 8 GB numbers here. They pointed at something on the AnyXboxX side.

AnyXboxX's "8 GB card" preset caps the game's textures at 1024 texels, but its current (Vice-Tay) base didn't read the cap. LooperSalty/AnyXboxX#506 makes it work again. In a synthetic texture-churn bench on an RTX 4060 Laptop with the 8 GB preset settings:

  • uncapped: the textures in use reached 101–108 % of the D3D12 budget (23 of 50 cycles over);
  • capped: they stayed at 52 % (2.8 GB of host textures instead of 6.7 GB).

The bench found no VRAM creep in the texture path. If the 7.3 → 7.9 GB creep you saw is real, it's probably elsewhere.

None of this is measured in game. If you can run AnyXboxX with the 8 GB preset on main and on that branch (same spot, ~6 min, VICTORY_FRAMETIME_DUMP=1, plus the log's memory lines), that A/B would settle it. Details are in the PR.

AI use: drafted with Claude Code; numbers from my own runs.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7221036540 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7221036540). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-27T14:38:20Z. --- @YUYING234 thanks for the 8 GB numbers here. They pointed at something on the AnyXboxX side. AnyXboxX's "8 GB card" preset caps the game's textures at 1024 texels, but its current (Vice-Tay) base didn't read the cap. LooperSalty/AnyXboxX#506 makes it work again. In a synthetic texture-churn bench on an RTX 4060 Laptop with the 8 GB preset settings: - uncapped: the textures in use reached 101–108 % of the D3D12 budget (23 of 50 cycles over); - capped: they stayed at 52 % (2.8 GB of host textures instead of 6.7 GB). The bench found no VRAM creep in the texture path. If the 7.3 → 7.9 GB creep you saw is real, it's probably elsewhere. None of this is measured in game. If you can run AnyXboxX with the 8 GB preset on `main` and on that branch (same spot, ~6 min, `VICTORY_FRAMETIME_DUMP=1`, plus the log's memory lines), that A/B would settle it. Details are in the PR. _AI use: drafted with Claude Code; numbers from my own runs._
YUYING234 commented 2026-11-27 15:36:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T15:36:51Z.


@KainanP ran the A/B you asked for: main (14f488b) against perf/texture-max-size (b8dbb61, #506), same machine, same save, the four LOW_VRAM values, VICTORY_OUTPUT=1920x1080 (patched, confirmed in the log), --frametime-dump, six minutes each, both with warm caches so the comparison is not polluted by pipeline building.

main #506
Frame lines (world, >=3000 draws) 48 47
Median fps 4.7 4.8
Frame time 213 ms 210 ms
of which preparing 46 48
of which GPU 110 108
of which copying back 26 28
of which the rest 30 27
Draws dropped per frame 452 450
VRAM, first reading -> last 6559 -> 7145 MiB 6209 -> 6775 MiB
RAM, first -> last 19.23 -> 21.88 GB 19.49 -> 21.43 GB

What it says

  1. The cap is real and it shows in game: about 370 MiB less VRAM at every point (6209 against 6559 at the start, 6775 against 7145 at the end).
  2. No frame rate from it here (4.7 against 4.8, inside the run-to-run spread): this scene is GPU-bound at 108-110 ms of a 210 ms frame, so recovered texture memory has nothing to buy.
  3. Both still end over the budget. The D3D12 budget this card reports is about 6.4 GB; main peaks at 7145 MiB (745 over) and #506 at 6775 MiB (375 over). The cap halves the overshoot, it does not remove it - on an 8 GB laptop card the reserves plus that texture floor still do not fit.
  4. The creep is not in the capped path: both runs climb about 566 MiB in six minutes (6209 -> 6775 and 6559 -> 7145), almost the same slope. That matches your "probably elsewhere".

Raw artefacts if you want them: %LOCALAPPDATA%\victory\cache\frametime.csv (one row a second, overwritten by the second run), and the two tracing logs of 4.2 MB each, which I can attach or grep for whatever line you name. Neither repository is involved and no game files are included.

Method note for anyone repeating this: --auto-a is what gets both runs to the same place, and the first run of any build spends about 700 pipelines in making for the first two minutes, so a cold run measures the cache, not the base.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7222271132 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7222271132). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-27T15:36:51Z. --- @KainanP ran the A/B you asked for: `main` (`14f488b`) against `perf/texture-max-size` (`b8dbb61`, #506), same machine, same save, the four `LOW_VRAM` values, `VICTORY_OUTPUT=1920x1080` (patched, confirmed in the log), `--frametime-dump`, six minutes each, **both with warm caches** so the comparison is not polluted by pipeline building. | | main | #506 | |---|---|---| | Frame lines (world, >=3000 draws) | 48 | 47 | | Median fps | 4.7 | **4.8** | | Frame time | 213 ms | **210 ms** | | of which preparing | 46 | 48 | | of which **GPU** | 110 | 108 | | of which copying back | 26 | 28 | | of which the rest | 30 | 27 | | Draws dropped per frame | 452 | 450 | | **VRAM, first reading -> last** | 6559 -> **7145 MiB** | 6209 -> **6775 MiB** | | RAM, first -> last | 19.23 -> 21.88 GB | 19.49 -> 21.43 GB | ## What it says 1. **The cap is real and it shows in game**: about **370 MiB less VRAM at every point** (6209 against 6559 at the start, 6775 against 7145 at the end). 2. **No frame rate from it here** (4.7 against 4.8, inside the run-to-run spread): this scene is GPU-bound at 108-110 ms of a 210 ms frame, so recovered texture memory has nothing to buy. 3. **Both still end over the budget.** The D3D12 budget this card reports is about 6.4 GB; `main` peaks at **7145 MiB** (745 over) and #506 at **6775 MiB** (375 over). The cap halves the overshoot, it does not remove it - on an 8 GB laptop card the reserves plus that texture floor still do not fit. 4. **The creep is not in the capped path**: both runs climb about **566 MiB in six minutes** (6209 -> 6775 and 6559 -> 7145), almost the same slope. That matches your "probably elsewhere". Raw artefacts if you want them: `%LOCALAPPDATA%\victory\cache\frametime.csv` (one row a second, overwritten by the second run), and the two tracing logs of 4.2 MB each, which I can attach or grep for whatever line you name. Neither repository is involved and no game files are included. Method note for anyone repeating this: `--auto-a` is what gets both runs to the same place, and the first run of any build spends about 700 pipelines in `making` for the first two minutes, so a cold run measures the cache, not the base.
KainanP commented 2026-11-27 20:23:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T20:23:10Z.


@YUYING234 thanks for both runs. They're the only AnyXboxX numbers on an 8 GB laptop so far. One more would settle what we work on next: the GPU's ~110 ms per frame hasn't been split yet into the game's own commands versus our passes (prelude refreshes, steps, card compares).

Could you run the same setup once with the timing switch?

anyxboxx run --game-dir <own copy> --frametime-dump --auto-a \
  --override VICTORY_CARD_WINDOWS_MB=512 --override VICTORY_CARD_BUFFERS_MB=512 \
  --override VICTORY_TEXTURE_ROOM_PERCENT=85 --override VICTORY_TEXTURE_MAX_SIZE=1024 \
  --override VICTORY_OUTPUT=1920x1080 --override VICTORY_GPU_TIMING=1
  • Use AnyXboxX main, a warm cache, and 150 s standing at one fixed spot in the world (the cell block is fine).
  • Please attach the tracing log. The lines we need start with the card's time by list (timing run) and the card's time by command (timing run).
  • The fps of this run won't count: the timing switch turns off submitting ahead. We only need the split.

AI use: drafted with Claude Code.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7227450355 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7227450355). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-27T20:23:10Z. --- @YUYING234 thanks for both runs. They're the only AnyXboxX numbers on an 8 GB laptop so far. One more would settle what we work on next: the GPU's ~110 ms per frame hasn't been split yet into the game's own commands versus our passes (prelude refreshes, steps, card compares). Could you run the same setup once with the timing switch? ``` anyxboxx run --game-dir <own copy> --frametime-dump --auto-a \ --override VICTORY_CARD_WINDOWS_MB=512 --override VICTORY_CARD_BUFFERS_MB=512 \ --override VICTORY_TEXTURE_ROOM_PERCENT=85 --override VICTORY_TEXTURE_MAX_SIZE=1024 \ --override VICTORY_OUTPUT=1920x1080 --override VICTORY_GPU_TIMING=1 ``` - Use AnyXboxX `main`, a warm cache, and 150 s standing at one fixed spot in the world (the cell block is fine). - Please attach the tracing log. The lines we need start with `the card's time by list (timing run)` and `the card's time by command (timing run)`. - The fps of this run won't count: the timing switch turns off submitting ahead. We only need the split. _AI use: drafted with Claude Code._
YUYING234 commented 2026-11-27 22:42:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T22:42:13Z.


Ran it. One thing first, because it cost me two runs: the by command line does not print with the tuned set. TUNED has VICTORY_D3D12_DRED=light, and HostList::note() returns straight away in light mode, so slowest() comes back empty: the list line says their noted commands 0.0 and no per-command block follows. Adding --dred (VICTORY_D3D12_DRED=1, full) makes every command write a timestamp and a marker, and both lines appear. Might be worth a line in the README next to --override VICTORY_GPU_TIMING=1, since your instructions there are the only place anyone would look.

What I ran

anyxboxx run --game-dir <copy> --frametime-dump --auto-a \
  --override VICTORY_CARD_WINDOWS_MB=512 --override VICTORY_CARD_BUFFERS_MB=512 \
  --override VICTORY_TEXTURE_ROOM_PERCENT=85 --override VICTORY_TEXTURE_MAX_SIZE=1024 \
  --override VICTORY_OUTPUT=1920x1080 --override VICTORY_GPU_TIMING=1 --dred

bebcfb1, warm cache, saves cleared so the title starts at the cell block. Stood there for 200 s once the scene settled (~6,900 draws, 3 fps / 386 ms with DRED full on). 4060 Laptop 8 GB, Windows 11 26300, driver 621.01. 60 copystat windows, 3,371 slow-command lines.

The split you asked for (GPU timestamps, ms a frame)

ms/frame share
card total 202.6 (last window 222.7) 100 %
the title's own (~330 lists a frame) 186.9 92.2 %
- of which its noted commands 159.1 78.5 %
- the rest (barriers, the sending, ours recorded among them) 30.2 14.9 %
our preludes (73 lists a frame) 11.2 5.5 %
our compares of copies (28 a frame) 5.5 2.7 %
the layer together 16.8 8.3 %

So on this card the layer is not the 110 ms: the title's own commands are 92 % of the card's time and our own 8 %.

Where the time goes inside the title's commands

Every slow-command warning in the 200 s (all of them compute dispatches) by shader:

stage hash instances total ms mean longest
compute 3cf39f4495b908d0 2,053 13,032 6.3 12.6
compute 82a2ad6d07417d36 900 6,221 6.9 15.0
compute 4518151afe8c6c09 321 2,230 6.9 11.4
compute dd24ff46af3ae6ee 69 485 7.0 10.7
compute 7b2c3c1db2298f44 2 101 50.6 51.0

Caveats I would rather state than have you find:

  • The warning only fires above about 6 ms, so these are the instances over the line, not every instance. Treated as a lower bound they are still ~21 ms a frame for 3cf39f44 (about 3.4 a frame) and ~10 ms for 82a2ad6d (about 1.5 a frame).
  • The first two also turned up in an opening/lobby-phase run earlier tonight: 82a2ad6d at 24.60 ms a frame and 7b2c3c1d at 14.45 with a 23.37 longest. Same three shaders, so they are not scene-specific.
  • 7b2c3c1d is rare but brutal: two instances of 50 seconds-per-thousand each (50 ms), 1260x1x1 workgroups. If anything on this list is worth a look, it is that one - it is a single command that eats a quarter of a frame.

Host lists, for the CPU side

589 slow-host-list warnings in the 200 s: median 97 ms for 341 commands, worst 201 ms for 55,894 commands. Those are ours, and they are big - if the submitting thread is ever the limit on a slower card, this is where it would show.

Memory at the time

the card's own:   budget 6420 MB, in use 5894 MB (92 %)
shared with the card: budget 15445 MB, in use 6193 MB

That is with the 8 GB overrides you gave. Worth knowing that the card the D3D12 budget reports here is not a constant - as the shared side fills, Windows cuts the budget (I have seen it at 5.2 GB in the same scene), so a trim to "the budget" is chasing a moving number on this machine.

Happy to repeat the 200 s with different overrides or a different spot, or to dump the raw log lines - it is 6.5 MB of text and I did not want to paste it.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7229547670 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7229547670). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-27T22:42:13Z. --- Ran it. One thing first, because it cost me two runs: **the `by command` line does not print with the tuned set.** `TUNED` has `VICTORY_D3D12_DRED=light`, and `HostList::note()` returns straight away in light mode, so `slowest()` comes back empty: the list line says `their noted commands 0.0` and no per-command block follows. Adding **`--dred`** (`VICTORY_D3D12_DRED=1`, full) makes every command write a timestamp and a marker, and both lines appear. Might be worth a line in the README next to `--override VICTORY_GPU_TIMING=1`, since your instructions there are the only place anyone would look. ## What I ran ``` anyxboxx run --game-dir <copy> --frametime-dump --auto-a \ --override VICTORY_CARD_WINDOWS_MB=512 --override VICTORY_CARD_BUFFERS_MB=512 \ --override VICTORY_TEXTURE_ROOM_PERCENT=85 --override VICTORY_TEXTURE_MAX_SIZE=1024 \ --override VICTORY_OUTPUT=1920x1080 --override VICTORY_GPU_TIMING=1 --dred ``` `bebcfb1`, warm cache, saves cleared so the title starts at the cell block. Stood there for **200 s** once the scene settled (~6,900 draws, 3 fps / 386 ms with DRED full on). 4060 Laptop 8 GB, Windows 11 26300, driver 621.01. 60 copystat windows, 3,371 slow-command lines. ## The split you asked for (GPU timestamps, ms a frame) | | ms/frame | share | |---|---|---| | card total | **202.6** (last window 222.7) | 100 % | | the title's own (~330 lists a frame) | **186.9** | **92.2 %** | | - of which its noted commands | 159.1 | 78.5 % | | - the rest (barriers, the sending, ours recorded among them) | 30.2 | 14.9 % | | **our preludes** (73 lists a frame) | **11.2** | 5.5 % | | **our compares of copies** (28 a frame) | **5.5** | 2.7 % | | **the layer together** | **16.8** | **8.3 %** | So on this card the layer is not the 110 ms: the title's own commands are 92 % of the card's time and our own 8 %. ## Where the time goes inside the title's commands Every slow-command warning in the 200 s (all of them compute dispatches) by shader: | stage | hash | instances | total ms | mean | longest | |---|---|---|---|---|---| | compute | `3cf39f4495b908d0` | 2,053 | 13,032 | 6.3 | 12.6 | | compute | `82a2ad6d07417d36` | 900 | 6,221 | 6.9 | 15.0 | | compute | `4518151afe8c6c09` | 321 | 2,230 | 6.9 | 11.4 | | compute | `dd24ff46af3ae6ee` | 69 | 485 | 7.0 | 10.7 | | compute | `7b2c3c1db2298f44` | 2 | 101 | **50.6** | **51.0** | Caveats I would rather state than have you find: - The warning only fires above about 6 ms, so these are the instances over the line, not every instance. Treated as a lower bound they are still ~21 ms a frame for `3cf39f44` (about 3.4 a frame) and ~10 ms for `82a2ad6d` (about 1.5 a frame). - The first two also turned up in an opening/lobby-phase run earlier tonight: `82a2ad6d` at 24.60 ms a frame and `7b2c3c1d` at 14.45 with a 23.37 longest. Same three shaders, so they are not scene-specific. - `7b2c3c1d` is rare but brutal: two instances of 50 seconds-per-thousand each (50 ms), 1260x1x1 workgroups. If anything on this list is worth a look, it is that one - it is a single command that eats a quarter of a frame. ## Host lists, for the CPU side 589 slow-host-list warnings in the 200 s: median **97 ms for 341 commands**, worst **201 ms for 55,894 commands**. Those are ours, and they are big - if the submitting thread is ever the limit on a slower card, this is where it would show. ## Memory at the time ``` the card's own: budget 6420 MB, in use 5894 MB (92 %) shared with the card: budget 15445 MB, in use 6193 MB ``` That is with the 8 GB overrides you gave. Worth knowing that the card the D3D12 budget reports here is not a constant - as the shared side fills, Windows cuts the budget (I have seen it at 5.2 GB in the same scene), so a trim to "the budget" is chasing a moving number on this machine. Happy to repeat the 200 s with different overrides or a different spot, or to dump the raw log lines - it is 6.5 MB of text and I did not want to paste it.
KainanP commented 2026-11-27 23:46:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T23:46:25Z.


@YUYING234 thank you, this is exactly the split we were missing. It moves the work: on the 4060 Laptop the layer is ~8 % of the card's time (preludes 5.5 %, copy compares 2.7 %), and the title's commands are ~92 %. Nearly all of that 92 % is in five compute shaders. Thanks also for spelling out the caveats (≥ 6 ms threshold, full DRED inflating the figures).

The by command line under light DRED is fixed in LooperSalty/AnyXboxX#568. With VICTORY_GPU_TIMING=1, every command is named and timed under VICTORY_D3D12_DRED=light (the tuned set) or with no DRED at all, without a marker each. --dred is no longer needed, so the timing run should be far less inflated than at 386 ms a frame.

Next ask, if you have time. LooperSalty/AnyXboxX#570 extends VICTORY_SHADER_CENSUS so that victory translate writes one line per shader with translator-side counts only, no code: instruction kinds, group barriers we add when a wave64 program runs as two waves of 32 on NVIDIA, the select chains we emit for M0-indexed register moves, 64-bit results, loops and our loop counters, guard/clamp selects, LDS bytes, thread group, required wave size, which wave64 fallback form was used, and the number of bindings. With a build that has #570 (merged, or that branch):

set VICTORY_SHADER_CENSUS=%TEMP%\census.tsv
set VICTORY_TRANSLATE_ONLY=3cf39f4495b908d0,82a2ad6d07417d36,4518151afe8c6c09,dd24ff46af3ae6ee,7b2c3c1db2298f44
victory.exe translate <game>\shaders.rpf <game>\game_scarlett_master.exe <game>\XboxBvhBuilder.dll <game>\amd_fidelityfx_upscaler_xbox.dll

Run it on the 4060, so the host wave size is the one the game runs with. Then paste the five lines of census.tsv here. They are tab-separated name=count pairs, plus the label with the #hash. Please post only those lines: no shader bytes, no DXIL, no dumps.

If 7b2c3c1d or 82a2ad6d show a large added_barrier or indexed_select, or a form= other than as is, that is where we will spend time next.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7230397648 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7230397648). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-27T23:46:25Z. --- @YUYING234 thank you, this is exactly the split we were missing. It moves the work: on the 4060 Laptop the layer is ~8 % of the card's time (preludes 5.5 %, copy compares 2.7 %), and the title's commands are ~92 %. Nearly all of that 92 % is in five compute shaders. Thanks also for spelling out the caveats (≥ 6 ms threshold, full DRED inflating the figures). **The `by command` line under light DRED** is fixed in LooperSalty/AnyXboxX#568. With `VICTORY_GPU_TIMING=1`, every command is named and timed under `VICTORY_D3D12_DRED=light` (the tuned set) or with no DRED at all, without a marker each. `--dred` is no longer needed, so the timing run should be far less inflated than at 386 ms a frame. **Next ask, if you have time.** LooperSalty/AnyXboxX#570 extends `VICTORY_SHADER_CENSUS` so that `victory translate` writes one line per shader with translator-side counts only, no code: instruction kinds, group barriers we add when a wave64 program runs as two waves of 32 on NVIDIA, the select chains we emit for M0-indexed register moves, 64-bit results, loops and our loop counters, guard/clamp selects, LDS bytes, thread group, required wave size, which wave64 fallback form was used, and the number of bindings. With a build that has #570 (merged, or that branch): ``` set VICTORY_SHADER_CENSUS=%TEMP%\census.tsv set VICTORY_TRANSLATE_ONLY=3cf39f4495b908d0,82a2ad6d07417d36,4518151afe8c6c09,dd24ff46af3ae6ee,7b2c3c1db2298f44 victory.exe translate <game>\shaders.rpf <game>\game_scarlett_master.exe <game>\XboxBvhBuilder.dll <game>\amd_fidelityfx_upscaler_xbox.dll ``` Run it on the 4060, so the host wave size is the one the game runs with. Then paste the five lines of `census.tsv` here. They are tab-separated `name=count` pairs, plus the label with the `#hash`. Please post only those lines: no shader bytes, no DXIL, no dumps. If `7b2c3c1d` or `82a2ad6d` show a large `added_barrier` or `indexed_select`, or a `form=` other than `as is`, that is where we will spend time next.
KainanP commented 2026-11-28 06:38:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T06:38:13Z.


@YUYING234 a correction on two numbers in your run, after reading the code and benchmarking on my own 4060 Laptop. No new run is needed for this.

"Slow host list" is card time, not CPU time. With VICTORY_GPU_TIMING=1, each title list is sent on its own and the submitting thread waits for it (host.rs, the slow host list warning). The warning fires when the time from sending to waking is over 50 ms, and commands is the number of commands noted in that list. So "median 97 ms for 341 commands" is one list of the title's taking ~97 ms on the card: a few of the 6-50 ms dispatches you listed. It is not recording or submission cost. Also, only the first 4,095 commands of a list get a timestamp, so in the 55,894-command list everything after that is billed to command 4,095.

Most of "the rest" (30.2 ms) is the timing run itself. That figure is wall time minus the time between the stamps. Barriers and commands of ours recorded between two of the title's commands are inside the 159.1 ms of noted commands, not in the rest. What is left is the sending, signal and wake-up for each list sent alone. A synthetic bench with the same shape (330 lists, 6,900 draws, 1,000 dispatches; fork branch KainanP/AnyXboxX bench/title-list-barriers) measures 52-60 µs a list for that on the 4060 Laptop, or 17-20 ms for 330 lists. Sent together, the same lists cost nothing extra. The line you quoted ends with "the least a list took N us": if you still have the log, that one number would confirm it on your machine.

The same bench also timed our in-list barriers. A UAV barrier on nothing costs 0.2-0.8 µs and a targeted one the same. Duplicate barriers, separate calls and texture transitions cost ~0. A copy placed in a list costs 3-4 µs with its waits, and narrowing them saves nothing. That puts our barriers at roughly 1-2.5 ms of a frame on this card, nearly all of them waits the title asked for. So your conclusion stands: the five compute shaders are where the time goes.

AI use: Claude Code (Claude Opus 5.5) read the code, wrote and ran the bench on my laptop and wrote this comment.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7235422919 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7235422919). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-28T06:38:13Z. --- @YUYING234 a correction on two numbers in your run, after reading the code and benchmarking on my own 4060 Laptop. No new run is needed for this. **"Slow host list" is card time, not CPU time.** With `VICTORY_GPU_TIMING=1`, each title list is sent on its own and the submitting thread waits for it (`host.rs`, the `slow host list` warning). The warning fires when the time from sending to waking is over 50 ms, and `commands` is the number of commands noted in that list. So "median 97 ms for 341 commands" is one list of the title's taking ~97 ms on the card: a few of the 6-50 ms dispatches you listed. It is not recording or submission cost. Also, only the first 4,095 commands of a list get a timestamp, so in the 55,894-command list everything after that is billed to command 4,095. **Most of "the rest" (30.2 ms) is the timing run itself.** That figure is wall time minus the time between the stamps. Barriers and commands of ours recorded between two of the title's commands are inside the 159.1 ms of noted commands, not in the rest. What is left is the sending, signal and wake-up for each list sent alone. A synthetic bench with the same shape (330 lists, 6,900 draws, 1,000 dispatches; fork branch `KainanP/AnyXboxX` `bench/title-list-barriers`) measures 52-60 µs a list for that on the 4060 Laptop, or 17-20 ms for 330 lists. Sent together, the same lists cost nothing extra. The line you quoted ends with "the least a list took N us": if you still have the log, that one number would confirm it on your machine. The same bench also timed our in-list barriers. A UAV barrier on nothing costs 0.2-0.8 µs and a targeted one the same. Duplicate barriers, separate calls and texture transitions cost ~0. A copy placed in a list costs 3-4 µs with its waits, and narrowing them saves nothing. That puts our barriers at roughly 1-2.5 ms of a frame on this card, nearly all of them waits the title asked for. So your conclusion stands: the five compute shaders are where the time goes. _AI use: Claude Code (Claude Opus 5.5) read the code, wrote and ran the bench on my laptop and wrote this comment._
YUYING234 commented 2026-11-28 09:20:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-28T09:20:01Z.


Both corrections taken - and the number you asked for was still in the log, so here it is without a new run.

the least a list took over the 60 windows of that 200 s run: median 40 us, minimum 35 us, maximum 62 us. At 330 lists a frame that is 13.2 ms a frame, against the 52-60 us a list (17-20 ms) your bench measured. Same order, ours a little cheaper - which fits "the rest" being the sending and waking of each list sent alone rather than anything of the title's.

So I withdraw "30.2 ms of ours" as a cost figure: it is the price of the timing run's own shape, not a cost a normal run pays. And with the 4,095-timestamp cap, the 55,894-command list was never 201 ms of work - it was the tail of one command's bill. Both of those were my reading, not your numbers being unclear.

On the slow host list: understood, card time and not our CPU. That also re-reads the earlier figures: the "median 97 ms for 341 commands" is one of the title's lists taking ~97 ms on the card, which is consistent with the 6-50 ms dispatches in the census - it is not the layer adding anything.

Shader census: I will do it. Two things I would rather confirm first than guess at:

  1. victory.exe translate wants four inputs I have not used before. Is it <shaders.rpf> <game exe> <XboxBvhBuilder.dll> <amd_fidelityfx_upscaler_xbox.dll>, taken from the same game folder I run from? I would rather ask than feed it the wrong archive.
  2. Does VICTORY_TRANSLATE_ONLY take the five hashes exactly as they appear in the timing lines (3cf39f4495b908d0, ...), or in the longer form with the full 16 hex digits? The timing run printed the short form; the census label will tell us, but if the filter wants the long one the run silently produces nothing.

Once #570 is in a build I can compile from main, I will post the five census lines as asked - translator side only, no code.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7237170382 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7237170382). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-28T09:20:01Z. --- Both corrections taken - and the number you asked for was still in the log, so here it is without a new run. **`the least a list took` over the 60 windows of that 200 s run: median 40 us, minimum 35 us, maximum 62 us.** At 330 lists a frame that is **13.2 ms a frame**, against the 52-60 us a list (17-20 ms) your bench measured. Same order, ours a little cheaper - which fits "the rest" being the sending and waking of each list sent alone rather than anything of the title's. So I withdraw "30.2 ms of ours" as a cost figure: it is the price of the timing run's own shape, not a cost a normal run pays. And with the 4,095-timestamp cap, the 55,894-command list was never 201 ms of work - it was the tail of one command's bill. Both of those were my reading, not your numbers being unclear. **On the slow host list:** understood, card time and not our CPU. That also re-reads the earlier figures: the "median 97 ms for 341 commands" is one of the title's lists taking ~97 ms on the card, which is consistent with the 6-50 ms dispatches in the census - it is not the layer adding anything. **Shader census:** I will do it. Two things I would rather confirm first than guess at: 1. `victory.exe translate` wants four inputs I have not used before. Is it `<shaders.rpf> <game exe> <XboxBvhBuilder.dll> <amd_fidelityfx_upscaler_xbox.dll>`, taken from the same game folder I run from? I would rather ask than feed it the wrong archive. 2. Does `VICTORY_TRANSLATE_ONLY` take the five hashes exactly as they appear in the timing lines (`3cf39f4495b908d0`, ...), or in the longer form with the full 16 hex digits? The timing run printed the short form; the census label will tell us, but if the filter wants the long one the run silently produces nothing. Once #570 is in a build I can compile from main, I will post the five census lines as asked - translator side only, no code.
KainanP commented 2026-11-28 09:45:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T09:45:47Z.


@YUYING234 thanks, and the 40 µs per list settles "the rest" nicely.

Answers from the code (apps/victory/src/main.rs Translate, apps/victory/src/translate.rs):

  1. Inputs. victory translate takes any number of paths (paths: Vec<PathBuf>), files or folders. Each one is scanned for shader containers the same way the runtime finds them. You don't need to pass four specific files in a fixed order. Pointing it at the same game folder you run from is fine, because it only reads.
  2. Hash form. The filter compares against the same 16-hex-digit hash the run's log prints (blake3(container)[..16]), and it matches by prefix. So VICTORY_TRANSLATE_ONLY=3cf39f4495b908d0,82a2ad6d07417d36,4518151afe8c6c09,dd24ff46af3ae6ee,7b2c3c1db2298f44 is exactly right. If nothing matches, the tally shows containers 0. That's a quick check that it didn't silently skip everything.

To get the same translation your runs use, also set VICTORY_HOST_WAVE=32 (and VICTORY_VIEW_LIMIT if your run's log prints one). Without these, the census can describe a different lowering than the one your 4060 runs.

#570 isn't merged yet. If you don't want to wait, building its branch (KainanP:feat/shader-cost-census, rebased on current main) gives the same VICTORY_SHADER_CENSUS=<file> lines. Counts only, as before.

AI-assisted (Claude Code); answers checked against the source.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7237449000 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7237449000). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-28T09:45:47Z. --- @YUYING234 thanks, and the 40 µs per list settles "the rest" nicely. Answers from the code (`apps/victory/src/main.rs` `Translate`, `apps/victory/src/translate.rs`): 1. **Inputs.** `victory translate` takes any number of paths (`paths: Vec<PathBuf>`), files or folders. Each one is scanned for shader containers the same way the runtime finds them. You don't need to pass four specific files in a fixed order. Pointing it at the same game folder you run from is fine, because it only reads. 2. **Hash form.** The filter compares against the same 16-hex-digit hash the run's log prints (`blake3(container)[..16]`), and it matches by **prefix**. So `VICTORY_TRANSLATE_ONLY=3cf39f4495b908d0,82a2ad6d07417d36,4518151afe8c6c09,dd24ff46af3ae6ee,7b2c3c1db2298f44` is exactly right. If nothing matches, the tally shows `containers 0`. That's a quick check that it didn't silently skip everything. To get the same translation your runs use, also set `VICTORY_HOST_WAVE=32` (and `VICTORY_VIEW_LIMIT` if your run's log prints one). Without these, the census can describe a different lowering than the one your 4060 runs. #570 isn't merged yet. If you don't want to wait, building its branch (`KainanP:feat/shader-cost-census`, rebased on current main) gives the same `VICTORY_SHADER_CENSUS=<file>` lines. Counts only, as before. _AI-assisted (Claude Code); answers checked against the source._
YUYING234 commented 2026-11-28 11:26:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-28T11:26:29Z.


Census done, from KainanP:feat/shader-cost-census (a37407f), built and run on the 4060 Laptop with VICTORY_HOST_WAVE=32 and VICTORY_TRANSLATE_ONLY on the five hashes. victory translate over the game folder, as you said, worked as a plain path argument. The tally said containers 5 (0 duplicates skipped), programs 5 translated of 5 (21951 IR instructions), so nothing was silently skipped.

Five lines as asked. I removed only the common …\GTA6.Xbox.v1.0.2.1-CYBERLEEK\shaders.rpf@ prefix and kept the offsets and the names:

@0xbe781f7 bvh_skinning:CSComputeSkinningDefaultVelocity_1c34db0a_Wrapped #3cf39f4495b908d0 ~180ce299 Cs wave64=0 form=as is	root_cbvs=0	root_srvs=1	root_uavs=0	user_dwords=12	samplers=0	c_total=1631	c_valu=1167	c_sop=225	c_smem=32	c_buffer=128	c_image=0	c_ds=0	c_sopp=79	c_other=0	total=3858	arith=1444	math_call=516	bitcast=726	cast=34	select=275	guard_select=52	phi=239	extract=422	buffer_load=149	cbuffer_load=3	texture_read=0	lds_load=0	buffer_store=6	lds_store=0	atomic=0	handle=20	annotate=20	dimensions=0	barrier=0	wave_op=2	io_other=2	gep=0	clamp=4	loop_counter=3	blocks=201	added_barrier=0	indexed_select=0	wide64=0	loops=64	lds_bytes=0	threads=32	wave_size=0
@0xbe7b582 bvh_skinning:CSComputeSkinningSecMotionVelocity_1c34db0a_Wrapped #4518151afe8c6c09 ~52347678 Cs wave64=0 form=as is	root_cbvs=0	root_srvs=1	root_uavs=0	user_dwords=12	samplers=0	c_total=2189	c_valu=1682	c_sop=239	c_smem=34	c_buffer=145	c_image=0	c_ds=0	c_sopp=89	c_other=0	total=5222	arith=2075	math_call=792	bitcast=930	cast=42	select=408	guard_select=51	phi=275	extract=475	buffer_load=166	cbuffer_load=3	texture_read=0	lds_load=0	buffer_store=6	lds_store=0	atomic=0	handle=23	annotate=23	dimensions=0	barrier=0	wave_op=2	io_other=2	gep=0	clamp=4	loop_counter=3	blocks=227	added_barrier=0	indexed_select=0	wide64=0	loops=74	lds_bytes=0	threads=32	wave_size=0
@0xbeb8dab cascadeshadows_classify:CS_ShadowTileBalanceRTCost_03da1e4a_Wrapped #7b2c3c1db2298f44 ~653a2581 Cs wave64=1 form=local waves (idiom)	root_cbvs=0	root_srvs=1	root_uavs=0	user_dwords=8	samplers=1	c_total=1916	c_valu=1405	c_sop=309	c_smem=46	c_buffer=17	c_image=53	c_ds=0	c_sopp=86	c_other=0	total=8014	arith=3027	math_call=762	bitcast=1060	cast=39	select=1725	guard_select=599	phi=1008	extract=177	buffer_load=42	cbuffer_load=7	texture_read=52	lds_load=0	buffer_store=2	lds_store=1	atomic=1	handle=36	annotate=36	dimensions=4	barrier=1	wave_op=31	io_other=2	gep=1	clamp=1	loop_counter=45	blocks=229	added_barrier=1	indexed_select=561	wide64=0	loops=79	lds_bytes=12	threads=48	wave_size=32
@0xbe8788e bvh_skinning:CSComputeSkinningPedVelocity_1c34db0a_Wrapped #dd24ff46af3ae6ee ~cc58fca0 Cs wave64=0 form=as is	root_cbvs=0	root_srvs=1	root_uavs=0	user_dwords=12	samplers=0	c_total=6975	c_valu=5293	c_sop=733	c_smem=99	c_buffer=554	c_image=0	c_ds=0	c_sopp=296	c_other=0	total=14390	arith=6123	math_call=1904	bitcast=2292	cast=194	select=1270	guard_select=153	phi=872	extract=1148	buffer_load=436	cbuffer_load=5	texture_read=0	lds_load=0	buffer_store=20	lds_store=0	atomic=0	handle=58	annotate=58	dimensions=0	barrier=0	wave_op=8	io_other=2	gep=0	clamp=13	loop_counter=6	blocks=622	added_barrier=0	indexed_select=0	wide64=0	loops=194	lds_bytes=0	threads=32	wave_size=0
@0xbe95c7b bvh_skinning:CSComputeSkinningPedBlendShapesSecMotionVelocity_1c34db0a_Wrapped #82a2ad6d07417d36 ~56e05377 Cs wave64=0 form=as is	root_cbvs=0	root_srvs=1	root_uavs=0	user_dwords=12	samplers=0	c_total=9240	c_valu=7193	c_sop=910	c_smem=117	c_buffer=647	c_image=0	c_ds=0	c_sopp=373	c_other=0	total=19515	arith=8303	math_call=2776	bitcast=3097	cast=260	select=1765	guard_select=181	phi=1184	extract=1414	buffer_load=530	cbuffer_load=5	texture_read=0	lds_load=0	buffer_store=20	lds_store=0	atomic=0	handle=70	annotate=70	dimensions=3	barrier=0	wave_op=16	io_other=2	gep=0	clamp=16	loop_counter=12	blocks=795	added_barrier=0	indexed_select=0	wide64=0	loops=247	lds_bytes=0	threads=32	wave_size=32

Two things I did not expect and thought you would want first:

Four of the five are skinning. CSComputeSkinning{DefaultVelocity,SecMotionVelocity,PedVelocity,PedBlendShapesSecMotionVelocity} - so the hot compute on this card is not shading at all, it is the skinning that feeds motion vectors and the BVH. CSComputeSkinningPedBlendShapesSecMotionVelocity is the largest of the five by far (total=19515, arith=8303, blocks=795, loops=247), and it is the one the timing run had at 24.60 ms a frame in the lobby and 6.9 ms a mean in the cell.

The 50 ms outlier is the only wave64 one, and it is the select chains. CS_ShadowTileBalanceRTCost_03da1e4a is the single line with wave64=1 form=local waves (idiom), and it carries select=1725 guard_select=599 indexed_select=561 against arith=3027 - the plurality of its work is selects, which is what I would expect the M0-indexed register moves to turn into. In the cell run it was two instances of 50 ms each (dispatch 10x8x1, longest 51.0 ms), i.e. a single dispatch eating a quarter of a frame. If anything on this list is worth attacking, that shape is: 48 threads a group, 32-lane waves, and more than 2,300 selects per dispatch.

The three as is ones are straightforwardly large rather than pathological - bitcast 726-3097 and math_call 516-2776 are the two biggest translator-side items in all five, and both grow with the skinning loop count.

Happy to run the census again with other settings (VICTORY_HOST_WAVE 64, or with VICTORY_LOOPS_WAVE on) if a comparison would help; it takes a minute now that it is built.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7238553298 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7238553298). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-28T11:26:29Z. --- Census done, from `KainanP:feat/shader-cost-census` (`a37407f`), built and run on the 4060 Laptop with `VICTORY_HOST_WAVE=32` and `VICTORY_TRANSLATE_ONLY` on the five hashes. `victory translate` over the game folder, as you said, worked as a plain path argument. The tally said `containers 5 (0 duplicates skipped)`, `programs 5 translated of 5 (21951 IR instructions)`, so nothing was silently skipped. Five lines as asked. I removed only the common `…\GTA6.Xbox.v1.0.2.1-CYBERLEEK\shaders.rpf@` prefix and kept the offsets and the names: ``` @0xbe781f7 bvh_skinning:CSComputeSkinningDefaultVelocity_1c34db0a_Wrapped #3cf39f4495b908d0 ~180ce299 Cs wave64=0 form=as is root_cbvs=0 root_srvs=1 root_uavs=0 user_dwords=12 samplers=0 c_total=1631 c_valu=1167 c_sop=225 c_smem=32 c_buffer=128 c_image=0 c_ds=0 c_sopp=79 c_other=0 total=3858 arith=1444 math_call=516 bitcast=726 cast=34 select=275 guard_select=52 phi=239 extract=422 buffer_load=149 cbuffer_load=3 texture_read=0 lds_load=0 buffer_store=6 lds_store=0 atomic=0 handle=20 annotate=20 dimensions=0 barrier=0 wave_op=2 io_other=2 gep=0 clamp=4 loop_counter=3 blocks=201 added_barrier=0 indexed_select=0 wide64=0 loops=64 lds_bytes=0 threads=32 wave_size=0 @0xbe7b582 bvh_skinning:CSComputeSkinningSecMotionVelocity_1c34db0a_Wrapped #4518151afe8c6c09 ~52347678 Cs wave64=0 form=as is root_cbvs=0 root_srvs=1 root_uavs=0 user_dwords=12 samplers=0 c_total=2189 c_valu=1682 c_sop=239 c_smem=34 c_buffer=145 c_image=0 c_ds=0 c_sopp=89 c_other=0 total=5222 arith=2075 math_call=792 bitcast=930 cast=42 select=408 guard_select=51 phi=275 extract=475 buffer_load=166 cbuffer_load=3 texture_read=0 lds_load=0 buffer_store=6 lds_store=0 atomic=0 handle=23 annotate=23 dimensions=0 barrier=0 wave_op=2 io_other=2 gep=0 clamp=4 loop_counter=3 blocks=227 added_barrier=0 indexed_select=0 wide64=0 loops=74 lds_bytes=0 threads=32 wave_size=0 @0xbeb8dab cascadeshadows_classify:CS_ShadowTileBalanceRTCost_03da1e4a_Wrapped #7b2c3c1db2298f44 ~653a2581 Cs wave64=1 form=local waves (idiom) root_cbvs=0 root_srvs=1 root_uavs=0 user_dwords=8 samplers=1 c_total=1916 c_valu=1405 c_sop=309 c_smem=46 c_buffer=17 c_image=53 c_ds=0 c_sopp=86 c_other=0 total=8014 arith=3027 math_call=762 bitcast=1060 cast=39 select=1725 guard_select=599 phi=1008 extract=177 buffer_load=42 cbuffer_load=7 texture_read=52 lds_load=0 buffer_store=2 lds_store=1 atomic=1 handle=36 annotate=36 dimensions=4 barrier=1 wave_op=31 io_other=2 gep=1 clamp=1 loop_counter=45 blocks=229 added_barrier=1 indexed_select=561 wide64=0 loops=79 lds_bytes=12 threads=48 wave_size=32 @0xbe8788e bvh_skinning:CSComputeSkinningPedVelocity_1c34db0a_Wrapped #dd24ff46af3ae6ee ~cc58fca0 Cs wave64=0 form=as is root_cbvs=0 root_srvs=1 root_uavs=0 user_dwords=12 samplers=0 c_total=6975 c_valu=5293 c_sop=733 c_smem=99 c_buffer=554 c_image=0 c_ds=0 c_sopp=296 c_other=0 total=14390 arith=6123 math_call=1904 bitcast=2292 cast=194 select=1270 guard_select=153 phi=872 extract=1148 buffer_load=436 cbuffer_load=5 texture_read=0 lds_load=0 buffer_store=20 lds_store=0 atomic=0 handle=58 annotate=58 dimensions=0 barrier=0 wave_op=8 io_other=2 gep=0 clamp=13 loop_counter=6 blocks=622 added_barrier=0 indexed_select=0 wide64=0 loops=194 lds_bytes=0 threads=32 wave_size=0 @0xbe95c7b bvh_skinning:CSComputeSkinningPedBlendShapesSecMotionVelocity_1c34db0a_Wrapped #82a2ad6d07417d36 ~56e05377 Cs wave64=0 form=as is root_cbvs=0 root_srvs=1 root_uavs=0 user_dwords=12 samplers=0 c_total=9240 c_valu=7193 c_sop=910 c_smem=117 c_buffer=647 c_image=0 c_ds=0 c_sopp=373 c_other=0 total=19515 arith=8303 math_call=2776 bitcast=3097 cast=260 select=1765 guard_select=181 phi=1184 extract=1414 buffer_load=530 cbuffer_load=5 texture_read=0 lds_load=0 buffer_store=20 lds_store=0 atomic=0 handle=70 annotate=70 dimensions=3 barrier=0 wave_op=16 io_other=2 gep=0 clamp=16 loop_counter=12 blocks=795 added_barrier=0 indexed_select=0 wide64=0 loops=247 lds_bytes=0 threads=32 wave_size=32 ``` Two things I did not expect and thought you would want first: **Four of the five are skinning.** `CSComputeSkinning{DefaultVelocity,SecMotionVelocity,PedVelocity,PedBlendShapesSecMotionVelocity}` - so the hot compute on this card is not shading at all, it is the skinning that feeds motion vectors and the BVH. `CSComputeSkinningPedBlendShapesSecMotionVelocity` is the largest of the five by far (`total=19515`, `arith=8303`, `blocks=795`, `loops=247`), and it is the one the timing run had at 24.60 ms a frame in the lobby and 6.9 ms a mean in the cell. **The 50 ms outlier is the only wave64 one, and it is the select chains.** `CS_ShadowTileBalanceRTCost_03da1e4a` is the single line with `wave64=1 form=local waves (idiom)`, and it carries `select=1725 guard_select=599 indexed_select=561` against `arith=3027` - the plurality of its work is selects, which is what I would expect the M0-indexed register moves to turn into. In the cell run it was **two instances of 50 ms each** (`dispatch 10x8x1`, longest 51.0 ms), i.e. a single dispatch eating a quarter of a frame. If anything on this list is worth attacking, that shape is: 48 threads a group, 32-lane waves, and more than 2,300 selects per dispatch. The three `as is` ones are straightforwardly large rather than pathological - `bitcast` 726-3097 and `math_call` 516-2776 are the two biggest translator-side items in all five, and both grow with the skinning loop count. Happy to run the census again with other settings (`VICTORY_HOST_WAVE` 64, or with `VICTORY_LOOPS_WAVE` on) if a comparison would help; it takes a minute now that it is built.
KainanP commented 2026-11-28 12:54:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T12:54:31Z.


@YUYING234 thank you, these lines are exactly what we needed. The containers 5 / 5 translated of 5 tally makes them easy to trust.

7b2c3c1d (50 ms): an A/B request. indexed_select=561 is the M0-indexed register reads, which this build lowers as a dependent compare/select chain. #571 lowers them as a select tree instead. I benched the shape of that dispatch: 80 groups with two 32-lane waves each, so it is latency-bound like your 10×8×1. A loop of indexed reads ran 2.6× faster at 20 registers, 4× at 66 and 12× at 130 (0.280 → 0.106 ms … 2.932 → 0.243 ms). My estimate for the dispatch is roughly 15-35 % off (50 → ~33-43 ms). It could be more if those reads sit in its inner loop. That is a guess, so could you time it on the same save?

  • A: KainanP:feat/shader-cost-census at a37407f (what you built).
  • B: KainanP:perf/movrel-select-tree. The head is now a1df4861: 446fb7a6 plus a test and a cache-version bump. It includes the #570 census commit, and the translation is the same as at 446fb7a6.
  • Same VICTORY_HOST_WAVE=32 and the same timing settings for both. The 7b2c3c1d dispatch times are enough.

The 599 guard_select and 45 loop_counter there are not a second lever. They are independent one-op selects (≤ ~7 % of its instructions) and 2-3 integer ops per loop iteration.

loops was our bug, not your shaders. The census counted forward branches out of blocks the translator appends as loops. The real loop counts are loop_counter / 3: 1, 1, 2 and 4 for the skinning hashes and 15 for 7b2c3c1d. So there is no waterfall loop per buffer access. This is fixed on #570.

Skinning: a synthetic skinning program (4 influences, current and previous bone matrices, loop and unrolled) runs as fast translated as in HLSL on the 4060 Laptop (ratio 1.00). Plain FMAs, dwordx4 buffer loads, bitcast and math_call cost nothing extra. What can cost is a handful of float instructions the translator spells out for exactness, at 2-6× the HLSL time each. #570 now counts them per hash (c_minmax, c_minmax_k, c_round, c_trig, c_perm, c_pk16, c_legacy, counts only). #581 already fixes the clamp-between-constants case (3-6×).

You offered a re-run: the most useful one would be the census at the new feat/shader-cost-census head (a7767758) for the four skinning hashes. The c_* fields will say which fix 82a2ad6d (24.6 ms) needs. VICTORY_HOST_WAVE=64 or VICTORY_LOOPS_WAVE are not needed.

AI-assisted (Claude Code); benches on synthetic programs only.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7239551847 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7239551847). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-28T12:54:31Z. --- @YUYING234 thank you, these lines are exactly what we needed. The `containers 5` / `5 translated of 5` tally makes them easy to trust. **`7b2c3c1d` (50 ms): an A/B request.** `indexed_select=561` is the M0-indexed register reads, which this build lowers as a dependent compare/select chain. #571 lowers them as a select tree instead. I benched the shape of that dispatch: 80 groups with two 32-lane waves each, so it is latency-bound like your 10×8×1. A loop of indexed reads ran **2.6× faster at 20 registers, 4× at 66 and 12× at 130** (0.280 → 0.106 ms … 2.932 → 0.243 ms). My estimate for the dispatch is **roughly 15-35 % off (50 → ~33-43 ms)**. It could be more if those reads sit in its inner loop. That is a guess, so could you time it on the same save? - **A:** `KainanP:feat/shader-cost-census` at `a37407f` (what you built). - **B:** `KainanP:perf/movrel-select-tree`. The head is now `a1df4861`: `446fb7a6` plus a test and a cache-version bump. It includes the #570 census commit, and the translation is the same as at `446fb7a6`. - Same `VICTORY_HOST_WAVE=32` and the same timing settings for both. The `7b2c3c1d` dispatch times are enough. The 599 `guard_select` and 45 `loop_counter` there are not a second lever. They are independent one-op selects (≤ ~7 % of its instructions) and 2-3 integer ops per loop iteration. **`loops` was our bug, not your shaders.** The census counted forward branches out of blocks the translator appends as loops. The real loop counts are `loop_counter / 3`: 1, 1, 2 and 4 for the skinning hashes and 15 for `7b2c3c1d`. So there is **no waterfall loop per buffer access**. This is fixed on #570. **Skinning:** a synthetic skinning program (4 influences, current and previous bone matrices, loop and unrolled) runs as fast translated as in HLSL on the 4060 Laptop (ratio 1.00). Plain FMAs, `dwordx4` buffer loads, `bitcast` and `math_call` cost nothing extra. What can cost is a handful of float instructions the translator spells out for exactness, at 2-6× the HLSL time each. #570 now counts them per hash (`c_minmax`, `c_minmax_k`, `c_round`, `c_trig`, `c_perm`, `c_pk16`, `c_legacy`, counts only). #581 already fixes the clamp-between-constants case (3-6×). You offered a re-run: the most useful one would be the census at the new `feat/shader-cost-census` head (`a7767758`) for the four skinning hashes. The `c_*` fields will say which fix `82a2ad6d` (24.6 ms) needs. `VICTORY_HOST_WAVE=64` or `VICTORY_LOOPS_WAVE` are not needed. _AI-assisted (Claude Code); benches on synthetic programs only._
YUYING234 commented 2026-11-28 15:46:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-28T15:46:37Z.


Thanks - and the loops correction is the one that changes how I read our own data: loop_counter / 3 gives 1, 1, 2, 4 and 15, so the waterfall I thought I was seeing per buffer access is not there. Same for guard_select: I had it as a second lever and it is 7 % of the instructions.

The A/B, yes. One thing to pin down before I run it, so the two runs are comparable:

My 50 ms figure comes from the full DRED path (VICTORY_D3D12_DRED=1 plus VICTORY_GPU_TIMING=1), where the run prints the card's time by command (timing run) with one line per hash. For 7b2c3c1d that line was:

2 instances, 50 ms each, dispatch 10x8x1, longest 51.0 ms

Is that the number you want compared - the per-hash total from the by command lines - or do you want the single-dispatch time from the slow host list warnings? They are different events on our side: the first is the timing run's own accounting of a hash, the second is a list that took over 50 ms of card time. I would rather ask than hand you two runs of the wrong number.

Assuming the by command lines are what you mean, the plan: same save (the cell block standstill I used for the census, no driving, so the dispatch count is stable), VICTORY_HOST_WAVE=32, full DRED, both builds, three runs each, reporting the 7b2c3c1d line and the frame median. Your estimate is 50 -> 33-43 ms; if the translation is identical and only the M0 lowering changes, I would expect the whole-frame number to move less than the dispatch number because the dispatch is ~25 % of a frame at 200 ms.

It will be a few hours - the machine is in the middle of a 26,503-pipeline Vulkan build for a different project (Leonida's recompiled runtime, which is the only other tree we run). I will post the two runs together when it is free, so the pair is not separated by whatever else the box is doing.

One more data point you may want, from the same census session: CSComputeSkinningPedBlendShapesSecMotionVelocity (82a2ad6d07417d36) is the largest of the five at total=19515, and it is the one our timing run had at 24.60 ms a frame in the lobby. If the select-tree change also touches its select=1765, the pair of dispatches would be worth measuring in the same run - say the word and I will include it.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7241725900 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7241725900). Originally posted by [YUYING234](https://github.com/YUYING234) on 2026-11-28T15:46:37Z. --- Thanks - and the `loops` correction is the one that changes how I read our own data: `loop_counter / 3` gives 1, 1, 2, 4 and 15, so the waterfall I thought I was seeing per buffer access is not there. Same for `guard_select`: I had it as a second lever and it is 7 % of the instructions. **The A/B, yes.** One thing to pin down before I run it, so the two runs are comparable: My 50 ms figure comes from the full DRED path (`VICTORY_D3D12_DRED=1` plus `VICTORY_GPU_TIMING=1`), where the run prints `the card's time by command (timing run)` with one line per hash. For `7b2c3c1d` that line was: ``` 2 instances, 50 ms each, dispatch 10x8x1, longest 51.0 ms ``` Is that the number you want compared - the per-hash total from the `by command` lines - or do you want the single-dispatch time from the `slow host list` warnings? They are different events on our side: the first is the timing run's own accounting of a hash, the second is a list that took over 50 ms of card time. I would rather ask than hand you two runs of the wrong number. Assuming the `by command` lines are what you mean, the plan: same save (the cell block standstill I used for the census, no driving, so the dispatch count is stable), `VICTORY_HOST_WAVE=32`, full DRED, both builds, three runs each, reporting the `7b2c3c1d` line and the frame median. Your estimate is 50 -> 33-43 ms; if the translation is identical and only the M0 lowering changes, I would expect the whole-frame number to move less than the dispatch number because the dispatch is ~25 % of a frame at 200 ms. It will be a few hours - the machine is in the middle of a 26,503-pipeline Vulkan build for a different project (Leonida's recompiled runtime, which is the only other tree we run). I will post the two runs together when it is free, so the pair is not separated by whatever else the box is doing. One more data point you may want, from the same census session: `CSComputeSkinningPedBlendShapesSecMotionVelocity` (`82a2ad6d07417d36`) is the largest of the five at `total=19515`, and it is the one our timing run had at **24.60 ms a frame** in the lobby. If the select-tree change also touches its `select=1765`, the pair of dispatches would be worth measuring in the same run - say the word and I will include it.
KainanP commented 2026-11-28 16:16:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T16:16:38Z.


@YUYING234 yes, the by command per-hash line is the right one: 2 instances, … ms each, dispatch 10x8x1, longest …. It times that dispatch itself. The slow-host-list warning times a whole list, so it would mix in everything else in that list. Your plan sounds right: same standstill, VICTORY_HOST_WAVE=32, full DRED, both builds, three runs each, plus the frame median. You're also right that the frame should move less than the dispatch.

On 82a2ad6d: #571 shouldn't change it. Its census line has indexed_select=0, so it has no M0-indexed moves, and its select=1765 are ordinary selects that the tree doesn't touch. It's still worth including in the same runs as a control: if its time moves noticeably between the two builds, that tells us how much of any 7b2c3c1d difference is run-to-run noise.

No rush, and thanks for keeping the two runs together.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7242113844 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3505#issuecomment-7242113844). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-28T16:16:38Z. --- @YUYING234 yes, the `by command` per-hash line is the right one: `2 instances, … ms each, dispatch 10x8x1, longest …`. It times that dispatch itself. The slow-host-list warning times a whole list, so it would mix in everything else in that list. Your plan sounds right: same standstill, `VICTORY_HOST_WAVE=32`, full DRED, both builds, three runs each, plus the frame median. You're also right that the frame should move less than the dispatch. On `82a2ad6d`: #571 shouldn't change it. Its census line has `indexed_select=0`, so it has no M0-indexed moves, and its `select=1765` are ordinary selects that the tree doesn't touch. It's still worth including in the same runs as a **control**: if its time moves noticeably between the two builds, that tells us how much of any `7b2c3c1d` difference is run-to-run noise. No rush, and thanks for keeping the two runs together.
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#3505
No description provided.