Skip to content

Card copies' pieces come down inside their own flights: relay fetch wait 139 ? 0 ms/frame (VICTORY_CARD_FETCH_INFLIGHT=1, off by default) - #648

Open
Jonirulah wants to merge 2 commits into
fxceless:mainfrom
Jonirulah:card-fetch-inflight
Open

Jonirulah wants to merge 2 commits into
fxceless:mainfrom
Jonirulah:card-fetch-inflight

Conversation

@Jonirulah

Copy link
Copy Markdown

What it fixes: with the relay on, every landing that has flagged card-copy pieces sends one fetch list on the direct queue and waits on its fence. That queue is the one the submitting thread keeps filling, so the fetch runs behind every flight sent after it. On an 8 GB laptop card that wait was the single biggest cost in the frame: ~139 ms per frame to bring down about 3.4 MB, in about 5 waits of ~28 ms each.

What changes, with VICTORY_CARD_FETCH_INFLIGHT=1:

  • A small compute pass (CARD_FETCH) runs in the flight's own compare list, after CARD_COMPARE. It copies each piece flagged as differing into a slot of a CPU-visible buffer, taking a ticket per piece.
  • When the flight lands, the relay merges the pieces from their slots with card_merge_relay. There is no extra ExecuteCommandLists, fence or wait.
  • A landing falls back to today's fetch, unchanged, when a flight overflowed its slots, has no fetch, or has a range that wasn't compared.
  • VICTORY_CARD_FETCH_INFLIGHT_MB sets the slot buffer size: 64 MB by default, which is 1,024 slots of 64 KiB, a power of two.
  • With the switch off, behaviour is unchanged.

Measured: RTX 3070 Laptop 8 GB, Ryzen 7 5800H, Windows 11, Series S. Diagnostics build, same binary and settings for every run, steady world (about 45-55 samples from 2 minutes after the world appears):

ms/frame relay waiting for fetches "copying back" on the GPU
switch off 353 138.7 ms 236.5 ms 89.6 ms
switch on 305 0 ms 112 ms 59.7 ms
switch on, this commit (after review fixes) 312 0 ms 119 ms 55.6 ms

In both "on" runs, 62-79 pieces (3.2-3.9 MB) were merged from slots per frame, with 0 landings the old way and 0 overflows.

Correctness, reviewed twice by a second session:

  • Ordering: a merge from a slot uses the flight's own sent_as as its after. QUEUE_ORDER only rises under the submission lock, which is held until the compare list is on the queue. landable() lands flights in send order.
  • Mixed mode: an old-way fetch no longer moves relay_fetched past a flight still in the air (fallback_fetched_mark). Without that, a title write sent after a flight could be overwritten by that flight's older slot. The end-to-end test a_title_byte_sent_after_a_flight_survives_its_slot reproduces the bug with the old mark and passes with the fixed one, on a real Shadow with a card side, on WARP.
  • Tickets: the slot count is a power of two and the landed mark rises with wrapping arithmetic, so no two tickets in the air share a slot across the 32-bit wrap.

Tests: cargo test --release -p victory-gpu gives 124 passed, 0 failed, 2 ignored (both already ignored upstream). New tests cover the GPU fetch on WARP (slots, tickets, overflow, padding), the slot math, the wrap, and the send-notes rule. cargo clippy -p victory-gpu --all-targets shows no new warnings. Release and diag builds pass on 310c6eb.

Not tested: AMD and Intel cards, Series X, and Linux/Proton.

AI-assisted: Claude Code wrote and reviewed the change, and I ran the game for the A/B.

…FETCH_INFLIGHT=1, off by default)

With the relay, the thread that lands flights fetched the 64 KiB pieces a
flight's compare flagged with a list of its own on the host's queue, the
queue the submitting thread keeps filling: each fetch ran behind every
flight sent meanwhile, and the landing waited for all of them.

With the switch the compare's own list does the fetch. Right behind the
compare (a UAV barrier between) a small shader, CARD_FETCH, takes a ticket
for each flagged piece and copies the piece, cut as the compare hashes it,
into slot `ticket % slots` of a buffer in the PC's memory. When the
flight's fence is reached its bytes are already there, and the landing
merges them (card_merge_relay) with no list, signal or wait of its own.
VICTORY_CARD_FETCH_INFLIGHT_MB (64) sizes the slots: one per 64 KiB,
rounded down to a power of two (1,024). A landing that cannot take every
piece from slots (a flight's pieces overflowed them, or a range was not
compared) fetches the old way, as without the switch.

Measured on an RTX 3070 Laptop (8 GB), Series S, VICTORY_WINDOW_KB=1024
VICTORY_WINDOW_TAILS=1 VICTORY_INPLACE=1, the same diagnostics build, the
world standing, about 45 samples each:
- off: 353 ms a frame; the relay waited 138.7 ms a frame for fetches;
  copying back 236.5 ms;
- on: 305 ms a frame; no wait for fetches; copying back 112 ms; 71 to 79
  pieces (3.4 to 3.9 MB) a frame merged from slots; no landing went the
  old way, no overflow.
(Those runs were made before the last fix below; with no old-way landing
in them, what it fixes did not come up.)

