Reuse the D3D12 queue in shader tests #694

Open
github-bot wants to merge 1 commit from github-bot/gh-694 into main AGit
Owner

@⁠TokyoMkt on GitHub · 2026-11-25 04:37 UTC · original
TokyoMkt:contrib/shader-test-queue → main · +27 −13 · 1 files · 1 commits · open

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.

**@⁠TokyoMkt** on GitHub · 2026-11-25 04:37 UTC · [original](https://github.com/fxceless/victory-fork/pull/694) `TokyoMkt:contrib/shader-test-queue` → `main` · +27 −13 · 1 files · 1 commits · open 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 <[email protected]>
(cherry picked from commit 38bc6310abec025148927255a6496d0a30da0856)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:08 +00:00
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 19:29 UTC · original

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).

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 19:29 UTC · [original](https://github.com/fxceless/victory-fork/pull/694#issuecomment-7172373254) 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/694/head:github-bot/gh-694'
git switch 'github-bot/gh-694'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-694'
git switch 'github-bot/gh-694'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-694'
git switch 'github-bot/gh-694'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-694'
git switch 'main'
git merge --squash 'github-bot/gh-694'
git switch 'main'
git merge --ff-only 'github-bot/gh-694'
git switch 'main'
git merge 'github-bot/gh-694'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.