A week of measurements on a 12 GB NVIDIA card at Series X: where the frame goes (383-410 ms, the 226-326 ms settle for a fill of upload memory against a 174 MB view), five changes that shortened work the frame does not wait on (shadow masks, pipeline groups, striped locks, DLSS, the title's own upscaler), two faults found (a Streamline folder without sl.dlss.dll, a MiB count that wrapped), and the one lever left (two frames in flight). (cherry picked from commit 6fe8a31041a35c803e7f129f2693201431448956)
11 KiB
What was learned on the RX 7900 XTX (2026-11-23 to 2026-11-25)
One PC: i9-12900K (8 fast cores, 8 slow ones, 24 threads), 64 GB, Radeon RX 7900 XTX 24 GB, Windows 11, 1440p, Series X profile. Figures are of diagnostics builds with a screenshot a second. Scenes are not the same from run to run, so read differences under about 5 % as nothing. What a switch does is in the comment where it is read.
Where a frame goes
Median of whole runs, same part of the prologue: 280 ms, then 124, 103, 75, now 46-65. On the water (first boat mission) 46-53 ms.
The title needs 33 ms. Of a 55 ms frame on the water:
- The thread that prepares submissions: 48 ms. It is the wall. Steps of the lists 18 (refreshes of host copies 10), steps done on the card 7, waiting for descriptor records 6, asking the write watch 5, copies in the card's memory 4, the title's bytes under shader writes 4.
- The card: about 41 ms busy, the next wall.
- List calls: 36,000 a frame, 230 ms of work spread over eight threads. In a street chase 67,000 calls and 430 ms.
- Descriptor records copied as plain bytes: 400,000 slots looked at, 40,000 mirrored a frame, most of them empty.
- Landing what shaders wrote: 16 MB a frame put as dwords, on a thread of its own.
The one idea behind most of it
On the console the CPU and the graphics processor share memory. Here they do not, so everything one writes and the other reads must be noticed and moved. Every large cost is one of four: noticing writes of the title (write watch, guards), noticing writes of shaders (hashes on the card, compares on the CPU), moving them, and waiting until an order is safe. Gains came from making each of them narrower (dwords, not pages), wider (threads, AVX2) or later (on the card, behind the frame), in that order of size:
| What | Frame before | after |
|---|---|---|
| Descriptor records of draws' tables left to the draws | 280 ms | about 124 |
| Our hash passes over card copies, 64 threads a piece | card 79 ms | 66 |
| Preparing on a thread of its own, refreshes and records spread | 103 | 75 |
List calls written down and translated by eight threads (VICTORY_THIN) |
75 | 68 |
| Submissions joined, card steps, textures sent ahead | 68 | about 63 |
| Title bytes under shader writes compared with AVX2 on six threads | 14 ms of it | 4-7 |
| Stores into guarded memory looked at first, fewer guards reset | 69 ms of threads' time | about 6 |
(Each figure is from the run in which it was measured; they overlap and do not add up.)
Faults found, and what they were
- Boats sank, the sea plane went under. The ocean's height and displacement maps are
textures that compute passes write and the title's physics sample on the CPU. They were
never brought back to title memory. Fixed by Geckomacabre's read-back as merged in
fxceless/victory-fork f5c03f3b; on by default here (
VICTORY_TEXTURE_BACK=0: off). With it the boat stays up through a whole run; without it sank in every one. - A device loss about every 16 minutes: a page fault inside a texture made in the same
tenth of a second. A slot showed it before its upload had run.
VICTORY_SHOW_AFTER=1; none in the sessions since (likely fixed, not proven). - A rare lost write (6 of 200 runs of a stress test): a view was mapped between our look at its guards and our lock, and views were opened one after another. None in 603 runs after.
- Blocky patches: indirect dispatches cut at 65,535 groups.
- Square holes and dashed edges in shadows: pixel shaders that read their quad's neighbours with wave reads; on AMD helper lanes take no part in them.
- Cube reflections too blurred, wrong materials: DXIL's
Logis base 2, and normalized buffer codes were one step off. - Every ray missed: the dispatch flag that says counts are threads, not groups.
Measured and not worth it
- Unordered early pipelines for everything (AMD's compiler crashed).
- Series S profile, smaller textures, a second drawing queue,
ASYNC_SUBMIToff. - Mapping pages on sixteen threads: no more pages mapped, frames longer.
- Scalar buffer loads four dwords a call (
VICTORY_SHADER_OPT=127): no gain on this card. - Wave sizes, fused multiply-adds, fast reciprocals, raw picked buffers, leaving out
barriers: nothing to 0.1 ms each. Exact RDNA float rules (
VICTORY_RDNA_FLOAT): 0.8 ms. - Running the console's shader code natively on the card: the Windows driver takes no raw code, the two generations differ, and a Vulkan host layer ends at the same compiler. What is left to gain from shader code was guessed at under 1 ms.
- An on-screen panel of numbers (
VICTORY_PANEL): it helps finding where a frame goes but costs some, so it is off and F3 shows it.
What is next
- The preparing thread: split what one submission does over two threads in a row; ask for the next submission while this one is sent; view the card's own buffers where fills copy them now.
- The card: small buffers' copies in its own memory (
VICTORY_CARD_BUFFERS_MIN_KB=64, after fxceless c36971b2; not measured here yet), and the passes that run for nothing without rays. - Stalls: 270-660 s of a session were full of frames over 200 ms, almost all while new
pipelines were made.
victory warm, and a quarter of the workers for the slow ones. - Outdoor flicker: suspected to be one bad indirect record that uses up its list's
budget, so that every later draw of it is empty. The log's frame line counts them;
VICTORY_INDIRECT_REST=0is the experiment. - Memory, 40-46 GB private: lists' allocators 9 GB, windows 7, uploads 4
(
VICTORY_MEMORY_MAP=1lists it).
The other repositories, compared
Read up to 2026-11-25: Marvisak/VIctory, fxceless/victory-fork, DexNom/VIctory, Belobug/VIctory-Belobug-AMD, FQY55kai/ZJOU-VICTORY. What was taken is in the history, each commit naming its source. In short:
- Marvisak's commits hardly apply any more; nearly all of what they fix is here, often another way. Taken: nearest normalized codes, d16 views, shader model flags.
- fxceless: the base. Newest taken: texture read-back, small buffers on the card, hashes over a buffer's own bytes.
- DexNom: thread counts of ray dispatches, cube gradients, joined sparse ranges.
- Belobug: pipeline workers for screen passes, the ambient stand-in's idea, pipeline and constant buffer bookkeeping (romainhedouin).
- ZJOU: render targets not set again; some shader corrections are being looked at.
What was learned on an RTX 5070 Ti Laptop (2026-11-27 to 2026-11-28)
One PC: i9-14900HX, 32 GB, RTX 5070 Ti Laptop 12 GB, Windows 11 26100, Series X profile
(and Series S for the DLSS runs), release and diagnostics builds. Windows are aligned by
index and kept only where draws/frame agrees within 5 %, and medians are used, never
means — the same run's own fps average has read 7.76 where its median read 2.44.
Where a frame goes here
Series X, in the world: 383-410 ms median. Of it, preparing on the submitting thread
161-375 ms, the card 177-290 ms, copying back 57-85 ms, and the three overlap.
Inside preparing, the largest single item is a settle waiting for the card — 226-326 ms
— and a microsecond breakdown by what was read (added while measuring this) shows it is
all one thing: a fill of upload memory. The blame line then names the blocker: a fill of
0x20 bytes waits for shader writes declared over 0x11600000+0xae00000 — 174 MB. That
range is the view's own extent (descriptor/host.rs buffer_copy), not an over-wide guess,
so tightening it is not available; VICTORY_ROOT_UAV_MB only bounds the root path and
changes nothing here (310.5 / 334.5 / 341.8 ms at default / 4 MB / 1 MB).
card_steps.rs describes the same phenomenon from the AMD side (a 480-byte constant buffer
waiting on eleven skinning dispatches that write through one 174 MB heap view).
VICTORY_FILL_TITLE=1 moves the wait — read-wait 310 -> 226 ms and preparing 236 -> 117 ms
— but the frame median stays at 404 ms: the buckets trade places.
Five things that did not move this frame, and the numbers
Each of these shortens work the frame does not wait on here. Reporting them so the next person does not spend the days again:
| What was tried | What it changed | Frame |
|---|---|---|
| Leaving both shadow masks out | GPU -44 ms, fps 5.02 -> 6.46 | interiors and hair go dark, so not a fix |
| Halving the non-hair mask's dispatch | nothing measurable | the switch was not reaching that pass (indirect), retracted |
Another branch's pipeline group (-Fast) |
GPU -21 % (389 -> 308 ms) | 2.40 -> 2.40 fps |
| Striping the mapping lock, 4 stripes | GPU -24 %, and submit lock wait 202 -> 23 ms | 2.44 -> 2.36 fps; the win is only in loading frames: 499 -> 258 ms |
| DLSS Super Resolution, once the files were complete | 1.00 upscalings a frame, 375 done, none failed | 400 ms against 399 without it |
The title's own upscaler set lower (fsrQuality 2 -> 4) |
internal resolution clearly lower | 406 ms against 400 |
The last two make the point best: lowering what the card renders changes nothing, so
this frame is not limited by pixel work, and the on the GPU figure is not pure execution
time either — it moves with the queue.
Faults found
- No DLSS at all, for days, without a word.
victory.exe upscaler-checksaid "DLSS NOT supported ... feature missing" against a Streamline folder that hadsl.dlss_g.dllbut nosl.dlss.dllornvngx_dlss.dll.victory.exe get-dlssfixed it and the same check then said "DLSS supported, frame generation supported". Worth having the check say which file is missing, not just which feature. - A MiB count that wrapped.
VICTORY_UPLOAD_QUEUEparsed a MiB count withmebibytes << 20, so a large enough setting became a small gate.checked_mulnow, with a test, found by ANDREANIADS reading the pull request. - A pad that was never there. The title's XInput slot asked the system
XInputGetState, which answers 1167 on all four slots for a GameInput synthetic pad; loadingMicrosoft GameInput\x64\XInput1_3.dllfirst makes the pad appear.
The one lever left
Since neither GPU work nor internal resolution moves the frame, what is left is the
submission pipeline itself: every submission is prepared, sent, waited for and copied back
before the next is looked at (VICTORY_LATE_WAIT off by default, and its two stages moved
preparing 105 -> 69 ms while the frame stayed put). Two frames in flight end to end —
settle, the relay that lands flights, copied_read, the queue behind — is the next thing
worth measuring, and the only one of these that can plausibly reach 15 fps at Series X.