RTX 4070 12 GB: 4-5 fps in world (copies 120 MB up / 41 MB back per frame), 6 compute pipelines refused (wave64 on a wave32 card), present stuck at 3840x2160 #833

Open
opened 2026-11-26 03:52:07 +00:00 by github-bot · 6 comments
Owner

@⁠CQ187901 on GitHub · 2026-11-25 09:50 UTC · original

Hardware: i7-13700KF, 32 GB, RTX 4070 12 GB (driver 621.24), Win 11 build 26300, page file 64 GB on E:.

Build: fxceless/victory-fork main at 2026-11-25 ~05:44 UTC (before 9376fd6 / a26859f / 8dd30ab), release, VICTORY_RELAY=2. Warm-up via translate shaders.rpf --warm all --jobs 24 (25,889 shaders, 3,644 translated, 291 refused, cache 815 MB).

Getting into the world works: prologue cutscene renders, textures and subtitles are correct, 5,000-7,000 draws/frame, no device loss, crashes.log empty.

Frame rate in the world (steady state, 1920x1080 window):

  • VICTORY_RELAY=2: 181-281 ms/frame (4-5 fps) - best
  • 356-452 ms without it
  • + VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024: worse (364-550 ms)
  • + VICTORY_LEVELS_ON_DEMAND=1: 208-281 ms at first, but once the area streams it becomes texture-bound: 267-628 ms preparing textures (308-606 MB/frame)

Per-frame breakdown at 181 ms / 5,300 draws:
preparing 84 ms (copies 42 ms / 120 MB, textures 9 MB), on the GPU 62 ms, copying back 114 ms / 41 MB
So ~156 ms of 181 ms is title-buffer traffic, GPU is 21% busy. Frame time scales with draws at ~33 us/draw.

VICTORY_CARD_BUFFERS_MB=2048 made it worse (copies 154-186 MB, copy-back 62-90 MB): VRAM is the binding constraint, more residency evicts textures.

