Expose idle sampled texture eviction in the F1 menu #3127

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

@⁠Heldenkrieger01 on GitHub · 2026-11-29 20:09 UTC · original
Heldenkrieger01:t3/sampled-evict-f1 → main · +74 −2 · 3 files · 1 commits · open

Players investigating VRAM pressure such as #3035 can turn on Evict idle sampled textures under F1 → Memory, then restart. Eviction stays off by default. Freeing idle textures can reduce memory pressure and can cause foliage flicker. This change does not establish a fix for the reported 8 GB overload.

victory play ordinarily leaves shader sample marks off. Upstream 0185ab56 measured a 5–7 ms per-frame cost in two steady stretches on an RTX 3090. A saved ON requests marks only when eviction is still enabled after raw overrides and the player has not explicitly set marks. OFF and DEFAULT keep the launcher's marks policy. PowerShell retains its existing marks-on policy and honours an explicit zero or unset. In both launchers, raw settings take precedence over the F1 preference, and command-line switches take precedence over the file. The dedicated VICTORY_MENU_SAMPLED_EVICT preference survives first-start settings migration.

#4581 proposes a pressure-triggered default and #3128 an adapter-capacity default. This PR leaves that decision to those changes. DEFAULT defers to the launcher, and an explicit raw eviction mode passes through.

Earlier manual comparisons using raw switches measured 9.4/11.1 rendered FPS with eviction off/on on an RTX 3080 10 GB. Yuanzer measured 11 median FPS off and 14–15 on across four RTX 5060 Ti 8 GB runs. Neither comparison measured temporal flicker. Earlier live F1 testing with #2244 covered the previous menu row and persistence format. The reworked launcher settings were verified separately. 8 GB comparison · Earlier F1 report

Verification covered F1 persistence, migration and effective launcher settings, seven PowerShell child-process environment probes, the rendered Memory page and staged asset policy. Both local workspace Clippy configurations encounter existing diagnostics in untouched shader code. The workspace run passed both focused regressions and reported three failures in GPU ownership and stats-panel tests before it was stopped.

Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved.

Created with GPT-6.2 Astra in Codex.

**@⁠Heldenkrieger01** on GitHub · 2026-11-29 20:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127) `Heldenkrieger01:t3/sampled-evict-f1` → `main` · +74 −2 · 3 files · 1 commits · open Players investigating VRAM pressure such as #3035 can turn on **Evict idle sampled textures** under F1 → Memory, then restart. Eviction stays off by default. Freeing idle textures can reduce memory pressure and can cause foliage flicker. This change does not establish a fix for the reported 8 GB overload. `victory play` ordinarily leaves shader sample marks off. Upstream 0185ab56 measured a 5–7 ms per-frame cost in two steady stretches on an RTX 3090. A saved ON requests marks only when eviction is still enabled after raw overrides and the player has not explicitly set marks. OFF and DEFAULT keep the launcher's marks policy. PowerShell retains its existing marks-on policy and honours an explicit zero or unset. In both launchers, raw settings take precedence over the F1 preference, and command-line switches take precedence over the file. The dedicated `VICTORY_MENU_SAMPLED_EVICT` preference survives first-start settings migration. #4581 proposes a pressure-triggered default and #3128 an adapter-capacity default. This PR leaves that decision to those changes. DEFAULT defers to the launcher, and an explicit raw eviction mode passes through. Earlier manual comparisons using raw switches measured 9.4/11.1 rendered FPS with eviction off/on on an RTX 3080 10 GB. Yuanzer measured 11 median FPS off and 14–15 on across four RTX 5060 Ti 8 GB runs. Neither comparison measured temporal flicker. Earlier live F1 testing with #2244 covered the previous menu row and persistence format. The reworked launcher settings were verified separately. [8 GB comparison](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3128) · [Earlier F1 report](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3127) Verification covered F1 persistence, migration and effective launcher settings, seven PowerShell child-process environment probes, the rendered Memory page and staged asset policy. Both local workspace Clippy configurations encounter existing diagnostics in untouched shader code. The workspace run passed both focused regressions and reported three failures in GPU ownership and stats-panel tests before it was stopped. Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved. Created with GPT-6.2 Astra in Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 20:12:55 +00:00
Author
Owner

@⁠Yuanzer on GitHub · 2026-11-29 20:34 UTC · original