What keeps the merge exact:
- "Fetched after" is the flight's own send number. The queue's count is
  raised only where a submission's changed ranges are taken, under the
  submission lock, and that lock is held until the submission's lists and
  its compare's list are on the queue: when the compare's list ran, the
  card had received exactly the sends up to the flight's own.
- Send notes. An old-way fetch took the queue's count when it was sent and
  then let the notes of sends up to it go. A flight still in the air,
  sent before that fetch, merges its slot as of its own send, and needs
  the notes of the sends between: without them a title byte that went up
  in a later send is taken for a shader's write and put back to the
  card's older byte. With the switch an old-way fetch lets notes go only
  up to the landed flights' own send (fallback_fetched_mark).
- What an old-way fetch brought is newer than the slots of flights that
  were on the queue ahead of it: those byte ranges are left out of their
  slots, and the rest of their slots is merged.
- Tickets: the counter is 32-bit and never reset. A ticket gets a slot
  only within `slots` of the lowest ticket still in the air, which the
  landing raises in wrapping order; with a power of two of slots
  `ticket % slots` runs on across the wrap.

Logging: a line per frame with the switch on (pieces and MB merged from
slots, landings that fetched the old way, of them those that overflowed);
the relay line's wait for fetches keeps counting only old-way fetches.

Tests: the shader on the software adapter (slots, tickets, overflow, the
16-byte widening of pieces); a mixed landing on a real card copy (a title
byte sent after a flight survives that flight's slot, and is lost with the
old mark); tickets drawn and landed through the counter's wrap; the slot
arithmetic against the merge's cut of pieces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yualk

yualk commented Nov 25, 2026

Copy link
Copy Markdown

Independent authored check of exact ca2513c02bc: Windows MSVC diag, RTX 5070 Ti (10de:2c05) and explicit WARP. No title run. With a 1 MiB slot cap (16 slots), a real 17-piece flight used legacy fallback; the next one-piece flight landed from a slot. Guarded guest words and untouched neighbors matched, and the producing fence alone did not publish guest bytes.

A second fixture separated the real queue calls at card_before / submission. A overflowed; B used a slot; C's CPU upload was already queued but its GPU writer was not when A's fallback ran. B's uncovered word survived; C subsequently returned exact [3,4,2] on both adapters. Test-only widening of the fallback coverage from B's send through C's returned [3,2,2] instead. This exercises the after - 1 boundary rather than just the send-note retention helper.

For one changed 64 KiB piece, same-binary off/on on the RTX (8 order-balanced fresh-process pairs, 16 steady flights each), median of process medians in µs: host prepare+submit 46.850→52.625, producing fence wait 253.950→264.700, landing 71.275→6.250; landing was faster in all 8 pairs. These are serial owned-flight measurements, not world FPS or a Series X result. No title files, screenshots, or shader inputs attached.

@oeirughrepuiohg

Copy link
Copy Markdown

Tested this PR (ca2513c0) on a heavier setup, at a much higher piece volume than the laptop numbers above. Setup: RTX 4070 Ti, Linux, Proton Experimental with vkd3d-proton, Series X files, relay stage 1, card buffers 1–1,024 MB, and VICTORY_INDIRECT_WINDOW=1.

1. Under Wine the path does not start. make_card_inflight compiles CARD_FETCH with D3DCompile directly, and Wine's compiler refuses it. The log says no fetch inside flights (VICTORY_CARD_FETCH_INFLIGHT=1): pieces are fetched the old way error=Call failed. (0x80004005) and every landing falls back. Compiling it through crate::dxc::compile(CARD_FETCH, "main", "cs_5_1"), like the other run-time HLSL, fixes it. The shader and root signature then compile and run.

2. With that fix it works but costs card time here. There are 0 fallbacks and 0 ms of fetch wait. But this setup flags about 1,280 pieces (79 MB) per frame, not about 60:

5 min in the steady world avg fps p50 frame on the GPU relay waiting for fetches
switch off (old fetch) 6.30 155 ms ~40 ms 56 ms
switch on, 64 MB 3.07 328 ms 160 ms 0 ms
switch on, 256 MB 3.13 322 ms — 0 ms

The slot buffer size does not matter, so the cost is per piece, not a lack of slots. My guess from the code is that table is a shared_buffer (CPU-mapped). Every compared piece's group then does a Store there, and every flagged piece does an InterlockedAdd there, so all of it crosses PCIe. That is about 16,700 stores and 1,280 atomics a frame here. #220 found the same with the indirect budget word.

For comparison, I wrote a local variant with the same idea. It keeps the per-flight counter in device-local memory, writes only the slot index into the existing differs dword (no separate table), and reserves slots per flight from a ring. On the same setup it measured 6.91 fps / p50 142 ms against 6.30 off, with GPU time about 22–38 ms, relay fetch wait 56 → 15 ms, and about 20% of pieces still fetched where a flight's share ran out. So moving the counter and table off the CPU-mapped buffer is probably the main lever for high-volume scenes. I'm happy to run a revision here.


Measured and written with AI assistance (Claude Code, Claude Opus 5.5).

