Repository navigation
Conversation
|
A heads-up on overlap, in case it saves a rebase later: #265 ( Written with an AI assistant (Claude). |
|
Tested on a desktop RTX 5070, driver 610.88, Windows. I applied the GPU changes from
The final windows had 4,959 vs 4,970 median draws/frame and about 16,800 pieces compared per frame in both arms. That gives a 4.8% gain in settled FPS for this pair. The higher p90 is worth keeping in view. Both runs completed. The wide screenshot had a darker character silhouette and brighter background, but the captures were 3.6 seconds apart at different draw counts, so visual parity is still open. Both comparison shaders passed the D3D12 WARP tests with #71’s paired-sign edit and a skewed boundary/partial tail. The old #71 build missed the paired edit on the same machine. AI-assisted testing. |
|
A data point from an RX 9070 (RDNA 4, Windows 11, Adrenalin 26.11.2), in case it helps this one along. I hit the same cost independently and made the compare pass part of this change (one 64-lane group per 64 KiB piece, lanes interleaved over 16-byte blocks) in #451, before I saw this PR. This PR covers more (the hash passes too, copies ahead of one barrier), so I'm closing mine in favour of it. What I measured with the compare-only version, so it is a lower bound for this PR:
I haven't run this PR itself in the game on this card yet; I'll add the numbers here when I have them (with AI-assisted (Claude Code). |
fxceless#496 (ryotdev). After a waited (non-relay) fetch of a copy in the card's memory, the three-way merge already leaves the card's side holding the result wherever it equals what the card wrote; those ranges are no longer uploaded again before the next submission, only rehashed for the next compare (CardUpdates: upload vs hash_only). With the relay on, every merged range still goes up, as before. (cherry picked from commit 00e0c185cfadb0e08b08346acda408f9b2830894) (cherry picked from commit b7d8c44) Conflict in Host::card_before: this tree has no wide hashing pass (fxceless#253, not taken); the upload loop takes `updates.upload`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017V7WBA8CxPD68KngjiMeJb
3c9b4ce to
d8d3e4b
Compare
…r piece, behind one barrier Each 64 KiB piece was hashed by one thread, 4,096 loads in a row, and a pass before the lists was recorded per range sent up, copies and passes in turn. Timestamps in the lists on an RX 6800 gave these passes 129 of 197 ms of the card's busy time in a frame (3.5 GB hashed). VICTORY_CARD_HASH_WIDE=0 keeps the old passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d8d3e4b to
3b0521a
Compare
Keep the existing copy order and barriers. Exercise the parallel hash in the WARP compare and skewed readback tests. (adapted from commit 3b0521a, upstream PR fxceless#253)
|
I tested the standalone
Numbers are medians of nine measured batches per shader, with 16 mode-0 hash dispatches per batch, a UAV barrier between dispatches, and D3D12 queue timestamps. This measures the shader and the dispatch barrier in isolation. I also ran AI-assisted with OpenAI Codex. |
With copies kept in the card's memory (
VICTORY_CARD_BUFFERS_*), the passes that hash their 64 KiB pieces used one shader thread per piece, with a pass per range sent up and copies and passes in turn. They now use one 64-thread group per piece, and the copies come first, behind one barrier.VICTORY_CARD_HASH_WIDE=0keeps the old passes.Measured on an RX 6800 (Ryzen 5900X, Windows 11), in the world, on 7b0f736 plus our measuring tools and PastiiJay's AMD wave fixes; the same change is rebased here on a253706 and has not been run in a game on that head:
Tests on this head (3b0521a, one thread, RX 6800 and WARP): victory-gpu 169 passed, 1 failed; victory-shader 215 passed. The failure is
warp_budget_saturates_without_wraparound_and_preserves_draw_fields, which also failed 2 of 6 times on unchanged f85101b here (#847 and #849 are about it). Clippy with-D warningsfor the Windows target (both feature sets), with #841's patch on top: one error,shadow.rs(is_multiple_of), the same on unchanged a253706.With main's copy queue (
VICTORY_QUEUE2) the copies-first order keeps the landing buffer's offsets: copies are recorded in the same order as they were sent up.Not measured: NVIDIA, Intel, other AMD cards, and pictures frame by frame (the photos show the same kind of scenes). A report of the GPU ms per frame with
VICTORY_CARD_HASH_WIDE=0and without it, on any card, would help.AI-assisted.
🤖 Generated with Claude Code