Two integration notes from local testing:

  • The 8 GB engine validation is in #3128: with the same candidate and fixed 12:00 Series X 1440/92% scene, eviction OFF stayed at 11 FPS / 92?96 ms while ON reached 14?15 FPS / 67?72 ms across an off-on-on-off order. The ON logs actually evicted about 2.4 GB of idle sampled textures. There were no crashes or device removals; I did not make a temporal flicker comparison.
  • To avoid this new F1 row falling back to English after both PRs merge, #2244 now contains zh-CN entries for "EVICT IDLE SAMPLED TEXTURES" and its about text.
**@⁠Yuanzer** on GitHub · 2026-11-29 20:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127#issuecomment-7262194115) Two integration notes from local testing: - The 8 GB engine validation is in #3128: with the same candidate and fixed 12:00 Series X 1440/92% scene, eviction OFF stayed at 11 FPS / 92?96 ms while ON reached 14?15 FPS / 67?72 ms across an off-on-on-off order. The ON logs actually evicted about 2.4 GB of idle sampled textures. There were no crashes or device removals; I did not make a temporal flicker comparison. - To avoid this new F1 row falling back to English after both PRs merge, #2244 now contains zh-CN entries for "EVICT IDLE SAMPLED TEXTURES" and its about text.
Author
Owner

@⁠Yuanzer on GitHub · 2026-11-29 22:15 UTC · original

Integration check with #2244 at 14dc775e plus this PR's head (45a4c42), built as a release binary and run live on the RTX 5060 Ti 8 GB / i7-14700KF setup:\n\n- F1 in zh-CN exposes 回收空闲采样纹理 with the help text 使用着色器采样标记释放长期没有使用的纹理,可降低显存压力,但可能让植被闪烁。重启游戏后生效。\n- After opening the row it showed 默认; one Enter changed it to 开 and displayed the save-at-next-start notice.\n- %LOCALAPPDATA%\victory\victory-settings.txt then contained exactly VICTORY_SAMPLED_EVICT=1.\n- The row/help/value text kept complete lower strokes in the live Unicode renderer and did not overflow the 60-cell F1 box.\n- Screen capture was taken in the loaded world at 10,574 draws/frame, not on the loading screen; the run log contained no error or device-removal message.\n\nThis verifies the F1 integration and persistence path. I left the setting ON for the subsequent 8 GB memory test.

**@⁠Yuanzer** on GitHub · 2026-11-29 22:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127#issuecomment-7263534333) Integration check with #2244 at 14dc775e plus this PR's head (45a4c42), built as a release binary and run live on the RTX 5060 Ti 8 GB / i7-14700KF setup:\n\n- F1 in zh-CN exposes 回收空闲采样纹理 with the help text 使用着色器采样标记释放长期没有使用的纹理,可降低显存压力,但可能让植被闪烁。重启游戏后生效。\n- After opening the row it showed 默认; one Enter changed it to 开 and displayed the save-at-next-start notice.\n- %LOCALAPPDATA%\\victory\\victory-settings.txt then contained exactly VICTORY_SAMPLED_EVICT=1.\n- The row/help/value text kept complete lower strokes in the live Unicode renderer and did not overflow the 60-cell F1 box.\n- Screen capture was taken in the loaded world at 10,574 draws/frame, not on the loading screen; the run log contained no error or device-removal message.\n\nThis verifies the F1 integration and persistence path. I left the setting ON for the subsequent 8 GB memory test.
github-bot force-pushed github-bot/gh-3127 from edfb36df2e to bbdbede662 2026-11-30 14:25:47 +00:00 Compare
github-bot force-pushed github-bot/gh-3127 from bbdbede662 to ca8595d931 2026-11-30 14:36:56 +00:00 Compare
github-bot force-pushed github-bot/gh-3127 from ca8595d931 to 84b9b033c7 2026-11-30 16:39:56 +00:00 Compare
github-bot force-pushed github-bot/gh-3127 from 84b9b033c7 to 6b96ce671a 2026-12-01 00:40:45 +00:00 Compare
github-bot force-pushed github-bot/gh-3127 from 6b96ce671a to 1ec608c263 2026-12-01 01:36:01 +00:00 Compare
github-bot force-pushed github-bot/gh-3127 from 1ec608c263 to 1bd2a18b18 2026-12-01 18:37:01 +00:00 Compare
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/3127/head:github-bot/gh-3127'
git switch 'github-bot/gh-3127'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3127'
git switch 'github-bot/gh-3127'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3127'
git switch 'github-bot/gh-3127'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3127'
git switch 'main'
git merge --squash 'github-bot/gh-3127'
git switch 'main'
git merge --ff-only 'github-bot/gh-3127'
git switch 'main'
git merge 'github-bot/gh-3127'
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!3127
No description provided.