@oeirughrepuiohg

Copy link
Copy Markdown

Correction to my comment above. Two of its points did not hold up on repeat runs:

  1. My variant's "6.91 fps" did not repeat. A second run of the same build and settings gave 6.34 fps (p50 155 ms), the same as the old fetch path (6.30). It does cut the relay thread's fetch wait reliably (56 → 15–22 ms a frame). But frame rate here is set by the submitting thread, so it is not a frame-rate win on this setup.
  2. The cause I suggested for this PR's slowdown is probably wrong. When I raised my variant's caps so that every flagged piece went inline (about 1,260 pieces, 82 MB a frame, 0 fallbacks), it showed the same cost as this PR: card about 84% busy, about 160 ms a frame on the card, 3.4 fps. Its counter is in device-local memory, not a CPU-mapped buffer. So the cost is copying nearly every flagged piece inside the flights at this volume, not where the atomics live. With about 80% inline and the rest fetched, the card cost stays normal.

The Wine compile point (D3DCompile → crate::dxc::compile) still stands. Practical upshot for high-volume scenes: a per-flight cap that leaves the biggest flights to the old fetch avoids the card-time cliff. Why inline copies of about 80 MB a frame cost about 160 ms of card time is still open (GPU writes into CPU-visible memory under vkd3d-proton on NVIDIA?). Sorry for the noise.


AI-assisted (Claude Code, Claude Opus 5.5).

@ryotdev

ryotdev commented Nov 25, 2026

Copy link
Copy Markdown

Native Windows RTX 5070, Series X, testing the 64 MiB default at higher changed-piece volume. On this machine in-flight fetches removed the relay wait but slowed the checkpoint from 4.72 to 1.74 FPS.

Both arms used the same diagnostic binary built from ca2513c0 with the same experimental sparse BC1 texture change, same saved checkpoint and separate copies of the same warm cache. The only switch changed was VICTORY_CARD_FETCH_INFLIGHT. Both reached 320 frames beyond the first world marker. These are the last 140 frames of one run per setting, off first.

Measurement Off On
140 frames / elapsed wall time 4.72 FPS 1.74 FPS
Median relay fetch wait 98 ms/frame 0 ms/frame
Median submitting-thread GPU wait 83 ms/frame 354 ms/frame
Device busy, estimated by the runtime 64.5% 93%
Median draws / frame 4,995 5,005
Median indirect mesh groups / frame 14,584 14,609

The on arm merged a median 1,139 pieces (70.4 MiB) per frame from slots. Both fallback landings and slot overflows had a median of zero. The last 92 frames independently gave 4.68 vs 1.74 FPS within the same two runs. Camera landmarks matched; exposure and some surfaces differed. The counters span separate threads and overlap. This reproduces the high-volume slowdown on native D3D12 as well as the Proton result above. It does not isolate its hardware cause.

WARP passed the new slot, skew/padding, overflow/wrap and late title-write tests in both modes. The full GPU unit suite had one depth-bounds assertion reproduce unchanged on the parent executable with the same DXIL environment. AI-assisted measurement and write-up.

@CuteBooty

Copy link
Copy Markdown

Series X mode on an RTX 3070 8 GB: the frame got about three times longer

ca2513c picked cleanly onto our tree (one log-line conflict in late_line). One run with the switch against one
without, same exe otherwise, VICTORY_TEXTURE_DROP_MIPS=1 in both:

Settled medians Switch off Switch on
Frame 321 ms 1,093 ms
Preparing 140 ms 531 ms
On the card 124 ms 607 ms
Copying back 228 ms 125 ms
  • The switch did what it says for copy-back (228 to 125 ms), but preparing and the card's time rose several-fold.
  • The per-frame line showed 600-1,450 pieces merged (38-90 MB) through the default 1,024 slots, with 0.5-2 landings
    a frame "fetched the old way ... because a flight's pieces overflowed the slots". So the fallback path does run
    in a game at this load.
  • No error, no device removal, no visible corruption in about five minutes.

One run each, so the size of the effect is soft; the direction was not subtle. Not tried: a larger
VICTORY_CARD_FETCH_INFLIGHT_MB, Series S mode.

Setup: RTX 3070 8 GB (driver 621.24, 32-lane waves), Ryzen 5 3600, 32 GB, Windows 11, Series X mode, 1920x1080, relay at its default (stage 2), card buffers 1 / 1024 MB, a diagnostics build.

@Jonirulah

Copy link
Copy Markdown
Author

Currently working in a fix for the Series X, i'll keep you updated to do some tests, thanks everyone

@dcastell1

Copy link
Copy Markdown

Data point from an RTX 5090 (driver 621.24, Windows 11 10.0.26300), and it is not a slowdown: with the switch the title never leaves the guest profile selector.

base: 310c6eb6 (diag) + VICTORY_LATE_WAIT=1 VICTORY_WIDE_BACK=1
      VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024
      VICTORY_SHADER_LOOP_LIMIT=32, affinity 0xFFFF, priority High

with VICTORY_CARD_FETCH_INFLIGHT=1
  13 draws/frame, 30 fps, 0.2 ms preparing, 1.4 ms GPU, 0.0 MB copied back
  for 5 minutes straight, never enters the world

