Expose idle sampled texture eviction in the F1 menu #3127

Open
Heldenkrieger01 wants to merge 1 commit from upstream-pr/3127 into main
Heldenkrieger01 commented 2026-11-29 20:09:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Heldenkrieger01 on 2026-11-29T20:09:00Z.


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.

#4580 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5554623075 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127). Originally posted by [Heldenkrieger01](https://github.com/Heldenkrieger01) on 2026-11-29T20:09:00Z. --- 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. #4580 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://github.com/trustno1-coder/VIctory-NVIDIA/pull/3128#issuecomment-7262123236) · [Earlier F1 report](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127#issuecomment-7263534333) 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.
Yuanzer commented 2026-11-29 20:34:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yuanzer on 2026-11-29T20:34:52Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7262194115 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127#issuecomment-7262194115). Originally posted by [Yuanzer](https://github.com/Yuanzer) on 2026-11-29T20:34:52Z. --- 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 commented 2026-11-29 22:15:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yuanzer on 2026-11-29T22:15:45Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7263534333 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3127#issuecomment-7263534333). Originally posted by [Yuanzer](https://github.com/Yuanzer) on 2026-11-29T22:15:45Z. --- 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.
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/3127:upstream-pr/3127'
git switch 'upstream-pr/3127'

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/3127'
git switch 'upstream-pr/3127'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3127'
git switch 'upstream-pr/3127'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3127'
git switch 'main'
git merge --squash 'upstream-pr/3127'
git switch 'main'
git merge --ff-only 'upstream-pr/3127'
git switch 'main'
git merge 'upstream-pr/3127'
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!3127
No description provided.