docs/linux-proton: the NVIDIA cache file stops being indexed past 4 GiB #3535

Open
PavelKhabusov wants to merge 1 commit from upstream-pr/3535 into main
PavelKhabusov commented 2026-11-30 00:36:58 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by PavelKhabusov on 2026-11-30T00:36:58Z.


Summary

On Linux with NVIDIA, the setup in docs/linux-proton.md (__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1) lets the title's own driver cache file grow without bound. Once it passes 4 GiB, the driver stops updating its .toc index. Every pipeline compiled after that is appended and never found again, so each start compiles the same pipelines from scratch.

This PR documents the symptom, how it was measured, and a three-line trim to run before each start. It also notes that preload processes don't warm the driver's cache for the game.

How it shows up

Measured on an RTX 4060 Laptop 8 GB, driver 615.78.08, Arch with Proton:

  • On every start, even after a fresh preload, 1400–2300 pipelines were still being made in play, at 0.2–9 fps for the first minutes.
  • perf put 79 % of the CPU in libnvidia-gpucomp, on the victory-pipelin threads. victory itself was under 2 %.
  • The pipeline library and vkd3d-proton's cache were both hit (misses=0). Only the driver's disk cache missed.
  • The title's .bin had reached 5.9 GB. Its .toc had not been written since about the time the file crossed 4 GiB.

Verification

  1. Moved the oversized .bin and .toc away.
  2. Ran one long session: the compile queue was empty after about 6 minutes.
  3. Ran two control sessions: 245, then 0 pipelines were made in play.

We now drop a .bin larger than 3.5 GiB, together with its .toc, before each start. The next run compiles into a fresh file and stays fast.

Also documented

  • The preload doesn't warm this cache for the game. Each preload process writes a file of its own, and the title never reads them. With a fresh preload and no file of its own, the first run still compiled 2356 pipelines.
  • The default cap of 1 GiB is shared by all apps and can't hold 80k+ pipelines. That's why the size has to be set at all.

Docs only, no code changes.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5556903857 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3535). Originally posted by [PavelKhabusov](https://github.com/PavelKhabusov) on 2026-11-30T00:36:58Z. --- ## Summary On Linux with NVIDIA, the setup in `docs/linux-proton.md` (`__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1`) lets the title's own driver cache file grow without bound. Once it passes **4 GiB**, the driver stops updating its `.toc` index. Every pipeline compiled after that is appended and never found again, so each start compiles the same pipelines from scratch. This PR documents the symptom, how it was measured, and a three-line trim to run before each start. It also notes that preload processes don't warm the driver's cache for the game. ## How it shows up Measured on an RTX 4060 Laptop 8 GB, driver 615.78.08, Arch with Proton: - On every start, even after a fresh preload, **1400–2300 pipelines** were still being made in play, at 0.2–9 fps for the first minutes. - `perf` put **79 % of the CPU in `libnvidia-gpucomp`**, on the `victory-pipelin` threads. victory itself was under 2 %. - The pipeline library and vkd3d-proton's cache were both hit (`misses=0`). Only the driver's disk cache missed. - The title's `.bin` had reached **5.9 GB**. Its `.toc` had not been written since about the time the file crossed 4 GiB. ## Verification 1. Moved the oversized `.bin` and `.toc` away. 2. Ran one long session: the compile queue was empty after about 6 minutes. 3. Ran two control sessions: **245, then 0** pipelines were made in play. We now drop a `.bin` larger than 3.5 GiB, together with its `.toc`, before each start. The next run compiles into a fresh file and stays fast. ## Also documented - **The preload doesn't warm this cache for the game.** Each preload process writes a file of its own, and the title never reads them. With a fresh preload and no file of its own, the first run still compiled 2356 pipelines. - The default cap of 1 GiB is shared by all apps and can't hold 80k+ pipelines. That's why the size has to be set at all. Docs only, no code changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3535:upstream-pr/3535'
git switch 'upstream-pr/3535'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3535'
git switch 'upstream-pr/3535'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3535'
git switch 'upstream-pr/3535'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3535'
git switch 'main'
git merge --squash 'upstream-pr/3535'
git switch 'main'
git merge --ff-only 'upstream-pr/3535'
git switch 'main'
git merge 'upstream-pr/3535'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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