control run, same .bat without the switch, same session
  world after ~2 min: 2 fps / 521.6 ms/frame, 6,296 draws/frame

The 13-draw plateau is the guest dashboard profile card, so the title is not even loading. Nothing about card fetches shows in the log at that point, which fits the switch being applied but the boot path depending on something the in-flight path does not deliver.

Matches the direction of the reports above (4.72 → 1.74 fps on a 5070, 3x frame on a 3070 8 GB): on this box it is not a regression in speed but a boot hang, so I would keep it off by default. Happy to run a build with a fix when there is one.

No game data involved; counts only.

@Peppacodes

Copy link
Copy Markdown

RTX 5080 (driver 621.24), Ryzen 7 5700X3D, Windows 11: a loss on this PC.

run VICTORY_CARD_FETCH_INFLIGHT ms/frame relay's fetch wait card busy submitting thread waiting for the card
85 0 152.1 51 ms 70 % 23 ms
86 1 240.2 0 ms 88 % 101 ms
87 0 151.7 52 ms 71 % 25 ms

AI-assisted (Claude Code).

@Jonirulah

Copy link
Copy Markdown
Author

Thanks @yualk, @ryotdev, @oeirughrepuiohg, @CuteBooty and @dcastell1 for testing and for the numbers. They pointed straight at the problem.

What's going on: two scenarios, Series S vs Series X

The amount of card-copy data that has to come back each frame depends on the console mode:

  • Series S (our setup): ~550–600 flagged pieces, ~35 MB/frame. Here the in-flight fetch is a clear win: the fetch wait went from ~139 ms to 0, and the frame from 353 to 305 ms.
  • Series X: the render is much larger, so it's 1,100–1,450 pieces, 70–90 MB/frame. That's where you all saw the slowdown (4.72 → 1.74 fps, 321 → 1,093 ms).

Why 70 MB hurts this much: effective bandwidth, not raw PCIe

70 MB at 12–15 GB/s would be ~5 ms. The cost comes from how it's moved: this version has the shader write every flagged piece straight into CPU-visible memory as thousands of scattered 16-byte stores. The effective bandwidth of that pattern is a small fraction of the bus. At Series S volume it doesn't show; at twice the volume it dominates the frame.

(Before this PR the problem was the opposite: the old fetch only brought ~3 MB, but waited ~140 ms because it was queued behind newer submissions.)

What I'm working on

A revision that stages the pieces in VRAM from the shader and brings each flight's pieces down with one DMA copy on a copy queue of its own, so they don't queue behind newer work. The old fetch stays only as a per-piece fallback, with no artificial cap. It's written and the transfer numbers look right in Series S (~34 MB in ~9 ms of copy-queue wait). I'm still chasing an image issue with it, so I won't push it until that's fixed. I'll ping here when it's ready to test.

Our Series S test setup, for reference

  • Base: fork main + Series S: the second present plane, and a plain stretch for the upscale dispatch #188 (required for Series S: without it the screen stays black and the device ends up removed), plus the PR under test.
  • Env:
    VICTORY_WINDOW_KB=1024 VICTORY_WINDOW_TAILS=1 VICTORY_INPLACE=1
    VICTORY_EARLY_TEXTURES_MS=0 VICTORY_BAKE_TEXTURES_MS=0 VICTORY_PLACED_FILLER=1
    VICTORY_WIDE_REFRESH=1 VICTORY_JOIN_COPIES=1 VICTORY_CARD_FETCH_INFLIGHT=1
    
  • Measured as the median frame time over 3 minutes in the world.

When testing, please include

  • whether you run Series S or Series X;
  • the line card copies' pieces fetched inside their flights per frame ... from the log.

@dcastell1: 310c6eb doesn't contain this feature yet; it first appears in ca2513c, the head of this PR. So in your runs VICTORY_CARD_FETCH_INFLIGHT=1 had no effect, and the boot hang comes from something else in that setup. If you can, build ca2513c and toggle only that switch.

@VibeClauding

Copy link
Copy Markdown

Series S data point on a desktop RTX 3070 8 GB (driver 610.88, Ryzen 7 5700X3D, 16 GB, Windows 11): a clear win here, which matches your Series S / Series X split.

Setup:

run VICTORY_CARD_FETCH_INFLIGHT fps ms/frame preparing on the GPU copying back
52 1 6.5–7.6 132–153 91–99 29–35 34–36
53 off 5.8–6.1 164–174 95–100 45–59 88–98
54 1 (repeat) 7.3–7.9 126–138 88–92 25–34 32–36
  • Copy-back goes from about 93 to 34 ms a frame. The relay's fetch wait reads 0.0 ms, and no device was lost.
  • Frame rate: +24% (5.9 → 7.3 to 7.7).
  • The frame is now set by the submitting thread. In run 52 it spends about 31 ms user and 57 ms kernel time inside its ~30 submissions a frame, plus 32 ms waiting for the submission lock. So, as on oeirughrepuiohg's setup, a bigger gain needs that thread to do less.
  • Without VICTORY_BAKE_TEXTURES_MS=0 the same stack ran at 3.7 fps with the switch on (run 49), because of VICTORY_BAKE_TEXTURES_MS default: the decoration-bake draws repeat (128+), world fps halves and load +110 s (Linux/Proton, RTX 4070 Ti) #594. That run tells nothing about this PR.
  • I have no Series X numbers on this branch.