Resolution cannot be lowered from the host: VICTORY_DISPLAY_MODE=1280x720 is reported to the title (log: display mode reported width=1280 height=720) but the title still presents 3840x2160 (display_size() feeds the mode list only; presenter() takes the title's swap-chain texture desc, host.rs:6014). The title's settings container (SettingsProfileSettings, hashed-key JSON) holds no pixel values, storage/settings/settings.xml is not read, and the in-game menu has no resolution entry (console title, fixed output).

Descriptors: the debug layer reports the title asking for 2,097,152 shader-visible descriptors against the 1,000,000 limit (CreateDescriptorHeap id=645), i.e. the same clamp as #82/portable views.

Compute: every frame 6 distinct compute pipelines are refused with E_INVALIDARG (0x80070057) - make::missing reports "refused", no shader translation failures. With VICTORY_D3D12_DEBUG=1 the debug layer names the cause:
"shader wants wave lane count of 64 but maximum wave lane count for device is 32"
These are the morph/skinning class of dispatches, so character facial animation never runs. Skipping them costs 1 draw each per frame but the missing animation stays missing.

Questions:

  1. Are the 9376fd6 / a26859f processor-side changes expected to move the 200 ms floor substantially on a 12 GB card, or is the remaining cost the per-frame 120 MB up + 41 MB back (which no switch touches)?
  2. For the wave64 compute: is VICTORY_WAVE_WIDE=1 supposed to make those PS0s valid on a wave32 device, or is a translated-to-wave32 path still missing? I can test either way if you tell me which is intended.
  3. Is there a supported way to present below the title's own backbuffer size (scaled blit in the presenter), or is a smaller output simply not supported yet?

Happy to run any A/B you want on this machine and report numbers.

**@⁠CQ187901** on GitHub · 2026-11-25 09:50 UTC · [original](https://github.com/fxceless/victory-fork/issues/833) Hardware: i7-13700KF, 32 GB, RTX 4070 12 GB (driver 621.24), Win 11 build 26300, page file 64 GB on E:. Build: fxceless/victory-fork main at 2026-11-25 ~05:44 UTC (before 9376fd6 / a26859f / 8dd30ab), release, `VICTORY_RELAY=2`. Warm-up via `translate shaders.rpf --warm all --jobs 24` (25,889 shaders, 3,644 translated, 291 refused, cache 815 MB). Getting into the world works: prologue cutscene renders, textures and subtitles are correct, 5,000-7,000 draws/frame, no device loss, crashes.log empty. Frame rate in the world (steady state, 1920x1080 window): - `VICTORY_RELAY=2`: 181-281 ms/frame (4-5 fps) - best - 356-452 ms without it - `+ VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024`: worse (364-550 ms) - `+ VICTORY_LEVELS_ON_DEMAND=1`: 208-281 ms at first, but once the area streams it becomes texture-bound: 267-628 ms preparing textures (308-606 MB/frame) Per-frame breakdown at 181 ms / 5,300 draws: preparing 84 ms (copies 42 ms / 120 MB, textures 9 MB), on the GPU 62 ms, copying back 114 ms / 41 MB So ~156 ms of 181 ms is title-buffer traffic, GPU is 21% busy. Frame time scales with draws at ~33 us/draw. `VICTORY_CARD_BUFFERS_MB=2048` made it worse (copies 154-186 MB, copy-back 62-90 MB): VRAM is the binding constraint, more residency evicts textures. Resolution cannot be lowered from the host: `VICTORY_DISPLAY_MODE=1280x720` is reported to the title (log: display mode reported width=1280 height=720) but the title still presents 3840x2160 (`display_size()` feeds the mode list only; `presenter()` takes the title's swap-chain texture desc, host.rs:6014). The title's settings container (SettingsProfileSettings, hashed-key JSON) holds no pixel values, `storage/settings/settings.xml` is not read, and the in-game menu has no resolution entry (console title, fixed output). Descriptors: the debug layer reports the title asking for 2,097,152 shader-visible descriptors against the 1,000,000 limit (`CreateDescriptorHeap` id=645), i.e. the same clamp as #82/portable views. Compute: every frame 6 distinct compute pipelines are refused with E_INVALIDARG (0x80070057) - `make::missing` reports "refused", no shader translation failures. With `VICTORY_D3D12_DEBUG=1` the debug layer names the cause: "shader wants wave lane count of 64 but maximum wave lane count for device is 32" These are the morph/skinning class of dispatches, so character facial animation never runs. Skipping them costs 1 draw each per frame but the missing animation stays missing. Questions: 1. Are the 9376fd6 / a26859f processor-side changes expected to move the 200 ms floor substantially on a 12 GB card, or is the remaining cost the per-frame 120 MB up + 41 MB back (which no switch touches)? 2. For the wave64 compute: is `VICTORY_WAVE_WIDE=1` supposed to make those PS0s valid on a wave32 device, or is a translated-to-wave32 path still missing? I can test either way if you tell me which is intended. 3. Is there a supported way to present below the title's own backbuffer size (scaled blit in the presenter), or is a smaller output simply not supported yet? Happy to run any A/B you want on this machine and report numbers.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:07 +00:00
Author
Owner

@⁠HLVM04 on GitHub · 2026-11-25 10:08 UTC · original

Some data on questions 1 and 2 from an RTX 5070 Ti 16 GB (32-lane only, driver 616.64, Ryzen 7 9800X3D, Windows 11). Frame-line medians and means after the first 60 s in the world, one run each, so the scene is not identical between rows.

tree, profile median frame means: preparing / on the GPU / copying back
9376fd6, Series X, VICTORY_CARD_WINDOWS_MB=4096 258 ms (3.4–4.4 fps) 138 / 88 / 145 ms
9376fd6 + #798 #783 #799 #780 #770 #827, Series S 149 ms 90 / 43 / 69 ms
  1. On this card 9376fd6 alone stayed above 200 ms in the world. With the second stack the card's own time is the smallest of the three columns (they overlap, so they don't add up to the frame): the processor side, preparing and the copy-back, is what's left. On the same tree, the Series S profile with #798 alone was 169 ms against 257 ms on Series X.
  2. At 9376fd6 7 distinct compute pipelines are refused here with E_INVALIDARG for WaveSize 64. Forcing the remaining ones into the wave-wide form built 4 of the 7, but cost fps and didn't visibly reduce artifacts. #799's loose-LDS fallback builds 5 of the 7 (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764, 6b82bc7d22016cb5); with #770 on top, 2 are still refused.
**@⁠HLVM04** on GitHub · 2026-11-25 10:08 UTC · [original](https://github.com/fxceless/victory-fork/issues/833#issuecomment-7159281310) Some data on questions 1 and 2 from an RTX 5070 Ti 16 GB (32-lane only, driver 616.64, Ryzen 7 9800X3D, Windows 11). Frame-line medians and means after the first 60 s in the world, one run each, so the scene is not identical between rows. | tree, profile | median frame | means: preparing / on the GPU / copying back | |---|---:|---| | `9376fd6`, Series X, `VICTORY_CARD_WINDOWS_MB=4096` | 258 ms (3.4–4.4 fps) | 138 / 88 / 145 ms | | `9376fd6` + #798 #783 #799 #780 #770 #827, Series S | 149 ms | 90 / 43 / 69 ms | 1. On this card `9376fd6` alone stayed above 200 ms in the world. With the second stack the card's own time is the smallest of the three columns (they overlap, so they don't add up to the frame): the processor side, preparing and the copy-back, is what's left. On the same tree, the Series S profile with #798 alone was 169 ms against 257 ms on Series X. 2. At `9376fd6` 7 distinct compute pipelines are refused here with E_INVALIDARG for WaveSize 64. Forcing the remaining ones into the wave-wide form built 4 of the 7, but cost fps and didn't visibly reduce artifacts. #799's loose-LDS fallback builds 5 of the 7 (`02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`, `6b82bc7d22016cb5`); with #770 on top, 2 are still refused.
Author
Owner

@⁠xunbreakablex on GitHub · 2026-11-25 11:04 UTC · original

Needs human attention: one run, one machine, and the mapping below is "bound as a UAV", not "pixels written"; I have not shown that these passes cause the picture problem described at the end, only that they are good candidates.

AI-assisted (Claude). RTX 4070 (100 W power limit, core at most ~2300 MHz), Ryzen 5 5600 held at 3.95 GHz, Windows 11, driver 621.01, main at 9376fd6 plus a diagnostic of mine (not pushed; a counter-only patch, no game content), default settings, warm shader cache, ~400 s with the world reached, no device loss.

Your six refused compute pipelines are the same hashes I get here (02384a60, 2cc4c197, 2da4beb3, 369cbe90, plus 5dc3b25 and 6f225b64 early, and f133e35e that does not translate), so nothing new in the list. What I added is which render targets they write, and whether those targets are written by anything else. For every screen-sized (>= 1280x720) texture the diagnostic counts clears, draws, copies, and dispatches onto it through unordered views, run and not run, and flags a target with no clear in the window and dropped work onto it.

dropped dispatch reason screen-sized UAVs bound reads
2da4beb3 refused 2560x1440 and 1280x720 R11G11B10_FLOAT 2560x1440 R16G16B16A16_FLOAT, 2560x1440 depth
2cc4c197 refused 1280x720 R32_UINT two 2560x1440 textures
f133e35e not translated 2560x1440 R8_UNORM, 2560x1440 R8G8B8A8_UNORM 2560x1440 depth, a 1024x4096 D16
02384a60, 369cbe90 refused none (buffers only)

Those five textures are flagged in 51-54 of the 54 five-second windows: 0 clears, 0 draws, 0 copies; the only writers are compute dispatches, and per window e.g. the 2560x1440 R11G11B10_FLOAT got 160 dispatches that ran and 16 that did not (all "without a host pipeline"), the R8_UNORM 288 and 16. In the frame listings of 7 captured frames the dropped hashes appear only as DROPPED lines, never as run ones. So about one dispatch in eleven onto these targets is missing every frame, and nothing clears the target first.

Why I looked: in the world, moving characters show a half-transparent copy of the previous frame (a doubled head and hair on a person in consecutive captured frames; static scenery stays sharp), and depth of field looks wrong. 2da4beb3 reads an HDR colour texture and depth and writes a full-size and a half-size HDR target, which is the shape of a DoF/bloom/temporal pass; f133e35e reads depth and a shadow-map-sized texture and writes two full-size masks. If a pass is missing, whatever it would have overwritten keeps its earlier content, and a missing mask reads as 0. That fits what I see, but TAA or motion-vector history would give the same picture, so treat it as a lead.

Limits: only UAVs reached through root tables and the first range are seen (bindless or indexed access is not), and "bound" is not "written". Not tried: whether the picture changes when these pipelines are made to run. I can open the diagnostic as a PR (env VICTORY_CLEAR_DIAG=1, diagnostics builds only) if it is useful.

**@⁠xunbreakablex** on GitHub · 2026-11-25 11:04 UTC · [original](https://github.com/fxceless/victory-fork/issues/833#issuecomment-7160541503) **Needs human attention:** one run, one machine, and the mapping below is "bound as a UAV", not "pixels written"; I have not shown that these passes cause the picture problem described at the end, only that they are good candidates. AI-assisted (Claude). RTX 4070 (100 W power limit, core at most ~2300 MHz), Ryzen 5 5600 held at 3.95 GHz, Windows 11, driver 621.01, `main` at `9376fd6` plus a diagnostic of mine (not pushed; a counter-only patch, no game content), default settings, warm shader cache, ~400 s with the world reached, no device loss. Your six refused compute pipelines are the same hashes I get here (`02384a60`, `2cc4c197`, `2da4beb3`, `369cbe90`, plus `5dc3b25` and `6f225b64` early, and `f133e35e` that does not translate), so nothing new in the list. What I added is which render targets they write, and whether those targets are written by anything else. For every screen-sized (>= 1280x720) texture the diagnostic counts clears, draws, copies, and dispatches onto it through unordered views, run and not run, and flags a target with no clear in the window and dropped work onto it. | dropped dispatch | reason | screen-sized UAVs bound | reads | |---|---|---|---| | `2da4beb3` | refused | 2560x1440 and 1280x720 `R11G11B10_FLOAT` | 2560x1440 `R16G16B16A16_FLOAT`, 2560x1440 depth | | `2cc4c197` | refused | 1280x720 `R32_UINT` | two 2560x1440 textures | | `f133e35e` | not translated | 2560x1440 `R8_UNORM`, 2560x1440 `R8G8B8A8_UNORM` | 2560x1440 depth, a 1024x4096 `D16` | | `02384a60`, `369cbe90` | refused | none (buffers only) | | Those five textures are flagged in 51-54 of the 54 five-second windows: 0 clears, 0 draws, 0 copies; the only writers are compute dispatches, and per window e.g. the 2560x1440 `R11G11B10_FLOAT` got 160 dispatches that ran and 16 that did not (all "without a host pipeline"), the `R8_UNORM` 288 and 16. In the frame listings of 7 captured frames the dropped hashes appear only as DROPPED lines, never as run ones. So about one dispatch in eleven onto these targets is missing every frame, and nothing clears the target first. Why I looked: in the world, moving characters show a half-transparent copy of the previous frame (a doubled head and hair on a person in consecutive captured frames; static scenery stays sharp), and depth of field looks wrong. `2da4beb3` reads an HDR colour texture and depth and writes a full-size and a half-size HDR target, which is the shape of a DoF/bloom/temporal pass; `f133e35e` reads depth and a shadow-map-sized texture and writes two full-size masks. If a pass is missing, whatever it would have overwritten keeps its earlier content, and a missing mask reads as 0. That fits what I see, but TAA or motion-vector history would give the same picture, so treat it as a lead. Limits: only UAVs reached through root tables and the first range are seen (bindless or indexed access is not), and "bound" is not "written". Not tried: whether the picture changes when these pipelines are made to run. I can open the diagnostic as a PR (env `VICTORY_CLEAR_DIAG=1`, diagnostics builds only) if it is useful.
Author
Owner

@⁠xunbreakablex on GitHub · 2026-11-25 12:56 UTC · original

Correction to my comment above, and the offline check that followed (AI-assisted, Claude; same RTX 4070 machine, f85101b, no game run for this part).

  • I wrote that 2da4beb3 "is the shape of a DoF/bloom/temporal pass". It is not: per #799 and #419 it is the alpha-transmission prefilter (the glass/transparency blur chain), and HLVM04's bisect in #799 ties the glass pattern to it. So the full- and half-size R11G11B10_FLOAT targets it writes belong to the glass layer, not to depth of field. The ghosting lead in my comment should be read with that in mind: a missing glass prefilter pass explains a glass layer that looks wrong far better than doubled characters.
  • f133e35e, the one that does not translate ("a lane mask exchanged where not every lane runs"), is the tiled cascade-shadow pass (CS_ShadowRenderTiledCascades*, the same family as #779/#62), which fits the two full-size masks it writes and the dark shaded areas in #512.
  • Offline with VICTORY_HOST_MAX_WAVE=32: all six refused hashes (2cc4c197, 02384a60, 2da4beb3, 369cbe90, 5dc3b259, 6f225b64) translate and emit DXIL, but each really needs 64 lanes (VICTORY_WAVE_WHY: group sizes 64-256 with LDS shared across more than 32 lanes and read/written in the same lane-branch region; plus mask-as-data / v_mbcnt / v_readlane in some), so the host's wave32 pipeline refuses them with 0x80070057 every time. Nothing new against your title line, only the per-hash reason.
**@⁠xunbreakablex** on GitHub · 2026-11-25 12:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/833#issuecomment-7163077738) Correction to my comment above, and the offline check that followed (AI-assisted, Claude; same RTX 4070 machine, `f85101b`, no game run for this part). - I wrote that `2da4beb3` "is the shape of a DoF/bloom/temporal pass". It is not: per #799 and #419 it is the alpha-transmission prefilter (the glass/transparency blur chain), and HLVM04's bisect in #799 ties the glass pattern to it. So the full- and half-size `R11G11B10_FLOAT` targets it writes belong to the glass layer, not to depth of field. The ghosting lead in my comment should be read with that in mind: a missing glass prefilter pass explains a glass layer that looks wrong far better than doubled characters. - `f133e35e`, the one that does not translate ("a lane mask exchanged where not every lane runs"), is the tiled cascade-shadow pass (`CS_ShadowRenderTiledCascades*`, the same family as #779/#62), which fits the two full-size masks it writes and the dark shaded areas in #512. - Offline with `VICTORY_HOST_MAX_WAVE=32`: all six refused hashes (`2cc4c197`, `02384a60`, `2da4beb3`, `369cbe90`, `5dc3b259`, `6f225b64`) translate and emit DXIL, but each really needs 64 lanes (`VICTORY_WAVE_WHY`: group sizes 64-256 with LDS shared across more than 32 lanes and read/written in the same lane-branch region; plus mask-as-data / `v_mbcnt` / `v_readlane` in some), so the host's wave32 pipeline refuses them with 0x80070057 every time. Nothing new against your title line, only the per-hash reason.
Author
Owner

@⁠leondood1298 on GitHub · 2026-11-25 15:25 UTC · original

Measurements from one more 12 GB card, on a26859f. Numbers only, no fix.

Setup

build hub a26859f plus one local commit that is not in the hub (PR #559, at its default); --profile diag --features diagnostics
adapter RTX 4070 SUPER 12 GB, driver 621.24, 32-lane waves only
CPU / RAM / OS i7-12700K, 64 GB, Windows 11 build 26300
console profile the program's default (no --console)
scene the first shot after the prologue, camera at rest; scripted Enter presses until 150 s, nothing after; warm shader cache; the title presents 3840x2160
switches VICTORY_RELAY=1 VICTORY_CARD_ROOM_FOR_BUFFERS=1 in every launch, plus the one named in the row
launches 20, unattended, one after another; 240 s each unless said

Frame time of a launch = median of the window caption read every 5 s over its last 60 s. In the world from
56–81 s, standing in the shot from 122–157 s.

Frame time (ms a frame)

configuration launches median launch medians preparing / on the GPU / copying back
base 5 229.2 218.5 – 237.8 100.3 / 65.6 / 136.9
VICTORY_DISPLAY_MODE=1920x1080 3 227.9 225.9 – 228.1 95.7 / 66.3 / 138.3
VICTORY_DISPLAY_MODE=2560x1440 3 233.7 226.4 – 234.9 97.6 / 66.7 / 139.0
VICTORY_ROOT_UAV_MB=16 3 232.8 223.3 – 233.8 104.3 / 62.4 / 136.9
VICTORY_CARD_REHASH_RUNS=1 3 231.6 229.7 – 232.8 99.5 / 63.4 / 136.0
base, 900 s 2 217.2 and 219.3 95.5 / 62.1 / 131.8

4,570–5,060 draws a frame. A typical frame line of a base launch:
4.4 fps, 229.1 ms/frame (98.0 preparing: copies 57.2 ms 175.0 MB, textures 7.0 ms 24.7 MB; 67.4 on the GPU; 142.0 copying back 65.9 MB), 4843 draws/frame, dropped 355 without a host pipeline (0 being made) and 1 indirect.
A first launch with a cold shader cache (242.3 ms, 420 s) is not in the table.

  • Stability: 0 ERROR lines and no device removal in all 20 launches, the two 900 s ones included. Peaks:
    23.9–25.1 GB private, 10.3–10.6 GB on the card.
  • Spread with nothing changed: the five base launches differ by 19 ms (about ±4 %). All three switches stay
    inside that, so none of them changed the frame time here.
  • What the logs say each switch did:
    • Display mode: display mode reported to the title width=1920 height=1080, then
      presenting to a window width=3840 height=2160 format=28. The title still presents 3840x2160, as in question 3
      above, so these rows say nothing about what a smaller picture would cost.
    • VICTORY_ROOT_UAV_MB=16: 16,528–16,803 pieces compared on the card a frame (last log line of each launch),
      against 16,795–17,077 in base: unchanged.
    • VICTORY_CARD_REHASH_RUNS=1: the log says "now on"; 313–320 hash passes a frame against 305–347 with it off:
      unchanged.
  • Card copies: every launch ends with 97 copies 941 MB in the card's memory, and no launch has a
    "no card copy for a title buffer" line.

The compute skinning list

Shown:

  • On a26859f, in a captured frame that has it (frame 2048 of one launch): 120 dispatches of four compute
    pipelines, recorded back to back in one command list, of 2,705 dispatches in the frame: 3cf39f4495b908d0 78,
    82a2ad6d07417d36 5, e06a21f3cea46973 33, dd24ff46af3ae6ee 4. All four are 32-lane programs.
  • Their bindings in that frame against the log's "a buffer's host copy is in the card's memory" lines (the log
    lists 98, 944 MB): the vertex data, the 174 MB buffer and the 36 MB output are card copies. A 1,081,344-byte
    view that all four read and two 2,621,440-byte tables that 82a2ad6d… reads have no card copy: they are read
    from PC memory. No copy was refused, so these are not buffers that were turned down.
  • Card time, measured one tree earlier (hub 8dd30ab plus local patches, VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1, one 420 s launch, 30 blocks of about 5 s): 68.4 ms a frame for the four pipelines
    (32.1 / 27.7 / 5.4 / 3.2), 36 % of all timed card time (188.8 ms). The per-submission line for that one list
    agrees: median 72.2 ms (65.9–90.6), for example
    the card's time by what ran: 88.5 ms a frame in 1.0 submissions a frame: 1 lists, pipelines {"[compute 3cf39f4495b908d0]", …}.
    The timing launch runs at 737 ms a frame, so it gives card time per command, not a frame time.
  • The time does not follow the size: about 600,000 threads a frame, about 115 ns each; slow-command warnings give
    4.2 ms for a dispatch of 23 groups and 5.0 ms for one of 788.

Suspected, not shown:

  • That the loads from the views in PC memory (15–49 load sites per program read the 1 MB view) are what keeps the
    list near 70 ms. I have not measured it with those views on the card.
  • How often the list runs. Of 12 frames captured in these launches, 7 have no skinning dispatch at all, so I
    cannot say that every 230 ms frame carries it.

Not measured: the list's card time on a26859f itself, the card time of the layer's own hash and compare passes
(they carry no timestamps), any other card, AMD.

Launches were run by a script on my PC; the numbers were taken from the logs and this report was written with
Claude Code (Mythos 5.2).

**@⁠leondood1298** on GitHub · 2026-11-25 15:25 UTC · [original](https://github.com/fxceless/victory-fork/issues/833#issuecomment-7166829228) Measurements from one more 12 GB card, on `a26859f`. Numbers only, no fix. **Setup** | | | |---|---| | build | hub `a26859f` plus one local commit that is not in the hub (PR #559, at its default); `--profile diag --features diagnostics` | | adapter | RTX 4070 SUPER 12 GB, driver 621.24, 32-lane waves only | | CPU / RAM / OS | i7-12700K, 64 GB, Windows 11 build 26300 | | console profile | the program's default (no `--console`) | | scene | the first shot after the prologue, camera at rest; scripted Enter presses until 150 s, nothing after; warm shader cache; the title presents 3840x2160 | | switches | `VICTORY_RELAY=1 VICTORY_CARD_ROOM_FOR_BUFFERS=1` in every launch, plus the one named in the row | | launches | 20, unattended, one after another; 240 s each unless said | Frame time of a launch = median of the window caption read every 5 s over its last 60 s. In the world from 56–81 s, standing in the shot from 122–157 s. **Frame time (ms a frame)** | configuration | launches | median | launch medians | preparing / on the GPU / copying back | |---|---|---|---|---| | base | 5 | 229.2 | 218.5 – 237.8 | 100.3 / 65.6 / 136.9 | | `VICTORY_DISPLAY_MODE=1920x1080` | 3 | 227.9 | 225.9 – 228.1 | 95.7 / 66.3 / 138.3 | | `VICTORY_DISPLAY_MODE=2560x1440` | 3 | 233.7 | 226.4 – 234.9 | 97.6 / 66.7 / 139.0 | | `VICTORY_ROOT_UAV_MB=16` | 3 | 232.8 | 223.3 – 233.8 | 104.3 / 62.4 / 136.9 | | `VICTORY_CARD_REHASH_RUNS=1` | 3 | 231.6 | 229.7 – 232.8 | 99.5 / 63.4 / 136.0 | | base, 900 s | 2 | 217.2 and 219.3 | | 95.5 / 62.1 / 131.8 | 4,570–5,060 draws a frame. A typical frame line of a base launch: `4.4 fps, 229.1 ms/frame (98.0 preparing: copies 57.2 ms 175.0 MB, textures 7.0 ms 24.7 MB; 67.4 on the GPU; 142.0 copying back 65.9 MB), 4843 draws/frame, dropped 355 without a host pipeline (0 being made) and 1 indirect`. A first launch with a cold shader cache (242.3 ms, 420 s) is not in the table. - **Stability:** 0 ERROR lines and no device removal in all 20 launches, the two 900 s ones included. Peaks: 23.9–25.1 GB private, 10.3–10.6 GB on the card. - **Spread with nothing changed:** the five base launches differ by 19 ms (about ±4 %). All three switches stay inside that, so none of them changed the frame time here. - **What the logs say each switch did:** - Display mode: `display mode reported to the title width=1920 height=1080`, then `presenting to a window width=3840 height=2160 format=28`. The title still presents 3840x2160, as in question 3 above, so these rows say nothing about what a smaller picture would cost. - `VICTORY_ROOT_UAV_MB=16`: 16,528–16,803 pieces compared on the card a frame (last log line of each launch), against 16,795–17,077 in base: unchanged. - `VICTORY_CARD_REHASH_RUNS=1`: the log says "now on"; 313–320 hash passes a frame against 305–347 with it off: unchanged. - **Card copies:** every launch ends with `97 copies 941 MB` in the card's memory, and no launch has a "no card copy for a title buffer" line. **The compute skinning list** Shown: - On `a26859f`, in a captured frame that has it (frame 2048 of one launch): 120 dispatches of four compute pipelines, recorded back to back in one command list, of 2,705 dispatches in the frame: `3cf39f4495b908d0` 78, `82a2ad6d07417d36` 5, `e06a21f3cea46973` 33, `dd24ff46af3ae6ee` 4. All four are 32-lane programs. - Their bindings in that frame against the log's "a buffer's host copy is in the card's memory" lines (the log lists 98, 944 MB): the vertex data, the 174 MB buffer and the 36 MB output are card copies. A 1,081,344-byte view that all four read and two 2,621,440-byte tables that `82a2ad6d…` reads have no card copy: they are read from PC memory. No copy was refused, so these are not buffers that were turned down. - Card time, measured one tree earlier (hub `8dd30ab` plus local patches, `VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1`, one 420 s launch, 30 blocks of about 5 s): 68.4 ms a frame for the four pipelines (32.1 / 27.7 / 5.4 / 3.2), 36 % of all timed card time (188.8 ms). The per-submission line for that one list agrees: median 72.2 ms (65.9–90.6), for example `the card's time by what ran: 88.5 ms a frame in 1.0 submissions a frame: 1 lists, pipelines {"[compute 3cf39f4495b908d0]", …}`. The timing launch runs at 737 ms a frame, so it gives card time per command, not a frame time. - The time does not follow the size: about 600,000 threads a frame, about 115 ns each; slow-command warnings give 4.2 ms for a dispatch of 23 groups and 5.0 ms for one of 788. Suspected, not shown: - That the loads from the views in PC memory (15–49 load sites per program read the 1 MB view) are what keeps the list near 70 ms. I have not measured it with those views on the card. - How often the list runs. Of 12 frames captured in these launches, 7 have no skinning dispatch at all, so I cannot say that every 230 ms frame carries it. Not measured: the list's card time on `a26859f` itself, the card time of the layer's own hash and compare passes (they carry no timestamps), any other card, AMD. Launches were run by a script on my PC; the numbers were taken from the logs and this report was written with Claude Code (Mythos 5.2).
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 21:18 UTC · original

On AMD the 9 compute programs named here are created: Radeon RX 7900 XTX, Adrenalin 32.0.32015.7029, Windows 10, fxceless main d510ee4 + #402, victory translate --validate --pipelines validated and created all of them, and the rest of the pack, with 0 refused. Details in #891 (#891).

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 21:18 UTC · [original](https://github.com/fxceless/victory-fork/issues/833#issuecomment-7174889711) On AMD the 9 compute programs named here are created: Radeon RX 7900 XTX, Adrenalin 32.0.32015.7029, Windows 10, fxceless `main` `d510ee4` + #402, `victory translate --validate --pipelines` validated and created all of them, and the rest of the pack, with 0 refused. Details in #891 (https://git.gtahub.st/github/fxceless--victory-fork/issues/891).
Author
Owner

@⁠HoLa-Lee on GitHub · 2026-11-26 16:35 UTC · original

Where the numbers in this report go, measured on the same kind of scene and the same switch (VICTORY_RELAY=2).

Yours: 181-281 ms a frame at 4-5 fps, 5,000-7,000 draws, copies 120 MB up and 41 MB back a frame. Ours on an RTX 4080 SUPER with 4,088-5,873 draws: 211-238 ms, copies 138-196 MB and copy-back 55-82 MB - close enough that the breakdown below should carry over.

I instrumented the copy-back (Shadow::relay_merge, the relay path this machine runs) with three timers and printed them beside the existing per-frame relay line. Story frames, five consecutive reports:

per frame
the frame line's "copying back" (= the relay thread's landing in all) 60-127 ms
that thread waiting for the card with nothing to land 29-46 ms
that thread waiting for fetches of card copies' pieces 33-82 ms
pieces merged / bytes actually written 132-171 pieces, 2.2-2.7 MB
the snapshot lock's wait 0.00 ms
everything under the lock before the write (copy, diff, title read, merge) 2.4-2.9 ms
the write into title memory 0.38-0.52 ms

Two things that follow, and that change what is worth trying:

  1. 95 % of the copy-back is waiting, not byte work. The merge is ~3 ms and the write is half a millisecond; the rest is round trips to the card - a fetch of each piece, 5-9 landings a frame. That is why VICTORY_RELAY=2 is your best arm: it moves the work off the submitting thread, but it cannot move the waits. Levers are fewer/larger round trips per landing, or the submission's own planning moved beside the submit thread - which is what VICTORY_PORT_GUARD does in avatarmanz/VIctory-7900XTX (title-thread waits 29 ms -> ~2 ms there).
  2. The "X MB copying back" in the frame line counts bytes examined, not bytes written. In our frames that is 55-82 MB examined for 2.2-2.7 MB actually put back. Chasing that number as bandwidth will lead nowhere.

For reference, the same run's other terms, so the copy-back is read in proportion: copies 46-64 ms (138-196 MB), GPU 80-121 ms, textures 0.1-0.3 ms with the stride switch on.

No ask here - just the decomposition, since your report has the numbers but not the split inside them.

**@⁠HoLa-Lee** on GitHub · 2026-11-26 16:35 UTC · [original](https://github.com/fxceless/victory-fork/issues/833#issuecomment-7197853061) **Where the numbers in this report go, measured on the same kind of scene and the same switch (`VICTORY_RELAY=2`).** Yours: 181-281 ms a frame at 4-5 fps, 5,000-7,000 draws, copies 120 MB up and 41 MB back a frame. Ours on an RTX 4080 SUPER with 4,088-5,873 draws: 211-238 ms, copies **138-196 MB** and copy-back **55-82 MB** - close enough that the breakdown below should carry over. I instrumented the copy-back (`Shadow::relay_merge`, the relay path this machine runs) with three timers and printed them beside the existing per-frame relay line. Story frames, five consecutive reports: | per frame | | |---|---| | the frame line's "copying back" (= the relay thread's landing in all) | **60-127 ms** | | that thread **waiting for the card with nothing to land** | **29-46 ms** | | that thread **waiting for fetches of card copies' pieces** | **33-82 ms** | | pieces merged / bytes actually written | 132-171 pieces, **2.2-2.7 MB** | | the snapshot lock's wait | **0.00 ms** | | everything under the lock before the write (copy, diff, title read, merge) | **2.4-2.9 ms** | | the write into title memory | **0.38-0.52 ms** | Two things that follow, and that change what is worth trying: 1. **95 % of the copy-back is waiting, not byte work.** The merge is ~3 ms and the write is half a millisecond; the rest is round trips to the card - a fetch of each piece, 5-9 landings a frame. That is why `VICTORY_RELAY=2` is your best arm: it moves the work off the submitting thread, but it cannot move the waits. Levers are fewer/larger round trips per landing, or the submission's own planning moved beside the submit thread - which is what `VICTORY_PORT_GUARD` does in avatarmanz/VIctory-7900XTX (title-thread waits 29 ms -> ~2 ms there). 2. **The "X MB copying back" in the frame line counts bytes examined, not bytes written.** In our frames that is 55-82 MB examined for **2.2-2.7 MB** actually put back. Chasing that number as bandwidth will lead nowhere. For reference, the same run's other terms, so the copy-back is read in proportion: copies 46-64 ms (138-196 MB), GPU 80-121 ms, textures 0.1-0.3 ms with the stride switch on. No ask here - just the decomposition, since your report has the numbers but not the split inside them.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#833
No description provided.