Linux notes: pipelines remade every start on vkd3d-proton's descriptor heaps; one process for warm-ups #4134

Open
github-bot wants to merge 12 commits from github-bot/gh-4134 into main AGit
Owner

@⁠kc01-8 on GitHub · 2026-11-30 16:33 UTC · original
kc01-8:kc/linux-notes-pipelines → main · +45 −2 · 1 files · 12 commits · open

CI: the check job is red on main itself (84bd61e2c) with four clippy errors: loop_caps never read (victory-shader/src/emit/lower.rs), copystat::mb and Shadow::ranged never used, and a manual .is_multiple_of() in host.rs. This PR adds no clippy error and no failing test: I checked by running the workflow's steps on this PR merged into main and on main itself. Under Wine, two tests fail now and then on main as well (xmem::a_title_thread_goes_on_using_the_rest_of_a_view, crash::concurrent_crash_records_stay_together).

What: two additions to docs/linux-proton.md, under "Compiled pipelines between runs". Docs only; no code changes.

1. With vkd3d-proton's descriptor heaps. vkd3d-proton master uses VK_EXT_descriptor_heap where the driver has it, and NVIDIA 620 does. On that path the NVIDIA cache stopped helping, measured on this tree at 41adb5516:

  • every start made some 2,400–2,800 of the early list's 3,200 pipelines again;
  • each start added 45–91 MB to the driver's cache;
  • the first 150 s ran at under 1 to 12 fps.

The likely reason: a root signature's static samplers are embedded in each pipeline, so priming them in one order at device creation (pipeline/samplers.rs) no longer fixes their places. Making a compute pipeline per listed sampler first didn't help either. With VKD3D_CONFIG=no_descriptor_heap:

  • the second start had 707 of 3,177 early pipelines left at 50 s, against about 2,400 without it;
  • later starts had none left at 40 s;
  • the first 150 s averaged 21.4 fps (DLSS performance).

The note adds that this is the same setting the doc already gives for the Xid 31, and records one Xid 109 in nine runs with it.

2. One process at a time. NVIDIA's cache keeps one main pair of files per program. A process that finds them in use writes side files under the next names: after a few victory warm runs with six processes there were seven such pairs, 3.4 GB. vkd3d-proton's cache likewise has one write archive, which is where the doc's Failed to open stream archive write file exclusively came from. On NVIDIA that archive holds shader module identifiers, flushed from a background thread once pipeline creation goes idle, so a process that exits right after its last pipeline can lose the last entries. The note recommends victory preload --jobs 1 (or VICTORY_PRELOAD_JOBS=1) or victory warm --jobs 1. The "Also seen" bullet that said how much of a preload is kept under Proton "has not been measured" now points to this section.

All measured on an RTX 3080 Ti, driver 620.73.04, Proton Experimental 11.0, vkd3d-proton b70885a5.

Context: from getting the title running on an RTX 30 card under Linux/Proton, https://github.com/kc01-8/VIctoryNVIDIALINUX (branch kc/trustno1, built on this tree). With this setting, play there renders at 19.5 fps with DLSS performance, and FSR 3 frame generation shows 35.8–37.4 frames a second.

🤖 Generated with Claude Code

**@⁠kc01-8** on GitHub · 2026-11-30 16:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4134) `kc01-8:kc/linux-notes-pipelines` → `main` · +45 −2 · 1 files · 12 commits · open **CI:** the `check` job is red on `main` itself (84bd61e2c) with four clippy errors: `loop_caps` never read (`victory-shader/src/emit/lower.rs`), `copystat::mb` and `Shadow::ranged` never used, and a manual `.is_multiple_of()` in `host.rs`. This PR adds no clippy error and no failing test: I checked by running the workflow's steps on this PR merged into `main` and on `main` itself. Under Wine, two tests fail now and then on `main` as well (`xmem::a_title_thread_goes_on_using_the_rest_of_a_view`, `crash::concurrent_crash_records_stay_together`). **What:** two additions to `docs/linux-proton.md`, under "Compiled pipelines between runs". Docs only; no code changes. **1. With vkd3d-proton's descriptor heaps.** vkd3d-proton master uses `VK_EXT_descriptor_heap` where the driver has it, and NVIDIA 620 does. On that path the NVIDIA cache stopped helping, measured on this tree at `41adb5516`: - every start made some 2,400–2,800 of the early list's 3,200 pipelines again; - each start added 45–91 MB to the driver's cache; - the first 150 s ran at under 1 to 12 fps. The likely reason: a root signature's static samplers are embedded in each pipeline, so priming them in one order at device creation (`pipeline/samplers.rs`) no longer fixes their places. Making a compute pipeline per listed sampler first didn't help either. With `VKD3D_CONFIG=no_descriptor_heap`: - the second start had 707 of 3,177 early pipelines left at 50 s, against about 2,400 without it; - later starts had none left at 40 s; - the first 150 s averaged 21.4 fps (DLSS performance). The note adds that this is the same setting the doc already gives for the Xid 31, and records one Xid 109 in nine runs with it. **2. One process at a time.** NVIDIA's cache keeps one main pair of files per program. A process that finds them in use writes side files under the next names: after a few `victory warm` runs with six processes there were seven such pairs, 3.4 GB. vkd3d-proton's cache likewise has one write archive, which is where the doc's `Failed to open stream archive write file exclusively` came from. On NVIDIA that archive holds shader module identifiers, flushed from a background thread once pipeline creation goes idle, so a process that exits right after its last pipeline can lose the last entries. The note recommends `victory preload --jobs 1` (or `VICTORY_PRELOAD_JOBS=1`) or `victory warm --jobs 1`. The "Also seen" bullet that said how much of a preload is kept under Proton "has not been measured" now points to this section. All measured on an RTX 3080 Ti, driver 620.73.04, Proton Experimental 11.0, vkd3d-proton `b70885a5`. Context: from getting the title running on an RTX 30 card under Linux/Proton, https://github.com/kc01-8/VIctoryNVIDIALINUX (branch `kc/trustno1`, built on this tree). With this setting, play there renders at 19.5 fps with DLSS performance, and FSR 3 frame generation shows 35.8–37.4 frames a second. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On vkd3d-proton master with VK_EXT_descriptor_heap (NVIDIA 620), the
static samplers are embedded per pipeline, so the samplers primed at
start no longer fix their places in the driver's table and every start
made some 2,400 to 2,800 early pipelines again. VKD3D_CONFIG=
no_descriptor_heap restores the cache's use (707 of 3,177 left at 50 s
on the second start, none at 40 s on later ones).

NVIDIA's cache and vkd3d-proton's each have one file a process writes;
parallel warm processes write side files. Warm with one process. This
answers the open question in "Also seen" on how much of a preload is
kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 16:39:43 +00:00
The main this branch last merged (84bd61e2c) is no longer in trustno1/main,
so the PR showed its old commits as changes. This merge takes trustno1/main
as it is now and puts back only this PR's own change; nothing is force-pushed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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/4134/head:github-bot/gh-4134'
git switch 'github-bot/gh-4134'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4134'
git switch 'github-bot/gh-4134'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4134'
git switch 'github-bot/gh-4134'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4134'
git switch 'main'
git merge --squash 'github-bot/gh-4134'
git switch 'main'
git merge --ff-only 'github-bot/gh-4134'
git switch 'main'
git merge 'github-bot/gh-4134'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4134
No description provided.