AI-assisted (Claude Code); runs on my machine with my own copy, counts and timings only.

…th one copy per flight

Reviewers measured the first version slowing high-volume scenes (Series X:
1,100-1,450 flagged pieces, 70-90 MB a frame; RTX 5070 4.72 -> 1.74 fps,
RTX 3070 321 -> 1,093 ms a frame, Proton 6.3 -> 3.1 fps). Raw PCIe bandwidth
does not explain it (70 MB is ~5 ms at 12-15 GB/s): the cost was thousands of
scattered shader stores straight into a CPU-visible write-back heap.

Now CARD_FETCH runs in two stages behind a UAV barrier: tickets (one thread
per compared piece; a flagged piece takes a ticket from its flight's counter)
and copies (each ticketed piece is copied, widened to 16 bytes as the compare
hashes it, into the flight's region of a device-local staging buffer). At
landing the relay reads the flight's counter and issues exactly one
CopyBufferRegion per flight for the slots it used, all flights of a landing in
one list on a COPY queue of its own with one wait; that queue does not sit
behind newer flights the way the old fetch did.

Regions instead of the ticket ring: card_before reserves a contiguous region
per flight (one slot per compared piece, at most a quarter of the staging
buffer unless VICTORY_CARD_FETCH_INFLIGHT_MAX_KB says otherwise, so one flight
comparing 1,024 pieces can't take the whole buffer and leave every other
flight in the air to the old way), zeroes its counter, and gives it back after
the merge. The 32-bit wrap handling goes away.

Without a copy queue or memory to bring the slots down, a landing comes down
the old way (said once in the log).

Fallback is per piece: pieces past their region, of uncompared ranges, or of
flights without a region come down the old way. Merge order is the correctness
rule: all slot merges in line order (after = the plan's sent_as, minus what an
old-way fetch brought), then one old-way fetch of the leftovers merged last.
fallback_fetched_mark and the send-notes reasoning are unchanged.

CARD_FETCH no longer uses groupshared memory or group barriers, and compiler
errors are logged. Staging costs VICTORY_CARD_FETCH_INFLIGHT_MB of card memory
(64 by default).

Tests: warp_card_fetch_stages_flagged_pieces_and_they_come_down_the_same (WARP:
compare, tickets, staging copies, one copy down; bytes match, 16-byte widening,
a ticket beyond the region gets no slot), regions_in_the_air_never_share_a_slot,
inflight_slots_are_one_per_64_kib; earlier merge/notes tests kept.
cargo test --release -p victory-gpu: 124 passed, 0 failed, 2 ignored.
@Jonirulah

Copy link
Copy Markdown
Author

The DMA revision is pushed (4d28486).

The shader now stages flagged pieces in VRAM, and at landing each flight's pieces come down with one DMA copy on a copy queue of its own. The old fetch stays only as a per-piece fallback for pieces that don't fit in their flight's region, with no artificial cap. The staging buffer is 64 MB of VRAM (VICTORY_CARD_FETCH_INFLIGHT_MB).

In Series S: ~550 pieces / ~34 MB a frame come down in ~8 ms of copy-queue wait, and the image is correct. (The bright flash early in the intro is the cutscene's own fade to white; it shows up with the switch off as well.)

Most of all I need Series X numbers, since that's where the first version hurt. @ryotdev @CuteBooty @oeirughrepuiohg, when you can, please rerun with VICTORY_CARD_FETCH_INFLIGHT=1 and post:

  • Series S or Series X;
  • frame time with the switch off and on;
  • the log line card copies' pieces staged inside their flights per frame ... (it shows how many pieces fell back to the old way).

Thanks!

fxceless added a commit that referenced this pull request Nov 25, 2026
…c, draw-table slots left to their draws, no failing write-watch calls; card fetches inside their flights (off by default)

- Descriptor sync: a multiply-and-fold fingerprint of a record in place of
  BLAKE3 (35 to 42 ms a frame over 250,000 to 300,000 records), and slots
  that draws read through tables lately are left to their draws
  (VICTORY_HEAP_SYNC_TABLES=1 mirrors them too): the pass over the heap
  went from 70-220 ms a frame to about 3.
- Write watch: no kernel asking for memory the guards already hold as view
  memory (pull request #670 by Jonirulah).
- Card copies' flagged pieces can come down inside their own flights
  (pull request #648 by Jonirulah; VICTORY_CARD_FETCH_INFLIGHT=1, off by
  default). One game run with it on: no device loss, the copy-back
  thread's fetch wait 181 -> 0 ms a frame, the card busier; no frame-time
  gain claimed.
- Logging: the heap pass's texture part and buffer slots; indirect compute
  dispatches over 65,535 groups.
- README: what was measured, and that pull request #220 with
  VICTORY_INDIRECT_WINDOW=1 lost the device twice here and is not in.

One five-minute game run of this tree's source on an RTX 4070: no device
loss; the frame is still 250 to 380 ms (the card is the limit). This
merged tree was built; its test suites were not run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@yualk

yualk commented Nov 25, 2026

Copy link
Copy Markdown

@../pr648-comment.md

@iGoldenNinja

iGoldenNinja commented Nov 25, 2026 •

Copy link
Copy Markdown

I tested the integrated switch on NVIDIA fork main 9376fd60c0ba0e76a74c39b49b1407dbac0a64c7 on an RTX 5080 16 GB, driver 617.14, Windows 11 Pro 25H2 (26200.9974). Both arms used the same diagnostics executable, copies of the same warm caches and a 90-second replay in the first controllable prison room. I ran the default arm first, then VICTORY_CARD_FETCH_INFLIGHT=1.

Median reported card-copy fetch wait went from 136.25 ms to 0.00 ms per frame, while displayed application FPS fell from 3.56 to 2.53 and P99 frame time rose from 470.38 to 676.21 ms. Mean GPU busy per displayed frame rose from 202.79 to 333.06 ms. The enabled arm saw a median 73.1 MiB and 1,180 pieces per frame, with zero reported fallbacks or overflows across the 76 gameplay samples. An earlier cutscene interval logged both. Both runs accepted camera and movement input and neither logged device removal.

This is one pair in fixed order. Full measurement and setup

Separate DMA revision, Series X. I also ran the exact PR head 4d28486528d239800a79766ee6c2f9f348dca4b5 on the same RTX 5080, driver 617.14 and Windows 11 Pro 25H2 build 26200.9974. One 90-second run per setting, default first, with matching inputs and cache seeds. Both reached controllable prison. Default displayed 3.87 FPS / 423.36 ms P99 and DMA staging displayed 4.12 FPS / 464.50 ms P99. Legacy fetch wait fell from 139.10 to 46.75 ms per frame.

Across 80 enabled gameplay reports, the median staging line was 800 pieces (49.66 MiB) merged, 50.02 MiB copied, 7.0 ms copy-queue wait, 362.5 pieces flagged beyond their flight's region, 3.0 legacy fetch landings per frame. The courtyard wire was visible in both. The enabled run showed wall gaps and long hair streaks in two stationary captures 24 s apart. It also showed sky through the ceiling in the matched post-retreat view, where the default run drew the ceiling. Both runs logged the same eight distinct pipeline refusals (E_INVALIDARG) and no device removal. Exact DMA revision and full numbers

gmankab added a commit to gmankab/fxceless-victory that referenced this pull request Nov 25, 2026
With in-flight card fetches enabled, the comparison and clamp shaders
can reach FXC under Wine, where profiles with embedded root signatures
fail to compile. Use the runtime compiler fallback for both shaders so
the fetch setup can create its pipelines on Wine.

Based-on: fxceless#648
Based-on: Marvisak/VIctory#178
Tested-on: AMD Radeon RX 6800, Fedora Linux 45 (Wine/vkd3d-proton) (156 focused tests and a title launch)
Assisted-by: gpt-6.2-sol
@AaronMacArthur

Copy link
Copy Markdown

We tested Jonirulah’s in-flight readback change on an RTX 4080 SUPER in the Series S prison courtyard. It made presentation faster in both run orders. The diamond-pattern wire across the courtyard opening appeared in both controls and disappeared in both enabled captures.

We adapted commit ca2513c02bc0309fc661b9d7b9fd55e04c1722bb to a local guarded build. For each seeded run we used the same executable, save, starting caches, relay setting of 2 and GPU buffer settings of 1 / 1,024 MiB. We toggled VICTORY_CARD_FETCH_INFLIGHT and held the camera stationary. Each row uses two 64-interval presentation windows per setting, starting 108 and 239 frames after the same courtyard shader marker.

Run order Off, FPS On, FPS
Off first 5.463 5.762
On first 5.246 5.614
Pooled by elapsed time 5.352 5.687

The pooled gain was 6.25%. The median reported wait on the legacy fetch path fell from 58.6 and 60.8 ms/frame to zero in the respective runs. The enabled path merged about 41 MB/frame. A separate check on the ordinary persistent profile also ran faster, from 5.3 to 5.7 FPS in the courtyard, but the wall blocks and the player’s sleeve lost detail. The indoor camera angles differed, which limits that comparison. We haven’t isolated the cause of the wire-pattern change. That courtyard opening would make a useful visual regression check alongside the fence and byte-copy tests.

These measurements come from a Codex-assisted local port and test harness. Upstream change

@Pin0d1

Pin0d1 commented Nov 25, 2026 •

Copy link
Copy Markdown

@Jonirulah, I tested the overflow path on 4d28486 with in-flight fetching on and a 1 MiB staging buffer. Two tracked flights write 17 and then 29 to the same pieces. I let both finish on DIRECT before landing the first. Four changed pieces returned four words of 17. With five, the first landing returned four words of 17 and one of 29. The second landing returned five words of 29. The same result repeated twice per adapter on WARP and an RTX 2060 SUPER.

Is the overflow piece allowed to observe a later flight at this first landing? This may be worth specifying alongside the existing fallback tests. Test patch, control and readbacks.

Prepared with the help of Codex 6.2 Astra Max.

@SkillIssueXO

Copy link
Copy Markdown

I tested the 4d28486 staging revision on main 9376fd6 on Windows 11 with an RTX 5070 Ti. Both Series X runs used the same executable and shader-cache seed. The only switch changed was VICTORY_CARD_FETCH_INFLIGHT_MB. Each sample covered 149 presents at the same 1080p gameplay view.

Metric 64 MiB 128 MiB
FPS 4.39 4.53
Median frame time 227.30 ms 221.72 ms
p95 frame time 246.32 ms 239.01 ms
Staged pieces merged per frame 42.40 MiB 72.94 MiB
Copy queue wait per frame 3.4 ms 5.6 ms
Pieces beyond the flight region per frame 615.4 164.4
Old-path fetch wait per frame 57.9 ms 25.2 ms

The readback metrics are medians of complete host reports. There was one run per capacity. The larger allocation reduced fallback substantially, with a smaller change in frame time. Both runs rendered the character, window mesh and yard. The 128 MiB captures lacked the left-wall block pattern visible in the 64 MiB run, which remains a scene-specific observation.

AI-assisted testing.

gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
@JRamos1993

Copy link
Copy Markdown

RTX 5090, main 9376fd6: VICTORY_CARD_FETCH_INFLIGHT=1 takes the relay's fetch wait from about 155 ms a frame to 0, but the settled frame stays about the same (median 270 ms off, 273 and 283 ms on).

Setup: Windows 11, RTX 5090, diagnostics build of 9376fd6, Series X files, warm shader cache, network off. Same exe, same save and same scripted keys for every run, 420 s each. Off and on runs were interleaved. Medians of the frame lines from 150 s after the first frame line with 500+ draws, about 30 lines (170–195 s) a run.

settled, per run off (5 runs) on (2 runs)
ms/frame, median 264, 266, 270, 282, 310 273, 283
relay: waiting for fetches of card copies' pieces 148–163 ms 0
frame line's "copying back" 191–213 ms 46–50 ms
relay: waiting for the card with nothing to land 22–28 ms 166–179 ms
settles, "title memory read" 99–117 ms 73–93 ms
on the GPU 114–135 ms 129–137 ms
card: nothing of ours queued 77–86 ms 60–66 ms
preparing 99–113 ms 105 ms

With the switch on, about 1,290 pieces (80 MB) a frame were merged from slots, with 0 landings the old way and 0 overflows at the default 64 MB. That is many more pieces than the laptop numbers in the description (62–79, 3–4 MB), and the 64 MB buffer still never overflowed. No crashes in either arm.

On this card the fetch wait is gone and the relay thread is now mostly idle. The frame is still about the card's time plus the submitting thread's work: the settle on "title memory read" (mostly the per-frame fill of upload memory, #462's subject) and about 105 ms of preparing.

gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
@oeirughrepuiohg

oeirughrepuiohg commented Nov 25, 2026 •

Copy link
Copy Markdown

Tested the new head (4d28486, pieces staged on the card and brought down with one copy per flight) on Series X, the setup where the first version (ca2513c) cost us half the frame rate.

Setup: RTX 4070 Ti, Linux, Proton Experimental with vkd3d-proton, Series X. Our tree is the fork at 2119b0e plus a few open pull requests, with this PR's two commits on top. CARD_FETCH is compiled through DXC (Wine's system compiler refuses it). Relay stage 1, VICTORY_INDIRECT_WINDOW=1, VICTORY_BAKE_TEXTURES_MS=0, card buffers at their defaults (1 MiB / 1024 MB). Same exe for every run, first gameplay room, 5 minutes per run after the world appears, warm caches. Off and on runs were interleaved (on, off, on, off).

VICTORY_CARD_FETCH_INFLIGHT=1 (2 runs) off (2 runs)
frames a second 6.37, 6.67 6.12, 6.02
median frame 154, 148 ms 161, 163 ms
on the GPU (frame line) 34.5, 30.6 ms 42.8, 42.8 ms
copy-back thread waiting for fetches 20.8, 14.6 ms 61.6, 57.5 ms
copy-back thread, landing in all 98.5, 93.9 ms 132.9, 131.6 ms

The line you asked for, from one of the on runs:

card copies' pieces staged inside their flights per frame (VICTORY_CARD_FETCH_INFLIGHT=1): 934.9 pieces (57.55 MB) merged from their slots, which came down (58.44 MB) in 5.1 ms of waiting on a copy queue; 240.6 pieces flagged beyond their flight's region; 2.9 landings fetched pieces the old way (the wait above)

The other on run reports 958 pieces (59.2 MB), 6.0 ms of copy-queue wait, and 2.7 landings fetched the old way.

So at Series X volume (~950 pieces, ~59 MB a frame), this version no longer costs card time. GPU time goes down by about 10 ms, and the frame rate goes up about 6-9% where it used to halve. The leftover 15-21 ms of fetch wait probably comes from the ~3 landings a frame still fetched the old way, which may be the ones with pieces flagged beyond their flight's region (~240 a frame). I have not checked that.

No device loss and no new errors in either on run. (These ran with VICTORY_INDIRECT_WINDOW=1, which the fork README says not to combine with this switch; two runs were fine here.)


Measured and written with AI assistance (Claude Code, Claude Opus 5.5).

@CuteBooty

Copy link
Copy Markdown

RTX 3070 8 GB, Series S, DMA revision: copy-back 102 -> 24 ms, but the frame did not get shorter

Not the exact PR head: 4d28486 ported by hand onto our tree (which already had ca2513c), with one change of ours:
a flight that might spill lands before the submission lock is released. One binary, one switch changed, the same
save and scene (open water in the first boat mission, 3,600-3,900 draws), one run each of 7 and 4 minutes:

VICTORY_CARD_FETCH_INFLIGHT unset =1
Frame, settled median 221 ms (10 lines) 250 ms (16 lines); 222 ms in its first minute
Copying back 102 ms 24 ms
On the card 77 ms 122 ms
Preparing 92 ms 110 ms

Staging line with =1: 514.5 pieces (31.67 MB) merged from their slots, which came down (32.15 MB) in 4.8 ms of waiting on a copy queue; 0.0 pieces flagged beyond their flight's region; 0.0 landings fetched pieces the old way.

  • The transfer works as described at Series S volume: no overflow at 64 MB, no stall, no error, picture the same
    in both runs.
  • But the 80 ms saved in copy-back came back as 45 ms more on the card and 18 ms more preparing, so the frame was
    no shorter. That differs from VibeClauding's Series S result on the same card with a faster CPU (5700X3D); here
    the submitting thread on a Ryzen 5 3600 seems to be the limit either way (a guess).
  • The first version (ca2513c) in an earlier build this morning, same scene: copy-back 23 ms, frame 225 ms.

Both runs had VICTORY_BAKE_TEXTURES_MS=0. One run each, and run-to-run spread on this PC is large, so read it as
"copy-back clearly down, frame about the same".

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 main 310c6eb with a number of open PRs picked.

gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
@CuteBooty

Copy link
Copy Markdown

Same scene: the copy queue cut copy-back as far as the in-flight fetch did, without the extra time on the GPU

Follow-up to my numbers above for 4d28486 (copy-back 102 -> 24 ms, on the GPU 77 -> 122 ms, frame not shorter). In
the same scene, with relay fetches on a copy queue of their own instead (PR #665's queue with fork main's re-fetch):

Neither In-flight fetch (4d28486 port) Copy queue
Frame 212.7 ms 250 ms (222 in its first minute) 201.4 ms
Copying back 101.5 ms 24 ms 24.5 ms
On the GPU 78.5 ms 122 ms 72.4 ms

With the queue's re-fetch on, about 238 pieces a frame were fetched beside later submissions and about 10 of them
fetched again. Different builds for the middle column and the other two, one run each. On this CPU the queue is the
one that shortened the frame.

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 main 310c6eb with a number of open PRs picked. One run per configuration unless said; run-to-run spread here is 5-10 ms.

gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 25, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 26, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 26, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 26, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh

Copy link
Copy Markdown

I compared the existing VICTORY_CARD_FETCH_INFLIGHT switch on an RTX 3060 12 GB (610.88), i5-8400, 32 GB, Windows 11. Both runs used the same diagnostics binary based on 988aa41, Series S profile, VICTORY_QUEUE2=1, and the same starting checkpoint. The on run used a 128 MiB fetch ring. I kept reporting windows from 365 to 500 seconds with 4,250–4,750 draws/frame and less than 1 ms recorded pipeline wait. One launch per setting.

Measure Off On
Sampled frames / FPS 580 / 5.42 209 / 5.11
p90 frame time 235 ms 286 ms
Median GPU compare-list time per frame 1.5 ms 54.8 ms
Median GPU time across measured lists 74.8 ms 130.1 ms
Median copy-back time per frame 67.4 ms 70.0 ms

The on run landed roughly 30–36 MiB per frame directly from the ring in the sampled scene. The diagnostics showed no ring overflows or old-way landings there. The compare-list time includes the GPU fetch when enabled. With the separate copy queue already in use, moving the fetch into the submission did not help frame time on this setup. This is a single pair, with a warmer cache on the second launch.

AI-assisted with OpenAI Codex.

gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 26, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
gmankab added a commit to gmankab/marvisak-victory that referenced this pull request Nov 26, 2026
The current comparison shader and indirect clamp already use the
DXC fallback. In-flight card fetches still compile independently
through FXC, so Wine can disable them when the compiler rejects
their HLSL or omits the root signature.

Use the same compiler for CARD_FETCH and exercise the resulting
pipeline on the host adapter.

Based-on: gmankab/fxceless-victory@f6e4e06
Based-on: fxceless/victory-fork#20
Based-on: fxceless/victory-fork#648
Tested-on: AMD Radeon RX 6800, Fedora Linux 45, Wine 11.0 with vkd3d-proton (previous integration smoke test)
Assisted-by: gpt-6.2 sol xhigh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.