RTX 5080, Series S: 12.9 -> ~25 fps in one day; what moved the frame, what did not, why avatarmanz main runs at 4 fps on NVIDIA, and where help is needed #1379

Open
opened 2026-11-26 19:37:54 +00:00 by Zignixx · 8 comments
Zignixx commented 2026-11-26 19:37:54 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by Zignixx on 2026-11-26T19:37:54Z.


AI-assisted (Claude Mythos 5.2 in Claude Code). Numbers and log lines only, no game data. Almost every number below is ONE run on ONE machine; where two runs with the same settings were compared they differed by about 2 ms a frame.

Summary

On an RTX 5080 the frame went from 77.7 ms to about 39 ms in the prologue (Series S profile, 720p internal, ray tracing shaders skipped, correct picture). Four changes account for nearly all of it. Each was one thing in the wrong place, not a slow algorithm. After them three things are saturated at once (the title's render thread, its recording threads, the card), and nothing we tried since has moved the frame. That is where we would like help.

Setup

  • RTX 5080 16 GB (32-lane waves, view heap capped at 1,000,000), Ryzen 9 9900X3D, 64 GB, Windows 11 26200.
  • Tree for the table below: trustno1-coder/VIctory-NVIDIA 033be27f3 + the avatarmanz speed wave up to 85d564167 + avatarmanz PRs 24, 42, 82, 96, 97, 105, 107, 108, 109, 114, 119 + fxceless PRs 907, 1044, 1210 (the recipe of fxceless/victory-fork#1268, without its DXIL optimiser PRs).
  • Diagnostics build (--profile diag --features diagnostics), --console series-s, VICTORY_RENDER_SCALE=0.6667, VICTORY_OWN_UPSCALER=1, VICTORY_CARD_BUFFERS_MB=1536, VICTORY_DYNAMIC_SLOTS=524288, the fork's scripts/rt_off_hashes.txt in VICTORY_SKIP_PIPELINES.
  • Scene: the opening cell, corridor and visiting room, 4,400-4,700 draws a frame; the city later has about 6,000.

What moved the frame

step fps (median) ms a frame what changed
start (quality switches: RELAY=1, CARD_STEPS=0, TEXTURE_NO_WAIT=0) 12.9 77.7
shader writes into write-combined title memory not fetched back 14.4 69.5 copying back 12.8 -> 4.6 ms
every title buffer's copy in the card's memory (VICTORY_CARD_BUFFERS_MIN_KB=64) 19.6 51.2 waiting for the card 38 -> 16 ms
RELAY=2, CARD_STEPS=1, TEXTURE_NO_WAIT=0 20.8 48.2 waits for flights 16 -> 4 ms, picture still correct
the skipped-shader list looked up in a set ~25 ~39 recording 3.9 -> 2.9 us a list call
  1. Write-combined memory is not fetched back. As fxceless/victory-fork#868, with one addition that matters once small buffers are on the card: only copies of 1 MiB and more may be skipped. Skipping the small ones gave 22 fps and a black picture with half the draws (2,700 instead of 5,700 a frame): they hold the counts and visibility lists the title's CPU does read.
  2. Small buffers on the card. Already known (fxceless c36971b, fxceless/victory-fork#1163, avatarmanz/VIctory-7900XTX#213 and PR 225). Our numbers for the record: per-command card time fell from 42 to 18.5 ms a frame; the eleven compute programs that took 17.5 ms together (14264103296aa43a 5.5 ms, f22a76fcb967ee59 2.3, 5cf00dc39042edaf 2.1, ...; compare fxceless/victory-fork#1186) dropped out of the top forty. With CARD_BUFFERS_MB=1536 nothing was pushed out (the caveat of #1163).
  3. RELAY=2 with CARD_STEPS=1 and TEXTURE_NO_WAIT=0. The fork's speed defaults (CARD_STEPS=2, TEXTURE_NO_WAIT=1) gave noise faces and stretched bodies here; this combination did not. It removes the wait fxceless/victory-fork#1256 describes.
  4. The skip list was a list. pipeline::skipped_shader compared every draw's and dispatch's shader hashes against a Vec<String> of the 1,034 entries of rt_off_hashes.txt: about 20 million string compares a frame, a sixth of all samples on the recording threads. A HashSet fixes it (one commit: https://github.com/Zignixx/VIctory-7900XTX/tree/skip-list-set, on avatarmanz/VIctory-7900XTX main, where the function is the same).

What did not move the frame (so nobody repeats it)

tried result
avatarmanz renderer port 1 (VICTORY_PORT_CONSTANTS=1, the 32-bit heap in place) traffic 56 -> 7 MB up, 50 -> 0 MB fetched a frame, but waiting for the card 38 -> 119 ms: 6.9 fps. This card reads system-memory heaps slowly.
VICTORY_GROUP_SYNC=0 (no barrier waits) the hot compute programs take the same time; barrier waits are not their cost
avatarmanz renderer port 6 (VICTORY_PORT_GUARD=1) guard lock waits 23 -> 0.5 ms a frame over all threads, frame unchanged
frame-rate unlock (VICTORY_FRAME_INTERVAL_MS=16.667) menus reach 60 fps, game speed is normal, the world stays where it was: pacing is not the limit
VICTORY_WIDE_SPIN=300 nothing
mimalloc under the diagnostics build's counting allocator preparing 26.7 -> 24.8 ms, frame unchanged
declared writes of big write-combined copies left out of the card's compares 13,638 -> 3,630 pieces compared, card 91% -> 70% busy, frame unchanged (61 ms in the city)
VICTORY_ASYNC_SUBMIT=1 active, frame unchanged
avatarmanz renderer port 5 (VICTORY_PORT_CBV=1) as it is inert on NVIDIA: it reads constants through raw twins, which need a heap of 2 * 2^21 views
port 5 with the raw view in the constant buffer's own slot (local, see below) picture correct, 9,148 of ~10,000 constant buffers a frame read from the card copy, waits for flights 0, but 45.8 ms against 42.5 ms

avatarmanz/VIctory-7900XTX main on NVIDIA: 4 fps until two things are set

We then moved the work onto avatarmanz/VIctory-7900XTX main (2de998014). As it is, it ran at 4 fps here: 38,000 list calls took about 1,000 ms a frame over the recording threads instead of 120 ms, and no counter showed it. This looks like the slowdown of avatarmanz/VIctory-7900XTX#213 and #221.

  • VICTORY_VIEW_BYTES=0 brings recording back to 113 ms a frame. A sampling profile had 37% of the samples of the six busiest threads in descriptor::host::view_home -> shadow::exact, most of it waiting for one mutex. Every buffer view that does not start on its copy's elements gets a copy of its own there; without raw twins (a view heap capped at 1,000,000) that is most views, and only 256 such copies are kept. The picture stayed correct without them in the scenes we looked at.
  • The title must be kept on its own upscaler (the NVIDIA fork's loader hook for VICTORY_OWN_UPSCALER); otherwise it runs its FSR 4 compute passes and the card is 94% busy.

With both, and once the driver's pipeline cache had settled, that tree sits at 39-40 ms in the same window as the old one. On it, VICTORY_CARD_STEPS=2, VICTORY_ASYNC_SUBMIT=1, VICTORY_PORT_GUARD=1 and combinations of them all landed within 38-40 ms (one or two runs each); CARD_STEPS=2 removed the waits for flights (13 -> 0 ms) but left dark smears on a shirt.

A warning about comparing runs after a re-translation: the first five runs got faster one after another in the same scene (63, 60, 45, 47, 39 ms) whatever was switched on, because the driver was still filling its pipeline cache. Alternate A/B/A before believing a difference.

Where the frame is now (timeline of four frames at 39 ms)

  • The title's render thread is inside ExecuteCommandLists for 38.5 of 39 ms (16 calls, about 29 submissions).
  • Its five recording threads run 35-40 of 39 ms, about 26 ms of it inside our list calls.
  • The card runs submissions for 29.6 of 39 ms; the title's own commands are 18.5 ms of that.
  • The chain a present comes out of has no single long link: about 15 ms of our work on the render thread, 7 ms recording, 5 ms helper jobs, 4 ms wake-ups and waits, 3 ms title code, 1.3 ms card.

Recording is State::tables: every table that holds a constant buffer is made afresh in dynamic slots (the console takes constant buffers on 16 bytes, D3D12 on 256). About 11,000 tables are asked for a frame and about 100,000 made a second, 6.6 slots each. Counted by contents alone (the constant entries and the table's place in the title's heap left out), 49% of the tables made had been made the same before, 38% by another list of the same frame.

Slot budget on the capped heap: 500,000 title slots kept, 499,999 dynamic. The pool fell to 245,759 free (peak use about 254,000) at up to 5,170 draws; the tables the title's draws bind lie at title slots 1,200,000-1,232,000, past anything kept. So fixed-offset twins for the dynamic pool do not fit without halving a pool that is already half used. See also avatarmanz/VIctory-7900XTX#35, #102, fxceless/victory-fork PR 1258, Marvisak/VIctory#1760.

Open questions, and where help would count

  1. Is reading constants as raw bytes dearer on the card than a constant buffer view? Our own-slot variant removed the fills and the waits and still lost about 3 ms. We have no per-command timing of that run. Anyone with a replay that works could answer this in minutes.
  2. Tables across lists. Half the tables repeat by contents. Reuse needs the constant's place out of the descriptor (an offset in root constants into one bound buffer, as a PC renderer would do it). Has anyone started on that? Marvisak/VIctory PR 3068 and fxceless/victory-fork PRs 1316 and 1192 look related; we have not tried them yet.
  3. Recording on other threads. Marvisak/VIctory PR 3184 (VICTORY_DEFER_LISTS) aims at exactly the 26 ms a recording thread spends in our calls. Results on NVIDIA?
  4. Dynamic slot search costs about 8 ms a frame over all threads here; fxceless/victory-fork PR 1297 and avatarmanz/VIctory-7900XTX PR 237 address it.
  5. How high do the title's heap-indexed (bindless) slots reach? If past the 500,000 kept on a capped heap they read null today.
  6. Replay on NVIDIA. victory replay loses the device here (0x887A0005), as in avatarmanz/VIctory-7900XTX#133. Our capture holds about 2,200 buffers of 64 KiB in heaps with the cross-adapter flags, which the replay cannot place.
  7. The sampling profiler (VICTORY_PROFILE) crashed the title in two of five runs (an access violation inside the stack walk, once at a 2 ms interval and once at 10 ms).

Seen and already reported by others: the dark smear on the cell's left wall (fxceless/victory-fork#1223; one capture here, with port 6 on), the noise face of the woman at the bar.

How we measure

  • Runs are compared in the window 100-140 s after start: the same scene in every run (4,550-4,650 draws), so a 150 s run is enough. Medians over a whole run mislead, because a faster run reaches later, heavier scenes.
  • VICTORY_GPU_TIMING=1 with VICTORY_D3D12_DRED=1 for card time by command; VICTORY_TIMELINE for the chain behind a present; VICTORY_PROFILE symbolised against the same build.

Code

Branch with everything: https://github.com/Zignixx/VIctory-7900XTX/tree/nvidia-wip (avatarmanz/VIctory-7900XTX main 2de998014 + 23 commits: the NVIDIA fork's dynamic slots on a capped heap, VICTORY_BVH_MISS and loader hooks, and ours). Everything experimental is behind a switch and off by default. It needs VICTORY_VIEW_BYTES=0 and VICTORY_OWN_UPSCALER=1 on NVIDIA, as above. The skip-list fix alone: https://github.com/Zignixx/VIctory-7900XTX/tree/skip-list-set.

Switches of ours in that branch: VICTORY_SKIP_WC_BACK=1 (count: counting only) with VICTORY_SKIP_WC_BACK_MIN_KB (1024), VICTORY_SKIP_WC_COMPARE=1, VICTORY_PORT_CBV=1 with the own-slot path on hosts without twins (VICTORY_PORT_CBV_SLOT=0, VICTORY_PORT_CBV_CARD=0 turn its halves off), VICTORY_TABLE_REPEATS=1, VICTORY_SYSTEM_HEAP=1 (back from mimalloc, which is a new dependency there).

The goal on this machine is 60 fps at a native resolution with ray tracing. We are a long way from it and say so; this issue is the map of what is between here and there as far as we can see it.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6633868830 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379). Originally posted by [Zignixx](https://github.com/Zignixx) on 2026-11-26T19:37:54Z. --- *AI-assisted (Claude Mythos 5.2 in Claude Code). Numbers and log lines only, no game data. Almost every number below is ONE run on ONE machine; where two runs with the same settings were compared they differed by about 2 ms a frame.* ## Summary On an RTX 5080 the frame went from 77.7 ms to about 39 ms in the prologue (Series S profile, 720p internal, ray tracing shaders skipped, correct picture). Four changes account for nearly all of it. Each was one thing in the wrong place, not a slow algorithm. After them three things are saturated at once (the title's render thread, its recording threads, the card), and nothing we tried since has moved the frame. That is where we would like help. ## Setup - RTX 5080 16 GB (32-lane waves, view heap capped at 1,000,000), Ryzen 9 9900X3D, 64 GB, Windows 11 26200. - Tree for the table below: `trustno1-coder/VIctory-NVIDIA` `033be27f3` + the avatarmanz speed wave up to `85d564167` + avatarmanz PRs 24, 42, 82, 96, 97, 105, 107, 108, 109, 114, 119 + fxceless PRs 907, 1044, 1210 (the recipe of fxceless/victory-fork#1268, without its DXIL optimiser PRs). - Diagnostics build (`--profile diag --features diagnostics`), `--console series-s`, `VICTORY_RENDER_SCALE=0.6667`, `VICTORY_OWN_UPSCALER=1`, `VICTORY_CARD_BUFFERS_MB=1536`, `VICTORY_DYNAMIC_SLOTS=524288`, the fork's `scripts/rt_off_hashes.txt` in `VICTORY_SKIP_PIPELINES`. - Scene: the opening cell, corridor and visiting room, 4,400-4,700 draws a frame; the city later has about 6,000. ## What moved the frame | step | fps (median) | ms a frame | what changed | |---|---|---|---| | start (quality switches: `RELAY=1`, `CARD_STEPS=0`, `TEXTURE_NO_WAIT=0`) | 12.9 | 77.7 | | | shader writes into write-combined title memory not fetched back | 14.4 | 69.5 | copying back 12.8 -> 4.6 ms | | every title buffer's copy in the card's memory (`VICTORY_CARD_BUFFERS_MIN_KB=64`) | 19.6 | 51.2 | waiting for the card 38 -> 16 ms | | `RELAY=2`, `CARD_STEPS=1`, `TEXTURE_NO_WAIT=0` | 20.8 | 48.2 | waits for flights 16 -> 4 ms, picture still correct | | the skipped-shader list looked up in a set | ~25 | ~39 | recording 3.9 -> 2.9 us a list call | 1. **Write-combined memory is not fetched back.** As fxceless/victory-fork#868, with one addition that matters once small buffers are on the card: only copies of 1 MiB and more may be skipped. Skipping the small ones gave 22 fps and a black picture with half the draws (2,700 instead of 5,700 a frame): they hold the counts and visibility lists the title's CPU does read. 2. **Small buffers on the card.** Already known (fxceless `c36971b`, fxceless/victory-fork#1163, avatarmanz/VIctory-7900XTX#213 and PR 225). Our numbers for the record: per-command card time fell from 42 to 18.5 ms a frame; the eleven compute programs that took 17.5 ms together (`14264103296aa43a` 5.5 ms, `f22a76fcb967ee59` 2.3, `5cf00dc39042edaf` 2.1, ...; compare fxceless/victory-fork#1186) dropped out of the top forty. With `CARD_BUFFERS_MB=1536` nothing was pushed out (the caveat of #1163). 3. **`RELAY=2` with `CARD_STEPS=1` and `TEXTURE_NO_WAIT=0`.** The fork's speed defaults (`CARD_STEPS=2`, `TEXTURE_NO_WAIT=1`) gave noise faces and stretched bodies here; this combination did not. It removes the wait fxceless/victory-fork#1256 describes. 4. **The skip list was a list.** `pipeline::skipped_shader` compared every draw's and dispatch's shader hashes against a `Vec<String>` of the 1,034 entries of `rt_off_hashes.txt`: about 20 million string compares a frame, a sixth of all samples on the recording threads. A `HashSet` fixes it (one commit: https://github.com/Zignixx/VIctory-7900XTX/tree/skip-list-set, on `avatarmanz/VIctory-7900XTX` `main`, where the function is the same). ## What did not move the frame (so nobody repeats it) | tried | result | |---|---| | avatarmanz renderer port 1 (`VICTORY_PORT_CONSTANTS=1`, the 32-bit heap in place) | traffic 56 -> 7 MB up, 50 -> 0 MB fetched a frame, but waiting for the card 38 -> 119 ms: 6.9 fps. This card reads system-memory heaps slowly. | | `VICTORY_GROUP_SYNC=0` (no barrier waits) | the hot compute programs take the same time; barrier waits are not their cost | | avatarmanz renderer port 6 (`VICTORY_PORT_GUARD=1`) | guard lock waits 23 -> 0.5 ms a frame over all threads, frame unchanged | | frame-rate unlock (`VICTORY_FRAME_INTERVAL_MS=16.667`) | menus reach 60 fps, game speed is normal, the world stays where it was: pacing is not the limit | | `VICTORY_WIDE_SPIN=300` | nothing | | mimalloc under the diagnostics build's counting allocator | preparing 26.7 -> 24.8 ms, frame unchanged | | declared writes of big write-combined copies left out of the card's compares | 13,638 -> 3,630 pieces compared, card 91% -> 70% busy, frame unchanged (61 ms in the city) | | `VICTORY_ASYNC_SUBMIT=1` | active, frame unchanged | | avatarmanz renderer port 5 (`VICTORY_PORT_CBV=1`) as it is | inert on NVIDIA: it reads constants through raw twins, which need a heap of 2 * 2^21 views | | port 5 with the raw view in the constant buffer's own slot (local, see below) | picture correct, 9,148 of ~10,000 constant buffers a frame read from the card copy, waits for flights 0, but 45.8 ms against 42.5 ms | ## avatarmanz/VIctory-7900XTX `main` on NVIDIA: 4 fps until two things are set We then moved the work onto `avatarmanz/VIctory-7900XTX` `main` (`2de998014`). As it is, it ran at 4 fps here: 38,000 list calls took about 1,000 ms a frame over the recording threads instead of 120 ms, and no counter showed it. This looks like the slowdown of avatarmanz/VIctory-7900XTX#213 and #221. - **`VICTORY_VIEW_BYTES=0` brings recording back to 113 ms a frame.** A sampling profile had 37% of the samples of the six busiest threads in `descriptor::host::view_home` -> `shadow::exact`, most of it waiting for one mutex. Every buffer view that does not start on its copy's elements gets a copy of its own there; without raw twins (a view heap capped at 1,000,000) that is most views, and only 256 such copies are kept. The picture stayed correct without them in the scenes we looked at. - **The title must be kept on its own upscaler** (the NVIDIA fork's loader hook for `VICTORY_OWN_UPSCALER`); otherwise it runs its FSR 4 compute passes and the card is 94% busy. With both, and once the driver's pipeline cache had settled, that tree sits at 39-40 ms in the same window as the old one. On it, `VICTORY_CARD_STEPS=2`, `VICTORY_ASYNC_SUBMIT=1`, `VICTORY_PORT_GUARD=1` and combinations of them all landed within 38-40 ms (one or two runs each); `CARD_STEPS=2` removed the waits for flights (13 -> 0 ms) but left dark smears on a shirt. A warning about comparing runs after a re-translation: the first five runs got faster one after another in the same scene (63, 60, 45, 47, 39 ms) whatever was switched on, because the driver was still filling its pipeline cache. Alternate A/B/A before believing a difference. ## Where the frame is now (timeline of four frames at 39 ms) - The title's render thread is inside `ExecuteCommandLists` for 38.5 of 39 ms (16 calls, about 29 submissions). - Its five recording threads run 35-40 of 39 ms, about 26 ms of it inside our list calls. - The card runs submissions for 29.6 of 39 ms; the title's own commands are 18.5 ms of that. - The chain a present comes out of has no single long link: about 15 ms of our work on the render thread, 7 ms recording, 5 ms helper jobs, 4 ms wake-ups and waits, 3 ms title code, 1.3 ms card. Recording is `State::tables`: every table that holds a constant buffer is made afresh in dynamic slots (the console takes constant buffers on 16 bytes, D3D12 on 256). About 11,000 tables are asked for a frame and about 100,000 made a second, 6.6 slots each. Counted by contents alone (the constant entries and the table's place in the title's heap left out), 49% of the tables made had been made the same before, 38% by another list of the same frame. Slot budget on the capped heap: 500,000 title slots kept, 499,999 dynamic. The pool fell to 245,759 free (peak use about 254,000) at up to 5,170 draws; the tables the title's draws bind lie at title slots 1,200,000-1,232,000, past anything kept. So fixed-offset twins for the dynamic pool do not fit without halving a pool that is already half used. See also avatarmanz/VIctory-7900XTX#35, #102, fxceless/victory-fork PR 1258, Marvisak/VIctory#1760. ## Open questions, and where help would count 1. **Is reading constants as raw bytes dearer on the card than a constant buffer view?** Our own-slot variant removed the fills and the waits and still lost about 3 ms. We have no per-command timing of that run. Anyone with a replay that works could answer this in minutes. 2. **Tables across lists.** Half the tables repeat by contents. Reuse needs the constant's place out of the descriptor (an offset in root constants into one bound buffer, as a PC renderer would do it). Has anyone started on that? Marvisak/VIctory PR 3068 and fxceless/victory-fork PRs 1316 and 1192 look related; we have not tried them yet. 3. **Recording on other threads.** Marvisak/VIctory PR 3184 (`VICTORY_DEFER_LISTS`) aims at exactly the 26 ms a recording thread spends in our calls. Results on NVIDIA? 4. **Dynamic slot search** costs about 8 ms a frame over all threads here; fxceless/victory-fork PR 1297 and avatarmanz/VIctory-7900XTX PR 237 address it. 5. **How high do the title's heap-indexed (bindless) slots reach?** If past the 500,000 kept on a capped heap they read null today. 6. **Replay on NVIDIA.** `victory replay` loses the device here (0x887A0005), as in avatarmanz/VIctory-7900XTX#133. Our capture holds about 2,200 buffers of 64 KiB in heaps with the cross-adapter flags, which the replay cannot place. 7. **The sampling profiler** (`VICTORY_PROFILE`) crashed the title in two of five runs (an access violation inside the stack walk, once at a 2 ms interval and once at 10 ms). Seen and already reported by others: the dark smear on the cell's left wall (fxceless/victory-fork#1223; one capture here, with port 6 on), the noise face of the woman at the bar. ## How we measure - Runs are compared in the window 100-140 s after start: the same scene in every run (4,550-4,650 draws), so a 150 s run is enough. Medians over a whole run mislead, because a faster run reaches later, heavier scenes. - `VICTORY_GPU_TIMING=1` with `VICTORY_D3D12_DRED=1` for card time by command; `VICTORY_TIMELINE` for the chain behind a present; `VICTORY_PROFILE` symbolised against the same build. ## Code Branch with everything: https://github.com/Zignixx/VIctory-7900XTX/tree/nvidia-wip (`avatarmanz/VIctory-7900XTX` `main` `2de998014` + 23 commits: the NVIDIA fork's dynamic slots on a capped heap, `VICTORY_BVH_MISS` and loader hooks, and ours). Everything experimental is behind a switch and off by default. It needs `VICTORY_VIEW_BYTES=0` and `VICTORY_OWN_UPSCALER=1` on NVIDIA, as above. The skip-list fix alone: https://github.com/Zignixx/VIctory-7900XTX/tree/skip-list-set. Switches of ours in that branch: `VICTORY_SKIP_WC_BACK=1` (`count`: counting only) with `VICTORY_SKIP_WC_BACK_MIN_KB` (1024), `VICTORY_SKIP_WC_COMPARE=1`, `VICTORY_PORT_CBV=1` with the own-slot path on hosts without twins (`VICTORY_PORT_CBV_SLOT=0`, `VICTORY_PORT_CBV_CARD=0` turn its halves off), `VICTORY_TABLE_REPEATS=1`, `VICTORY_SYSTEM_HEAP=1` (back from mimalloc, which is a new dependency there). The goal on this machine is 60 fps at a native resolution with ray tracing. We are a long way from it and say so; this issue is the map of what is between here and there as far as we can see it.
LeonardoS11 commented 2026-11-26 21:34:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by LeonardoS11 on 2026-11-26T21:34:34Z.


AI-assisted (Claude in Claude Code). Numbers and log lines only, no game data. One or two runs per number unless said otherwise.

Your branch on an RTX 3080 Ti

We built Zignixx/VIctory-7900XTX nvidia-wip (acbc666) from source and ran it next to our own tree (fxceless/victory-fork main + our patches) in the same scene (Series S profile, the opening cell and corridor, about 4,400 draws a frame), RTX 3080 Ti, Windows 11:

tree ms a frame preparing copying back
nvidia-wip, your recipe, VICTORY_RENDER_SCALE=0.6667 64-73 51-61 18-21
nvidia-wip, your recipe, no render scale (full resolution) 60-75 47-55 17-20
nvidia-wip, full resolution, without the own-upscaler hook 79-80 (FSR 4 runs)
our tree, best settings, same hour 99-116 (95-99 earlier in the day) 58-60 34-42

So on this card the difference is not resolution: the preparing is about the same in both trees, and ours spends some 30-40 ms more a frame outside it. We are moving our work onto your branch.

Two things we saw: VICTORY_RENDER_SCALE=1.0 with the loader hook ends in unhandled exception 0x80000003 (both runs; leaving the variable unset gives full resolution), and the chain-link screen in the window of the opening cell is missing in every run of nvidia-wip here, at both scales (it is drawn in our tree).

Inside State::tables (our tree, for your question 2)

Per ExecuteIndirect call, all recording threads together, about 3,900-4,500 calls a frame:

stage us a call
checks and the argument buffer's host copy found 0.7
window / gather / clamp 1.4-1.7
the draw's state (State::bind) 28-33
the host ExecuteIndirect call 0.9-1.0

Inside State::bind (about 7,500-7,700 binds a frame): descriptor tables 137-162 ms a frame over all threads (18-21 us a bind); everything else together about 30 ms.

Inside the tables:

  • tables made afresh: about 7,700-8,400 a frame, 12-14 us each, 51,000-55,000 slots made a frame: about 10,000-10,500 constant buffer views and 41,000-42,000 other views, most of them shader views of textures the title placed in memory;
  • entries of tables made from the title's slots: about 36,000-39,000 a frame, 0.7-1 us each;
  • tables made afresh found already made in the same list: about 4,500 a frame, 2.6-3 us each.

So most of the cost of a table made afresh is re-creating every other view of a table that holds a constant buffer, not the constant buffer itself.

The view table's lock is not the convoy

We counted it: about 165,000 reads of the view table a frame, 54 of them found the lock taken, 0.2 ms waited in all.

On your question 2 we agree that moving the constant out of the descriptor (an offset into one bound buffer) is the clean end state, since it lets whole tables repeat. We will try it on top of your branch and report.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7203857811 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7203857811). Originally posted by [LeonardoS11](https://github.com/LeonardoS11) on 2026-11-26T21:34:34Z. --- *AI-assisted (Claude in Claude Code). Numbers and log lines only, no game data. One or two runs per number unless said otherwise.* ## Your branch on an RTX 3080 Ti We built `Zignixx/VIctory-7900XTX` `nvidia-wip` (`acbc666`) from source and ran it next to our own tree (fxceless/victory-fork main + our patches) in the same scene (Series S profile, the opening cell and corridor, about 4,400 draws a frame), RTX 3080 Ti, Windows 11: | tree | ms a frame | preparing | copying back | |---|---|---|---| | `nvidia-wip`, your recipe, `VICTORY_RENDER_SCALE=0.6667` | 64-73 | 51-61 | 18-21 | | `nvidia-wip`, your recipe, no render scale (full resolution) | 60-75 | 47-55 | 17-20 | | `nvidia-wip`, full resolution, without the own-upscaler hook | 79-80 (FSR 4 runs) | | | | our tree, best settings, same hour | 99-116 (95-99 earlier in the day) | 58-60 | 34-42 | So on this card the difference is not resolution: the preparing is about the same in both trees, and ours spends some 30-40 ms more a frame outside it. We are moving our work onto your branch. Two things we saw: `VICTORY_RENDER_SCALE=1.0` with the loader hook ends in `unhandled exception 0x80000003` (both runs; leaving the variable unset gives full resolution), and the chain-link screen in the window of the opening cell is missing in every run of `nvidia-wip` here, at both scales (it is drawn in our tree). ## Inside `State::tables` (our tree, for your question 2) Per `ExecuteIndirect` call, all recording threads together, about 3,900-4,500 calls a frame: | stage | us a call | |---|---| | checks and the argument buffer's host copy found | 0.7 | | window / gather / clamp | 1.4-1.7 | | the draw's state (`State::bind`) | 28-33 | | the host `ExecuteIndirect` call | 0.9-1.0 | Inside `State::bind` (about 7,500-7,700 binds a frame): descriptor tables 137-162 ms a frame over all threads (18-21 us a bind); everything else together about 30 ms. Inside the tables: - tables made afresh: about 7,700-8,400 a frame, 12-14 us each, **51,000-55,000 slots made a frame**: about 10,000-10,500 constant buffer views and **41,000-42,000 other views**, most of them shader views of textures the title placed in memory; - entries of tables made from the title's slots: about 36,000-39,000 a frame, 0.7-1 us each; - tables made afresh found already made in the same list: about 4,500 a frame, 2.6-3 us each. So most of the cost of a table made afresh is re-creating every other view of a table that holds a constant buffer, not the constant buffer itself. ## The view table's lock is not the convoy We counted it: about 165,000 reads of the view table a frame, 54 of them found the lock taken, 0.2 ms waited in all. On your question 2 we agree that moving the constant out of the descriptor (an offset into one bound buffer) is the clean end state, since it lets whole tables repeat. We will try it on top of your branch and report.
LeonardoS11 commented 2026-11-26 21:35:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by LeonardoS11 on 2026-11-26T21:35:37Z.


A correction to my comment above: the "missing chain-link screen" in nvidia-wip is not a defect. A PS5 reference of the same shot shows that window with frosted glass and the chain-link only faintly behind it, which is what your branch draws. The sharp mesh our own tree drew there was the window without its glass, so the defect was ours. Sorry for the noise; the rest of the comment stands.

Written with Claude Code.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7203875083 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7203875083). Originally posted by [LeonardoS11](https://github.com/LeonardoS11) on 2026-11-26T21:35:37Z. --- A correction to my comment above: the "missing chain-link screen" in `nvidia-wip` is not a defect. A PS5 reference of the same shot shows that window with frosted glass and the chain-link only faintly behind it, which is what your branch draws. The sharp mesh our own tree drew there was the window without its glass, so the defect was ours. Sorry for the noise; the rest of the comment stands. Written with Claude Code.
Zignixx commented 2026-11-26 21:54:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Zignixx on 2026-11-26T21:54:24Z.


AI-assisted (Claude Mythos 5.2 in Claude Code). Log lines and numbers only, no game data.

Thank you for building it and for the numbers, and for the correction about the window.

VICTORY_RENDER_SCALE=1.0: reproduced, fixed in nvidia-wip (90fe314)

It stops here too (RTX 5080), and not only at 1.0: 0.75 and 0.85 end the same way, each about five seconds after the start. 0.6667 runs.

  • The int3 at title+0x2219650 is the end of the title's own out-of-memory handler: title+0x4fac3c0 asks one of its allocators (title+0x104070), gets nothing, and calls it. The requests that failed were small (1 MiB at 64 KiB alignment, 2.1 MiB at 128 bytes, 512 KiB at 64 KiB) and came from three different callers in the three runs (texture creation at title+0x193e248 twice, another path once), always the same allocator object. Nothing on the host side failed before it (no refused reservation in the log).
  • So our reading, not measured further: with the Series S profile the title's pools are sized for its own render size (2/3 of 1920x1080), and render targets above that use them up. We did not look for where the pool is sized.
  • The fix is only a clean refusal: with --console series-s and a scale above 2/3 the run stops before loading and says to use --console series-x (2560x1440 without the variable; that runs here, 17.5 fps without ray tracing, one warm run).
  • Also gone: the warning "not patched ... (another build?)" for title+0x28f1e78. Two places wrote the same immediate for the same variable (our load hook first, resolution.rs after it).

Your second row may not be full resolution

The row "no render scale (full resolution)": the immediate the hook replaces is 2/3 in the title itself (AB AA 2A 3F at title+0x28f1e7e), so with the own-upscaler hook and no VICTORY_RENDER_SCALE the scale should still be 2/3, 1280x720. Your times for the two rows are the same, which fits. We did not verify the render size in a run; if you have a quick way to read it, that would settle it.

Your table numbers

41,000-42,000 other views re-made a frame against about 10,000 constant buffer views is the number we were missing: it says the constant out of the descriptor is worth more than we assumed, because then those tables are the title's own again and nothing is made. Our own attempt at it (the constant read raw through its own slot, no twins) worked but gained nothing, since the tables were still made afresh. Glad to see what you find on top of the branch; we will keep nvidia-wip as it is apart from fixes like this one, so you have a stable base.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7204175309 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7204175309). Originally posted by [Zignixx](https://github.com/Zignixx) on 2026-11-26T21:54:24Z. --- *AI-assisted (Claude Mythos 5.2 in Claude Code). Log lines and numbers only, no game data.* Thank you for building it and for the numbers, and for the correction about the window. ## `VICTORY_RENDER_SCALE=1.0`: reproduced, fixed in `nvidia-wip` (`90fe314`) It stops here too (RTX 5080), and not only at 1.0: 0.75 and 0.85 end the same way, each about five seconds after the start. 0.6667 runs. - The `int3` at `title+0x2219650` is the end of the title's own out-of-memory handler: `title+0x4fac3c0` asks one of its allocators (`title+0x104070`), gets nothing, and calls it. The requests that failed were small (1 MiB at 64 KiB alignment, 2.1 MiB at 128 bytes, 512 KiB at 64 KiB) and came from three different callers in the three runs (texture creation at `title+0x193e248` twice, another path once), always the same allocator object. Nothing on the host side failed before it (no refused reservation in the log). - So our reading, not measured further: with the Series S profile the title's pools are sized for its own render size (2/3 of 1920x1080), and render targets above that use them up. We did not look for where the pool is sized. - The fix is only a clean refusal: with `--console series-s` and a scale above 2/3 the run stops before loading and says to use `--console series-x` (2560x1440 without the variable; that runs here, 17.5 fps without ray tracing, one warm run). - Also gone: the warning "not patched ... (another build?)" for `title+0x28f1e78`. Two places wrote the same immediate for the same variable (our load hook first, `resolution.rs` after it). ## Your second row may not be full resolution The row "no render scale (full resolution)": the immediate the hook replaces is 2/3 in the title itself (`AB AA 2A 3F` at `title+0x28f1e7e`), so with the own-upscaler hook and no `VICTORY_RENDER_SCALE` the scale should still be 2/3, 1280x720. Your times for the two rows are the same, which fits. We did not verify the render size in a run; if you have a quick way to read it, that would settle it. ## Your table numbers 41,000-42,000 other views re-made a frame against about 10,000 constant buffer views is the number we were missing: it says the constant out of the descriptor is worth more than we assumed, because then those tables are the title's own again and nothing is made. Our own attempt at it (the constant read raw through its own slot, no twins) worked but gained nothing, since the tables were still made afresh. Glad to see what you find on top of the branch; we will keep `nvidia-wip` as it is apart from fixes like this one, so you have a stable base.
akimfomin commented 2026-11-26 22:15:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by akimfomin on 2026-11-26T22:15:39Z.


I checked whether ByFxbian’s #1316 switch can answer the CBV question on the current nvidia-wip. At 90fe3144a4c5fe8ca4e6ce1b5f0e42f4fb28696b the switch is absent. A three-way application of the #1316 delta at c5b08986a571f4befb6806ca94b8ab7ce8c58dba conflicts in copystat.rs, draw.rs, host.rs and list.rs. Setting the flag on stock nvidia-wip would therefore be an inert control. This is separate from moving constants out of descriptors, which you already plan to try.

@LeonardoS11, if you have time for one optional check on the same RTX 3080 Ti scene, #1316’s own pinned head is ready for an isolated OFF/ON comparison if that head reaches the scene on your setup. The checklist uses the same warmed cache, actual internal resolution and three alternating pairs. It takes frame-time captures plus the ON diagnostics for eligible hits and misses, and asks whether the picture or draw counts changed. The script produces just the aggregates. If your available build is only nvidia-wip, the four conflicts are the gating work before this comparison can answer anything about that branch. Exact revisions and six-run checklist

AI-assisted source comparison and test tooling (Codex).

Update: I built c5b0898 with the diagnostic profile and verified both settings on a physical RTX 4070 Ti SUPER (617.14). The public synthetic snapshot regression passed. With 22,000 bindings and 64 distinct sources, median preparation/enqueue was 10.977 ms OFF and 0.172 ms ON; with all sources unique it was 11.202 ms and 11.066 ms, and command recording was slower with reuse. These are isolated tests. The ready-to-run 90-second capture instructions and validator reject shortened, mixed-process and mixed-swapchain captures. If the compatible revision already reaches your setup, all that needs doing there is the capture and picture check; PortBridge can handle the summaries from permitted aggregates.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7204512623 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7204512623). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-26T22:15:39Z. --- I checked whether ByFxbian’s #1316 switch can answer the CBV question on the current `nvidia-wip`. At `90fe3144a4c5fe8ca4e6ce1b5f0e42f4fb28696b` the switch is absent. A three-way application of the #1316 delta at `c5b08986a571f4befb6806ca94b8ab7ce8c58dba` conflicts in `copystat.rs`, `draw.rs`, `host.rs` and `list.rs`. Setting the flag on stock `nvidia-wip` would therefore be an inert control. This is separate from moving constants out of descriptors, which you already plan to try. @LeonardoS11, if you have time for one optional check on the same RTX 3080 Ti scene, #1316’s own pinned head is ready for an isolated OFF/ON comparison if that head reaches the scene on your setup. The checklist uses the same warmed cache, actual internal resolution and three alternating pairs. It takes frame-time captures plus the ON diagnostics for eligible hits and misses, and asks whether the picture or draw counts changed. The script produces just the aggregates. If your available build is only `nvidia-wip`, the four conflicts are the gating work before this comparison can answer anything about that branch. [Exact revisions and six-run checklist](https://github.com/akimfomin/PortBridge/blob/e4963fffb7dd5188e9b54f60c67665f314a3ce14/audit/evidence/victory-cbv-ab.md) AI-assisted source comparison and test tooling (Codex). Update: I built `c5b0898` with the diagnostic profile and verified both settings on a physical RTX 4070 Ti SUPER (617.14). The public synthetic snapshot regression passed. With 22,000 bindings and 64 distinct sources, median preparation/enqueue was 10.977 ms OFF and 0.172 ms ON; with all sources unique it was 11.202 ms and 11.066 ms, and command recording was slower with reuse. These are isolated tests. The [ready-to-run 90-second capture instructions and validator](https://github.com/akimfomin/PortBridge/blob/e4963fffb7dd5188e9b54f60c67665f314a3ce14/audit/evidence/victory-cbv-ab.md) reject shortened, mixed-process and mixed-swapchain captures. If the compatible revision already reaches your setup, all that needs doing there is the capture and picture check; PortBridge can handle the summaries from permitted aggregates.
oz-stanislav-zhukov commented 2026-11-26 23:03:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by oz-stanislav-zhukov on 2026-11-26T23:03:28Z.


Your recipe, reproduced on a weaker card and a different tree, with what did and did not carry over. One run per row, diag build, Series S at 720p internal. Numbers come from our own in-game stats window and the run logs.

Setup. RTX 5060 Ti 16 GB, i7-14700KF, 64 GB, Windows 10 22H2 with the Agility SDK. The tree is Proudnoob4 nvidia-hybrid-v2 f3c8a1f3 plus two commits of ours:

  • an LDS fallback that brings the trees back; details in #1319;
  • a stats window.

The warm-up runs victory warm --used with the run's settings, so nothing compiles in game (made 0, about 4,100 pipelines from disk).

run change fps (draws/frame) waits for GPU
H6 -Quality (RELAY=1, CARD_STEPS=0) 8 (11k), 10-12 (3-5k) 40-60 ms
H10 + RELAY=2 CARD_STEPS=1 TEXTURE_NO_WAIT=0 CARD_BUFFERS_MIN_KB=64 SKIP_WC_BACK=1 10 (11k), 13-17 (3-5k), 20-21 (2-2.4k); log median 13.7 4-6 ms
H11 H10 + CARD_BUFFERS_MB=2048 FETCH_CHECK=1 (#1268 pass 13) same as H10 -
H12 H10 without ray tracing (rt_off list skipped again) 14.6 at 6.8k (H10: 12.9 at 7.1k) -
H14 H12 + VIEW_BYTES=0 SUBMIT_FRAMES=2 LAND_ASIDE=1 median 14.1 vs 13.9 -

What we take from it:

  • The recipe carries over. The card wait collapses here too, and frames are 25-75% faster depending on the scene.
  • The #1268 pass-13 extras give nothing on this card. H11 also flickered the player's arms and shirt black now and then. That flicker later showed up without them as well (see below), so it's not proven to be theirs.
  • The RT shaders cost about 10-15%. Running them did not fix the one picture problem we hoped they would (below).
  • None of the three levers in H14 helped on this tree. With SUBMIT_FRAMES=2 the submission-lock wait went from 16.8 to 21.9 ms, and guard-lock waits from 52 to 66 ms.

Where our frame is now (H12, 16.3 fps, 61 ms, 5.7k draws):

  • 41,935 list calls, 188 ms over 8 recording threads. That's about 4.5 µs a call, against your 2.9.
  • The submitting thread spends 22.6 ms in submissions plus 21.5 ms waiting for the submission lock.
  • The write trackers' guard lock costs 57 ms a frame over all threads. Write faults run at 468-590 a frame (titlewrite.rs: about 5 µs a protection change, serialized).
  • 416 watches a frame, 21 ms. They check 10.2 GB, of which 10.16 GB is unchanged. The title's 174 MB heap alone is refreshed 11.5 times a frame (2.1 GB).

Next we test VICTORY_COPY_BESIDE=1 + VICTORY_STORE_BESIDE=1 against the guard faults.

Already in this tree, so no need to port: fx#1237's per-thread lookup memo (QUICK_FIND), Marvisak#2821's RwLocks and the skip set.

Ported on our branch fork-hybrid-rec, numbers pending:

  • DexNom#27: no lock per draw-state call;
  • BURY_ASIDE, from #1224;
  • Marvisak#3275: views looked up without the registry lock.

Picture problems still open on this tree, in case anyone has seen them:

  • Frosty white sheen on glossy surfaces indoors in daylight. It covers varnished floors, phone glass and vitrines. At dusk it nearly goes away. It's the same with ray tracing on or off, and with AMBIENT_AIR at 0.1, 0.4 or 0.8.
  • Shadows pop in and out with the camera angle.
  • The player's arms and shirt go black in shadow, flickering. It also happened without CARD_BUFFERS_MIN_KB=64.
  • Black round blots on the asphalt.

AI-assisted (Claude Code, Claude Opus 5.5); numbers and log lines only, no game data.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7205216177 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7205216177). Originally posted by [oz-stanislav-zhukov](https://github.com/oz-stanislav-zhukov) on 2026-11-26T23:03:28Z. --- Your recipe, reproduced on a weaker card and a different tree, with what did and did not carry over. One run per row, diag build, Series S at 720p internal. Numbers come from our own in-game stats window and the run logs. **Setup.** RTX 5060 Ti 16 GB, i7-14700KF, 64 GB, Windows 10 22H2 with the Agility SDK. The tree is Proudnoob4 `nvidia-hybrid-v2` `f3c8a1f3` plus two commits of ours: - an LDS fallback that brings the trees back; details in #1319; - a stats window. The warm-up runs `victory warm --used` with the run's settings, so nothing compiles in game (`made 0`, about 4,100 pipelines from disk). | run | change | fps (draws/frame) | waits for GPU | |---|---|---|---| | H6 | `-Quality` (RELAY=1, CARD_STEPS=0) | 8 (11k), 10-12 (3-5k) | 40-60 ms | | **H10** | + `RELAY=2 CARD_STEPS=1 TEXTURE_NO_WAIT=0 CARD_BUFFERS_MIN_KB=64 SKIP_WC_BACK=1` | **10 (11k), 13-17 (3-5k), 20-21 (2-2.4k)**; log median 13.7 | **4-6 ms** | | H11 | H10 + `CARD_BUFFERS_MB=2048 FETCH_CHECK=1` (#1268 pass 13) | same as H10 | - | | H12 | H10 without ray tracing (rt_off list skipped again) | 14.6 at 6.8k (H10: 12.9 at 7.1k) | - | | H14 | H12 + `VIEW_BYTES=0 SUBMIT_FRAMES=2 LAND_ASIDE=1` | median 14.1 vs 13.9 | - | What we take from it: - **The recipe carries over.** The card wait collapses here too, and frames are 25-75% faster depending on the scene. - **The #1268 pass-13 extras give nothing on this card.** H11 also flickered the player's arms and shirt black now and then. That flicker later showed up without them as well (see below), so it's not proven to be theirs. - **The RT shaders cost about 10-15%.** Running them did not fix the one picture problem we hoped they would (below). - **None of the three levers in H14 helped on this tree.** With `SUBMIT_FRAMES=2` the submission-lock wait went from 16.8 to 21.9 ms, and guard-lock waits from 52 to 66 ms. **Where our frame is now** (H12, 16.3 fps, 61 ms, 5.7k draws): - 41,935 list calls, 188 ms over 8 recording threads. That's about 4.5 µs a call, against your 2.9. - The submitting thread spends 22.6 ms in submissions plus **21.5 ms waiting for the submission lock**. - The write trackers' guard lock costs **57 ms** a frame over all threads. Write faults run at 468-590 a frame (`titlewrite.rs`: about 5 µs a protection change, serialized). - 416 watches a frame, 21 ms. They check 10.2 GB, of which 10.16 GB is unchanged. The title's 174 MB heap alone is refreshed 11.5 times a frame (2.1 GB). Next we test `VICTORY_COPY_BESIDE=1` + `VICTORY_STORE_BESIDE=1` against the guard faults. Already in this tree, so no need to port: fx#1237's per-thread lookup memo (`QUICK_FIND`), Marvisak#2821's RwLocks and the skip set. Ported on our branch [`fork-hybrid-rec`](https://github.com/oz-stanislav-zhukov/victory-fork/tree/fork-hybrid-rec), numbers pending: - DexNom#27: no lock per draw-state call; - `BURY_ASIDE`, from #1224; - Marvisak#3275: views looked up without the registry lock. Picture problems still open on this tree, in case anyone has seen them: - **Frosty white sheen on glossy surfaces indoors in daylight.** It covers varnished floors, phone glass and vitrines. At dusk it nearly goes away. It's the same with ray tracing on or off, and with `AMBIENT_AIR` at 0.1, 0.4 or 0.8. - **Shadows pop in and out with the camera angle.** - **The player's arms and shirt go black in shadow, flickering.** It also happened without `CARD_BUFFERS_MIN_KB=64`. - **Black round blots on the asphalt.** AI-assisted (Claude Code, Claude Opus 5.5); numbers and log lines only, no game data.
LeonardoS11 commented 2026-11-27 00:05:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by LeonardoS11 on 2026-11-27T00:05:38Z.


One more correction to the table in my first comment: the render-scale rows did not measure a render scale. On our game build the loader reports not patched, the title's bytes there are not the ones expected (another build?) site=0x28f1e78 for the render-scale hook, in every run (two machines, ten runs); only the "own upscaler minimum" and "maximum = minimum" hooks apply. So the VICTORY_RENDER_SCALE=0.6667 rows ran at the title's default scale, like the full-resolution rows, which is why they match (and maybe why 1.0 ended in 0x80000003). The conclusion stands, since both trees ran at the same scale; but the render-scale hook may want a more tolerant byte pattern. We will look at what differs at that site and report.

Written with Claude Code.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206163875 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7206163875). Originally posted by [LeonardoS11](https://github.com/LeonardoS11) on 2026-11-27T00:05:38Z. --- One more correction to the table in my first comment: the render-scale rows did not measure a render scale. On our game build the loader reports `not patched, the title's bytes there are not the ones expected (another build?) site=0x28f1e78` for the render-scale hook, in every run (two machines, ten runs); only the "own upscaler minimum" and "maximum = minimum" hooks apply. So the `VICTORY_RENDER_SCALE=0.6667` rows ran at the title's default scale, like the full-resolution rows, which is why they match (and maybe why `1.0` ended in `0x80000003`). The conclusion stands, since both trees ran at the same scale; but the render-scale hook may want a more tolerant byte pattern. We will look at what differs at that site and report. Written with Claude Code.
LeonardoS11 commented 2026-11-27 00:06:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by LeonardoS11 on 2026-11-27T00:06:27Z.


Please disregard my previous comment; I was wrong, sorry. The render-scale hook does apply. The "not patched … site=0x28f1e78" line comes from a second patch path (victory_loader::resolution), whose site is the whole mov dword [rcx+90h], imm32 at +0x28f1e78; its immediate at +0x28f1e7e is exactly what the hooks already rewrote, so that path finds other bytes and logs. It is noise, not a failure.

Why the two rows matched anyway: VICTORY_RENDER_SCALE=0.6667 equals the Series S own upscaler's default minimum (the immediate is ab aa 2a 3f), and without the variable the title's dynamic scale already sits at that minimum at 13-16 fps. So both rows in my first comment ran at about 2/3, and the row I called "full resolution" is the title's dynamic scale, not native. The comparison with our tree is unaffected (same scale on both sides). We will try 0.5 on a card-bound machine.

Written with Claude Code.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206175911 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7206175911). Originally posted by [LeonardoS11](https://github.com/LeonardoS11) on 2026-11-27T00:06:27Z. --- Please disregard my previous comment; I was wrong, sorry. The render-scale hook does apply. The "not patched … site=0x28f1e78" line comes from a second patch path (`victory_loader::resolution`), whose site is the whole `mov dword [rcx+90h], imm32` at +0x28f1e78; its immediate at +0x28f1e7e is exactly what the hooks already rewrote, so that path finds other bytes and logs. It is noise, not a failure. Why the two rows matched anyway: `VICTORY_RENDER_SCALE=0.6667` equals the Series S own upscaler's default minimum (the immediate is `ab aa 2a 3f`), and without the variable the title's dynamic scale already sits at that minimum at 13-16 fps. So both rows in my first comment ran at about 2/3, and the row I called "full resolution" is the title's dynamic scale, not native. The comparison with our tree is unaffected (same scale on both sides). We will try 0.5 on a card-bound machine. Written with Claude Code.
KainanP commented 2026-11-27 15:14:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by KainanP on 2026-11-27T15:14:04Z.


Synthetic numbers for question 2 (tables across lists): open PRs A/B'd, plus a new opt-in PR.

Bench. pipeline::list_bench::table_bench (KainanP/victory-fork bench/desc-tables, #[ignore]) is our VIctory list-call bench's draw sequence, ported to the fork. Each draw binds a material table: one constant buffer view and five textures the title placed in memory. Each table sits at its own place in the title's heap, so every one is made afresh. A list has 2,000 tables, half of them repeating an earlier one's contents. 1 and 5 recording threads. The cells are ns per draw (the table plus the root CBV, constants, index buffer and draw), medians of 7-9 interleaved processes. RTX 4060 Laptop. It times recording only, not submission. A headless Chrome from other work was using about 2 cores.

On this bench, a table made afresh costs about 7.5 µs on 1 thread and 9-12 µs per thread on 5, the same order as your 12-14 µs. In a diagnostics build, a 6-slot table splits as follows:

  • the five texture views made: about 10 µs (2 µs each);
  • entries made readable (readable: the upload check and state of each texture, per list): about 6 µs;
  • view lookups: about 1 µs;
  • the constant view: 0.6 µs;
  • dynamic slots: 0.25 µs.

This matches LeonardoS11's reading that the cost is "re-creating every other view of a table that holds a constant buffer, not the constant buffer itself".

PR what it targets recording, 1 / 5 threads, vs its base correctness
#1316 (switch on) CBV snapshot fills 10,435 / 16,954 vs 10,321 / 16,054: neutral own tests + our view check pass
#1455 (switch on) CBV upload fills 10,216 / 15,257 vs 10,244 / 14,332: neutral own tests + hardware replay =0/=1 + our view check pass
#1192 table bookkeeping 10,025 / 14,668 vs 10,302 / 15,319: −3 / −4 %, within noise own tests + our view check pass
#1443 scratch buffers in bind 10,075 / 14,289 vs 10,244 / 14,332: neutral our view check passes
#1484 (new, VICTORY_TABLE_VIEW_CACHE=1) texture views of tables made afresh 9,534 / 14,237 vs 11,126 / 17,459: −14 / −18 %; the table part −20 / −27 % new tests, below

#1316 and #1455 save work at submission (fills), which this bench does not see. They are not wrong; they work on the smaller part. Per-PR details are in each PR's comment.

#1484 makes each texture view once into a heap that shaders do not see, keyed by its record, and copies it into the table's slot. An entry is reused only while the texture's host copy (identified by its shared allocation, held through a Weak, so idle copies can still be let go) and its first level shown (levels on demand) are the ones it was made from. Its test fails if that comparison is removed. Every texture slot of every table made is also compared with the descriptor the host makes of its view, with the cache off and on. It is off by default.

@Zignixx @LeonardoS11, if you have a run to spare: VICTORY_TABLE_VIEW_CACHE=0 against =1 on the same scene, with the TABLES diagnostics line and the recording threads' time. Also check that streamed textures do not go stale. The constants-out-of-descriptors route you plan would let whole tables repeat. This PR is independent of it and composes with it.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7221799073 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1379#issuecomment-7221799073). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-27T15:14:04Z. --- Synthetic numbers for question 2 (tables across lists): open PRs A/B'd, plus a new opt-in PR. **Bench.** `pipeline::list_bench::table_bench` ([KainanP/victory-fork `bench/desc-tables`](https://github.com/KainanP/victory-fork/commit/8099f728afae8ed80ac4deff2f471ae3683aa589), `#[ignore]`) is our VIctory list-call bench's draw sequence, ported to the fork. Each draw binds a material table: one constant buffer view and five textures the title placed in memory. Each table sits at its own place in the title's heap, so every one is made afresh. A list has 2,000 tables, half of them repeating an earlier one's contents. 1 and 5 recording threads. The cells are ns per draw (the table plus the root CBV, constants, index buffer and draw), medians of 7-9 interleaved processes. RTX 4060 Laptop. It times recording only, not submission. A headless Chrome from other work was using about 2 cores. On this bench, a table made afresh costs about 7.5 µs on 1 thread and 9-12 µs per thread on 5, the same order as your 12-14 µs. In a diagnostics build, a 6-slot table splits as follows: - the five texture views made: about 10 µs (2 µs each); - entries made readable (`readable`: the upload check and state of each texture, per list): about 6 µs; - view lookups: about 1 µs; - the constant view: 0.6 µs; - dynamic slots: 0.25 µs. This matches LeonardoS11's reading that the cost is "re-creating every other view of a table that holds a constant buffer, not the constant buffer itself". | PR | what it targets | recording, 1 / 5 threads, vs its base | correctness | |---|---|---|---| | #1316 (switch on) | CBV snapshot fills | 10,435 / 16,954 vs 10,321 / 16,054: neutral | own tests + our view check pass | | #1455 (switch on) | CBV upload fills | 10,216 / 15,257 vs 10,244 / 14,332: neutral | own tests + hardware replay `=0`/`=1` + our view check pass | | #1192 | table bookkeeping | 10,025 / 14,668 vs 10,302 / 15,319: −3 / −4 %, within noise | own tests + our view check pass | | #1443 | scratch buffers in `bind` | 10,075 / 14,289 vs 10,244 / 14,332: neutral | our view check passes | | **#1484** (new, `VICTORY_TABLE_VIEW_CACHE=1`) | texture views of tables made afresh | **9,534 / 14,237 vs 11,126 / 17,459: −14 / −18 %**; the table part −20 / −27 % | new tests, below | #1316 and #1455 save work at submission (fills), which this bench does not see. They are not wrong; they work on the smaller part. Per-PR details are in each PR's comment. **#1484** makes each texture view once into a heap that shaders do not see, keyed by its record, and copies it into the table's slot. An entry is reused only while the texture's host copy (identified by its shared allocation, held through a `Weak`, so idle copies can still be let go) and its first level shown (levels on demand) are the ones it was made from. Its test fails if that comparison is removed. Every texture slot of every table made is also compared with the descriptor the host makes of its view, with the cache off and on. It is off by default. @Zignixx @LeonardoS11, if you have a run to spare: `VICTORY_TABLE_VIEW_CACHE=0` against `=1` on the same scene, with the `TABLES` diagnostics line and the recording threads' time. Also check that streamed textures do not go stale. The constants-out-of-descriptors route you plan would let whole tables repeat. This PR is independent of it and composes with it. _AI use: Claude Code (Claude Opus 5.5)._
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
fxceless/victory-fork#1379
No description provided.