8 GB RTX 5060: the combined frame-rate switch set is 3x slower than RELAY=2 + INDIRECT_WINDOW=1 alone #912
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#912
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?
@bailu12300 on GitHub · 2026-11-25 12:33 UTC · original
RTX 5060 8 GB (Win10 19045, i5-14490F, 32 GB), tree
a253706plus the Agility 1.614 shim needed on Windows 10 (two data exports,D3D12Core.dllin.\D3D12\), 1440p, default Game profile, first room (the prologue interior) and the cutscene before it.The README's "all of the switches below" set is a large regression on 8 GB, and one of them is probably the reason. Same cache, same save, same room:
RELAY=2 INDIRECT_WINDOW=1ASYNC_SUBMIT=1ASYNC_SUBMIT=1 QUEUE2=1 INDIRECT_WINDOW=1 TEXTURE_NO_WAIT=1 MERGE_GAP=64 MERGE_RUNS=4096(README's set, withRELAY=2)The full set is 3× slower than the plain
RELAY=2 INDIRECT_WINDOW=1pair. What the numbers say:0.0 on the GPUwhilepreparingis 228–259 ms and copy-back 83–94 ms; in the fast run GPU is 46–93 ms and copy-back 135–150 ms. So the full set does not move work to the card, it adds host work per frame (copies 240 ms / 183 MB on one frame, against 57–70 ms / 116–127 MB).MERGE_GAP=64 MERGE_RUNS=4096is documented as "NOT exact"; it is the one switch in the set whose failure mode is extra host bookkeeping rather than less. I would try it alone before the rest.ASYNC_SUBMIT=1on its own is roughly neutral here (35 µs per draw against 41–48 µs without), so the loss is more likely inQUEUE2,TEXTURE_NO_WAITor the merge, or in their combination.Two smaller notes:
dropped … (1 402 being made)for the first three minutes; the run sits at 1.0–2.3 fps until the compile queue empties (0 being made), then jumps to 4.2–4.7. The README's frame numbers are reached only after the queue drains — worth stating, because the first five minutes look like a different (broken) result.GFX10 code at 0x…: a lane mas…(hash=f133e35efed2a48a,hash=926c46bab3b86bd6). Everything else translates.Picture at 4 fps is correct in the prologue room: characters, textures, the window's dusk landscape, HUD prompt text in Chinese, pad glyphs. The dark half of the room is still black, as the README says (ray-traced bounce light absent).
If it helps, the full set is worth gating behind a "many cores / more than 8 GB" note, or splitting into individual switches in the README table so an 8 GB card can find the two that pay.
@Ym1r1710 on GitHub · 2026-11-25 12:38 UTC · original
Some numbers from a 16 GB card for comparison: 5080, Win11, Series X profile, first cell,
a253706merged into my tree. Median of steady world frames:TEXTURE_NO_WAIT=1 INDIRECT_WINDOW=1, relay off: ~212 msASYNC_SUBMIT=1 QUEUE2=1: ~202 msRELAY=2: 156-169 ms over five runs. This is what I run now.So on 16 GB the set without
MERGE_GAP/MERGE_RUNSis the fastest thing I have. I never ran the merge switches since the README says they're not exact. That makes them my first suspect for your 3x too.I did hit a similar 2.4x slowdown from a different set, though:
CARD_FETCH_INFLIGHT=1 CARD_REHASH_RUNS=1 JOIN_COPIES=1 PIPELINE_WAIT_MS=24 EARLY_TEXTURES_MS=60on top of the above went to ~410 ms. DroppingCARD_REHASH_RUNSalone didn't help. Most of the extra time showed up as waiting on the card, ~35 → ~280 ms. I haven't split the other four yet.@bailu12300 on GitHub · 2026-11-25 12:54 UTC · original
My first report was wrong, and this is the correction. The 1.2–1.7 fps number was taken during the cold-cache compile window of that run (the same log line said
1721–1728 being made, which I misread as a steady state). All numbers below are warm cache, same save, same room, 1440p, relayingRELAY=2unless stated, RTX 5060 8 GB.RELAY=2 INDIRECT_WINDOW=1MERGE_GAP=64 MERGE_RUNS=4096QUEUE2=1TEXTURE_NO_WAIT=1ASYNC_SUBMIT=1ASYNC_SUBMIT=1 QUEUE2=1So the README set is the fastest thing on this 8 GB card too — 5.9–6.6 fps, and the copy-back falls to 37–43 ms a frame against 107–135 ms with only
RELAY=2 INDIRECT_WINDOW=1.ASYNC_SUBMITalone is the only single switch that costs (3.6–4.1), and it more than pays for that onceQUEUE2is with it. The merge switches are innocent; I was wrong to point at them.What misled me, and worth fixing in the README or in the layer:
1.0–2.3 fps,926 113 → 999 547 texture slots,dropped … (1 402 being made). The moment the queue drains (0 being made) the same run jumps to 4–6 fps with no other change. A one-line "the first launch is slow until the compile queue empties" would save the next tester this detour.0.0 on the GPUvalue I quoted is not a GPU measurement; it appears in the full-set runs while the GPU column is populated in the plain ones. If that is a known artifact of the async submit path, it is exactly the kind of number that makes someone blame switches.Sorry for the noise on your side, and thanks for the 5080 numbers — they are consistent with mine once the cache is warm (my card is about 20 % slower at the same room, which fits a 5060 against a 5080).
@JRamos1993 on GitHub · 2026-11-25 14:35 UTC · original
RTX 5090 on
0b0074e, each switch alone and together, two runs each:ASYNC_SUBMIT=1 QUEUE2=1 COPY_PLAIN=1 TEXTURE_NO_WAIT=1takes the settled frame from 270–288 ms to 198–204 ms (3.6 → 5 fps), and nearly removes the slow stretch after entering the world.Setup: Windows 11, RTX 5090 32 GB, diagnostics build of
0b0074e, Series X files, relay at its default (stage 2), warm cache, network off. Same save and same scripted keys every run, 420 s each,VICTORY_CAPTURE_WORLD_EVERY=64. The ten runs were interleaved (A C D E S S E D C A). Medians of the frame lines from 150 s after the first line with 500+ draws, about 20–35 lines a run. Draws per frame were within 4,770–5,070 in every run, so the arms compare at about equal draws.VICTORY_INDIRECT_WINDOWwas not measured here.ASYNC_SUBMIT=1QUEUE2=1COPY_PLAIN=1TEXTURE_NO_WAIT=1)QUEUE2is the copy-back switch: 192–195 → 64–70 ms.COPY_PLAINis the preparing switch: 104–111 → 84–85 ms.ASYNC_SUBMITalone gains nothing here, but the set with it is faster than either of the other two alone.This agrees with the 16 GB numbers above (5080, 4070 Ti SUPER) and adds
COPY_PLAIN, which those sets did not include.@EgoraWyn on GitHub · 2026-11-25 14:41 UTC · original
A 6 GB data point for this thread, since
VICTORY_JOIN_COPIEShas only appeared here inside a bundle so far.RTX 3060 Laptop 6 GB, Series S profile, title build 1.0.2.1, Windows 11. Same binary throughout, steady-state medians of world frames over 3,000 draws, frames over 1 s (pipeline compiles) excluded:
VICTORY_JOIN_COPIES=0: 267, 301, 307, 302 ms across four runs.So: no gain shown on this card either way. The reason I am posting the four runs rather than one is that the first of them, at 267 ms, looks like a 14 % win on its own and did not repeat. The spread between identical runs here is about ±25 %, which is wide enough to manufacture a result from a single pair.
The default-on run was the first run on a newly built binary, so its pipeline cache was colder than the four that followed; excluding frames over 1 s removes most of that, but it is not a perfect pair and I would not read the 311 against 302 as a difference.
Nothing here contradicts the 5080 report above — that one had several switches on at once and this is the single switch alone, with the opposite polarity, on a much smaller card.
Written with Claude Code (model claude-opus-5).
@CuteBooty on GitHub · 2026-11-25 17:52 UTC · original
An RTX 3070 8 GB with a Ryzen 5 3600, Series S: 204 -> 147 ms with the copy queue, draw windows, the submit thread and wide card hashing
Not fork main: our tree carries ports of the pieces (the QUEUE2 re-fetch on PR #665's copy queue,
ASYNC_SUBMITandCOPY_PLAINfromf85101b6/a2537066/0b0074e0, PR #220's windows, PR #1032's in-place write-back). Same save andscene every run: open water in the first boat mission, about 3,500 draws a frame, settled medians of 12-18 frame lines,
switches added one at a time:
QUEUE2=1)INDIRECT_WINDOW=1COPY_PLAIN=1(with #1032)ASYNC_SUBMIT=1WIDE_REFRESH=1COPY_PLAINand the last twoabout 10 ms shorter (212.7 -> 201.4 ms on an earlier build).
slower with windows here; not rechecked on this build.)
COPY_PLAINmoved 108 MB a frame in place and took 7 ms off preparing, but the frame did not move; no crash infive runs. The single heap pass and
WIDE_REFRESHdid nothing here.VICTORY_CARD_HASH_WIDE=1in our tree: the card's hash passes with wider thread groups, the idea ofPRs #1014 and #997): the GPU's share 68 -> 43 ms, frame 155.3 -> 147.2 ms.
COPY_PLAINwas taken out in the same run(LNX reverted that code for crashes at world load), which gave back its 7 ms of preparing.
absent in others.
That is 4.9 -> 6.8 fps in that scene; light cutscene close-ups (about 1,500 draws) run at 95-115 ms.
Setup: RTX 3070 8 GB (driver 621.24, 32-lane waves), Ryzen 5 3600, 32 GB, Windows 11, Series S mode (PR #188), 1920x1080,
VICTORY_TEXTURE_DROP_MIPS=1, relay at its default, a diagnostics build of a tree at main310c6eb6with a number of open PRs picked. One run per configuration unless said; run-to-run spread here is 5-10 ms.@CuteBooty on GitHub · 2026-11-25 20:00 UTC · original
"Gone Fishing" played from the shore to the house in one run of 103 minutes: no crash, no device removal, no error line
Follow-up to my table above, same machine and switch set, now with
VICTORY_BAKE_TEXTURES_MS=0. Everything themission asks for worked: the boat (with vx-layer's texture copy-back, #863), the binoculars, sneaking, shooting, a
fistfight, flying the seaplane, driving through town, and the drive home.
Frame times over the whole run, medians of the 5-second frame lines by draws per frame (982 lines):
141 ms, slowest tenth 149 ms.
polygons appeared for single frames (see #1080 for what may be the same thing).
memory 13-16 GB throughout.
had ended at the house; saved then, the container (SARC0000, 279,856 bytes) was written with result "ok", and a
fresh launch loaded it (the house, free roam, within two minutes of the launch). A failed section restarted from the title's own checkpoint, in
memory only: closing the title before the house would have lost the mission.
another slot and the title kept listening to the first.
Setup: RTX 3070 8 GB (driver 621.24, 32-lane waves), Ryzen 5 3600, 32 GB, Windows 11, Series S mode (PR #188), 1920x1080, a diagnostics build of a tree at main
310c6eb6with a number of open PRs picked and ports of fork main's copy queue re-fetch and submit thread. Switches:VICTORY_QUEUE2=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_BAKE_TEXTURES_MS=0 VICTORY_TEXTURE_DROP_MIPS=1, plus wide card hashing (our tree's form of PRs #1014 / #997). One run.@CuteBooty on GitHub · 2026-11-25 23:59 UTC · original
Source for the tree behind my numbers above is now public: Series S, NVIDIA 8 GB, older CPUs
https://github.com/CuteBooty/victory-8gb
It is a source snapshot (one commit, no history; CREDITS.md says who wrote what), GPL-3.0-or-later. Source only: no
game files, no built program, you compile it yourself with the commands in the README. Its only focus for now is
Series S mode on NVIDIA 8 GB cards with older CPUs; that is the one machine it is tested on (RTX 3070 8 GB, Ryzen 5
3600, 32 GB, driver 621.24, 1920x1080).
What it has beyond main that mattered here:
683ad7a9). Before it, every descriptor table holding aconstant buffer was rebuilt in fresh dynamic slots for each draw, and in heavy scenes our 262,144-slot ring sat at
99 %: recording threads waited 285-400 ms a frame (summed) and draws were dropped. After: no waits, no refused
tables, 62-96 thousand slots asked a frame instead of 163-193 thousand. GPU time in the heaviest view went from
100-115 ms to 51-62 ms. One slow first launch (every shader is retranslated).
read-back wrote the whole footprint; a list could use what an earlier list of the same submission reads back
before it had landed).
Measured today, medians of the 5-second lines: open water 141-168 ms; 4,400-7,000 draws 180-250 ms; town, foliage
and a deck view at 7,000-10,000 draws 240-340 ms. The first story mission was completed on an earlier build of this
tree (comment above). The newest build has had two short runs only.
Known problems, also in the README: exposure flashes unless
VICTORY_LATE_WAIT=2(70-90 ms a frame in heavyscenes); stalls while the texture refresh waits on remaps; characters can bake dark at first with
VICTORY_BAKE_TEXTURES_MS=0; shaded areas can be black.If you have an 8 GB NVIDIA card and try it, the README has the switch set I use; reports with the 5-second lines
are welcome there.
@CuteBooty on GitHub · 2026-11-26 02:47 UTC · original
RTX 3070 8 GB, Series S: a frame budget, and the same wall as runs 294 and 297 ("the work falls, the frame does not")
Second snapshot of the tree is up: https://github.com/CuteBooty/victory-8gb (source only, GPL-3.0-or-later).
What one evening of measuring gave, in case it saves someone the same runs:
VICTORY_LATE_WAIT=2. The card is busy 27-62 % of the time. 1280x720 did not lower card time.de4146a0, landing counters from triippywhale) left the frame where it was: 232-270 ms against 241-245. Stable through eight short runs.VICTORY_MAPPING_RANGES=1takes the wait to 0.1 ms; play felt more even; the average did not improve.So on this machine the limit is that the steps are serial, not any one of them. If someone has made the title's next frame overlap the card's work without the exposure flashing, I would like to read how. I have opened four "help wanted" issues with the numbers for each problem: serial frame, remap stalls, change tracking, black shade. Reports from other 8 GB cards are welcome there.
@loftymocha on GitHub · 2026-11-26 04:21 UTC · original
RTX 5070 12 GB: the frame-rate set is the fastest here too, 4.4 → 6.5 fps median (6.1–6.4 steady), with no device loss in 11 minutes. This agrees with bailu12300's warm-cache correction and the 5080 and 5090 numbers above, from a 12 GB card in between. One extra point below about the driver watch, which can quietly undo
VICTORY_INDIRECT_WINDOW=1in measurements like these.Setup: RTX 5070 12 GB (driver 32.0.16.1742), Ryzen 7 7800X3D, 32 GB DDR5, Windows 11 Pro 26300, diag build.
maindb53666+ #36, #646, #579, #917, plus the driver-watch level filter (the same change as #1255, whichdb53666predates). The builder was off.VICTORY_LEVELS_ON_DEMAND=1 VICTORY_AMBIENT=0.6 VICTORY_SHADER_LOOP_LIMIT=256, warm cache, one launch per row, 11 minutes each, from the prologue checkpoint, played by hand. Counts only.The set in run 3:
VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_COPY_PLAIN=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_INDIRECT_GATHER=1 VICTORY_CARD_REHASH_RUNS=1 VICTORY_CAPTURE_WORLD_EVERY=64(noMERGE_GAP/MERGE_RUNS, noCARD_FETCH_INFLIGHT).INDIRECT_WINDOW=1on. That's one run.VICTORY_INDIRECT_WINDOWback off for the rest of the run (#1077). A run on a build older than #1255 then measures the set without draw windows, with nothing in the log beyond thedrvwatch ... n=1line. Here, all three launches before the filter tripped this way.AI-assisted (Claude Code)
@CuteBooty on GitHub · 2026-11-26 08:28 UTC · original
Run 300's full ring of dynamic slots: the same pressure went away here with table constants read in place
Run 300 shows the ring at zero free slots in 30 of 34 refusal intervals, with up to 2,836 refused tables a frame. We had the same picture on an RTX 3070 8 GB in Series S mode: the 262,144-slot ring 99 % full in heavy scenes, because every descriptor table holding a constant buffer was rebuilt in fresh dynamic slots for each draw.
What removed it here was a partial port of upstream
683ad7a9, table constants read in place: slots asked a frame went from 163-193 thousand to 62-96 thousand, and the waits of the recording threads from 285-400 ms a frame (summed) to zero. No refused tables since. It changes shader lowering, so the first launch retranslates every shader.The code is in the published snapshot,
github.com/CuteBooty/victory-8gb@7a547593:crates/victory-gpu/src/draw.rs(State::tables,constant_in_place),crates/victory-gpu/src/descriptor/host.rs(constant_copy) andcrates/victory-shader/src/emit/lower.rs(smem). GPL-3.0-or-later; take what is useful.@CuteBooty on GitHub · 2026-11-26 08:28 UTC · original
Same exe, same switches, only
VICTORY_LATE_WAITchanged: stages 0 and 1 are slower than 2, and none of the three flashesI had been saying that anything short of
VICTORY_LATE_WAIT=2flashes. On my tree (CuteBooty/victory-8gb, relay default,VICTORY_ASYNC_SUBMIT=1,VICTORY_ASYNC_SUBMIT_SAFE=0; RTX 3070 8 GB, Ryzen 5 3600, Series S) that is wrong:VICTORY_LATE_WAITReading the code for why: at 0 the late flights are off, so async submit has nothing to send ahead. Stages 1 and 2 both drain every flight at the present; they differ earlier in the frame, where a refresh that overlaps pending shader writes waits for all flights at stage 1 (85-93 ms a frame in my log) and merges only the bytes the title changed at stage 2 (about 5 ms). Only with
VICTORY_LATE_WAITunset and the relay on do flights cross the present, and that is the case that flashes.Two consequences for anyone measuring: "the present wait" at stage 2 is the presenting thread waiting for the rest of the frame (187 of 212 ms in one run with a timeline counter), not a cost that can be removed by itself; and a fixed-age publication of exposure and water has to be tested against the unset case, because stages 0-2 show uniform ages by construction.
One run each, on one machine.
@GoHigh13 on GitHub · 2026-11-26 17:48 UTC · original
@CuteBooty thanks for the detailed run report. Would you be willing to attach the manual save you made at the house (the SARC0000 container, about 280 KB) as a zip? A free-roam start past "Gone Fishing" would help others test rendering in town without replaying the mission. Only the SARC folder is needed.