Skip to content

Reuse the D3D12 queue in shader tests - #694

Open
TokyoMkt wants to merge 1 commit into
fxceless:mainfrom
TokyoMkt:contrib/shader-test-queue
Open

TokyoMkt wants to merge 1 commit into
fxceless:mainfrom
TokyoMkt:contrib/shader-test-queue

Conversation

@TokyoMkt

@TokyoMkt TokyoMkt commented Nov 25, 2026 •

Copy link
Copy Markdown

Ports God489's change from Zettrox/ztrx#11. Reuse one D3D12 queue per shader test host; each draw or dispatch still has its own allocator, list and fence. No runtime changes.

RTX 5070, Windows 10 with Agility SDK 1.620.2, two serial runs: 82–91 s before, 19.5–20.5 s after. Each run had 214 passed and 3 ignored. SM 6.6 WARP cases skipped on this machine.

Host::dispatch and Host::draw made a new D3D12 command queue on every call, about 28 ms on an RTX 3050 (0.4 ms on WARP) and most of each GPU test case. The queue is now made once per Host, in test builds only. cargo test -p victory-shader --lib: 78.3 s -> 16.0 s on the RTX 3050.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 38bc6310abec025148927255a6496d0a30da0856)
@HAL9000RELOADED

Copy link
Copy Markdown

RX 7900 XTX, Windows 10 + Agility 1.620.2 (#402), main d510ee4. cargo test -p victory-shader --lib, two serial runs each after building: base 20.2 s / 20.1 s, this PR 8.6 s / 8.5 s. Results are the same (215 passed, 0 failed, 3 ignored).

PiloteCode added a commit to PiloteCode/victory-fork that referenced this pull request Nov 25, 2026
…am: 25,953 of 25,953), fxceless#196 loop exits with the host wave, fxceless#262 execz skips over loops, fxceless#213 a missing child is a miss, fxceless#788, fxceless#806, fxceless#748, fxceless#817 translate --hashes and translate-diff, fxceless#820, fxceless#694 one queue per test host
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.

3 participants