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
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#833
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 viatranslate 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+ 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=2048made 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=1280x720is 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.xmlis 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 (
CreateDescriptorHeapid=645), i.e. the same clamp as #82/portable views.Compute: every frame 6 distinct compute pipelines are refused with E_INVALIDARG (0x80070057) -
make::missingreports "refused", no shader translation failures. WithVICTORY_D3D12_DEBUG=1the 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:
9376fd6/a26859fprocessor-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)?VICTORY_WAVE_WIDE=1supposed 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.Happy to run any A/B you want on this machine and report numbers.
@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.
9376fd6, Series X,VICTORY_CARD_WINDOWS_MB=40969376fd6+ #798 #783 #799 #780 #770 #827, Series S9376fd6alone 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.9376fd67 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.@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,
mainat9376fd6plus 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, plus5dc3b25and6f225b64early, andf133e35ethat 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.2da4beb3R11G11B10_FLOATR16G16B16A16_FLOAT, 2560x1440 depth2cc4c197R32_UINTf133e35eR8_UNORM, 2560x1440R8G8B8A8_UNORMD1602384a60,369cbe90Those 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_FLOATgot 160 dispatches that ran and 16 that did not (all "without a host pipeline"), theR8_UNORM288 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.
2da4beb3reads 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;f133e35ereads 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 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).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-sizeR11G11B10_FLOATtargets 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.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_readlanein some), so the host's wave32 pipeline refuses them with 0x80070057 every time. Nothing new against your title line, only the per-hash reason.@leondood1298 on GitHub · 2026-11-25 15:25 UTC · original
Measurements from one more 12 GB card, on
a26859f. Numbers only, no fix.Setup
a26859fplus one local commit that is not in the hub (PR #559, at its default);--profile diag --features diagnostics--console)VICTORY_RELAY=1 VICTORY_CARD_ROOM_FOR_BUFFERS=1in every launch, plus the one named in the rowFrame 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)
VICTORY_DISPLAY_MODE=1920x1080VICTORY_DISPLAY_MODE=2560x1440VICTORY_ROOT_UAV_MB=16VICTORY_CARD_REHASH_RUNS=14,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.
23.9–25.1 GB private, 10.3–10.6 GB on the card.
inside that, so none of them changed the frame time here.
display mode reported to the title width=1920 height=1080, thenpresenting to a window width=3840 height=2160 format=28. The title still presents 3840x2160, as in question 3above, 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.
97 copies 941 MBin the card's memory, and no launch has a"no card copy for a title buffer" line.
The compute skinning list
Shown:
a26859f, in a captured frame that has it (frame 2048 of one launch): 120 dispatches of four computepipelines, recorded back to back in one command list, of 2,705 dispatches in the frame:
3cf39f4495b908d078,82a2ad6d07417d365,e06a21f3cea4697333,dd24ff46af3ae6ee4. All four are 32-lane programs.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 readfrom PC memory. No copy was refused, so these are not buffers that were turned down.
8dd30abplus 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.
4.2 ms for a dispatch of 23 groups and 5.0 ms for one of 788.
Suspected, not shown:
list near 70 ms. I have not measured it with those views on the card.
cannot say that every 230 ms frame carries it.
Not measured: the list's card time on
a26859fitself, 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).
@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
maind510ee4+ #402,victory translate --validate --pipelinesvalidated and created all of them, and the rest of the pack, with 0 refused. Details in #891 (#891).@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:Two things that follow, and that change what is worth trying:
VICTORY_RELAY=2is 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 whatVICTORY_PORT_GUARDdoes in avatarmanz/VIctory-7900XTX (title-thread waits 29 ms -> ~2 ms there).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.