Reuse completed host lists when materializing thin replays #457

Open
github-bot wants to merge 2 commits from github-bot/gh-457 into main AGit
Owner

@⁠delacor on GitHub · 2026-11-27 12:05 UTC · original
delacor:pr/7900-replay-list-reuse-20261127 → main · +110 −8 · 3 files · 2 commits · open

Thin replay materialization currently creates a new host command list even when completed, reset lists are available in the idle pool. Route the constructor through fresh_list() to reuse its command allocators and private indirect budget. Pool bounds, reset and GPU-completion rules remain unchanged. VICTORY_LIST_CREATE_POOL=0 preserves the previous constructor behavior for comparison, and allocation failures keep their warning.

This applies to thin replay on any adapter; it does not depend on the software-mesh fallback or small VRAM.

Validation against main 014d52dedf on an RX 5500 XT under Linux/Wine/vkd3d-proton:

  • The isolated GPU regression fails on unchanged main because the factory bypasses the completed-list pool, and passes with the fix. It checks native-list identity, retained private budget, correct new readback and that old commands do not execute again.
  • Both existing list tests pass. Windows all-target workspace check and GPU test build pass with Rust 1.98.1 and the Windows GNU LLVM target.
  • Strict GPU Clippy reports the identical six errors on unchanged main and this branch, outside the changed code. No unrelated lint fixes are included.

Earlier measurements on a broader local integration reduced new host lists from 58.78 to 39.95 per frame. Exact-base game FPS and native Windows/7900 XTX behavior are not measured. Related #205, #255 and closed #92 trim or resize the idle pool; they do not address this constructor bypass.

AI-assisted with Codex. The regression uses synthetic buffers and contains no game data.

**@⁠delacor** on GitHub · 2026-11-27 12:05 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/457) `delacor:pr/7900-replay-list-reuse-20261127` → `main` · +110 −8 · 3 files · 2 commits · open Thin replay materialization currently creates a new host command list even when completed, reset lists are available in the idle pool. Route the constructor through `fresh_list()` to reuse its command allocators and private indirect budget. Pool bounds, reset and GPU-completion rules remain unchanged. `VICTORY_LIST_CREATE_POOL=0` preserves the previous constructor behavior for comparison, and allocation failures keep their warning. This applies to thin replay on any adapter; it does not depend on the software-mesh fallback or small VRAM. Validation against main `014d52dedf` on an RX 5500 XT under Linux/Wine/vkd3d-proton: - The isolated GPU regression fails on unchanged main because the factory bypasses the completed-list pool, and passes with the fix. It checks native-list identity, retained private budget, correct new readback and that old commands do not execute again. - Both existing list tests pass. Windows all-target workspace check and GPU test build pass with Rust 1.98.1 and the Windows GNU LLVM target. - Strict GPU Clippy reports the identical six errors on unchanged main and this branch, outside the changed code. No unrelated lint fixes are included. Earlier measurements on a broader local integration reduced new host lists from 58.78 to 39.95 per frame. Exact-base game FPS and native Windows/7900 XTX behavior are not measured. Related #205, #255 and closed #92 trim or resize the idle pool; they do not address this constructor bypass. AI-assisted with Codex. The regression uses synthetic buffers and contains no game data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 12:15:30 +00:00
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-27 12:21 UTC · original

I tried this on the Wine branch with a generated D3D12 fixture. With constructor reuse off, a completed list stays in the pool and the next constructor allocates a different list. With reuse on, the constructor takes the same list and submits it again. Both cases passed, and the thin placeholder left the pool alone in both.

Tested on an RX 7900 XT, RADV 26.3.1, Wine 11.22 and vkd3d-proton 71cae091b06571e. The same-binary 720p cold comparison is queued. Fixture and Wine port

**@⁠UwUCammie** on GitHub · 2026-11-27 12:21 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/457#issuecomment-7218139121) I tried this on the Wine branch with a generated D3D12 fixture. With constructor reuse off, a completed list stays in the pool and the next constructor allocates a different list. With reuse on, the constructor takes the same list and submits it again. Both cases passed, and the thin placeholder left the pool alone in both. Tested on an RX 7900 XT, RADV 26.3.1, Wine 11.22 and vkd3d-proton `71cae091b06571e`. The same-binary 720p cold comparison is queued. [Fixture and Wine port](https://github.com/UwUCammie/VIctory-7900XTX/commit/f5f3c6cb)
Author
Owner

@⁠delacor on GitHub · 2026-11-27 12:45 UTC · original

thanks @⁠UwUCammie !

**@⁠delacor** on GitHub · 2026-11-27 12:45 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/457#issuecomment-7218633398) thanks @⁠UwUCammie !
This pull request can be merged automatically.
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/457/head:github-bot/gh-457'
git switch 'github-bot/gh-457'

Merge

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