F1 menu: CLEAR SHADERS removes the preloaded shader caches (#496) #607
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!607
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-607"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@bekandev on GitHub · 2026-11-28 01:50 UTC · original
bekandev:feat/f1-clear-shader-cache-v2→main· +343 −29 · 8 files · 3 commits · openCloses #496.
F1 menu: CLEAR SHADERS (RESTARTS THE GAME), right after PRELOAD SHADERS. It asks for a second Enter like PRELOAD does, then saves and restarts through the menu's restart path with
VICTORY_CLEAR_SHADERS=1for that one start. Before the caches open, the start removes only the shader cache folder (cache_subdir("shaders")) and its siblingpipelines. Settings, saves, logs, images and NVIDIA/AMD files stay. It logs the files and bytes removed to the play log. A missing folder is not an error.Safety:
prepareand never kept. A--setor savedVICTORY_CLEAR_SHADERS/VICTORY_PRELOADdoesn't reach the environment or a menu restart (restart_args), so restarts that keep their options (#197) don't clear again.victory play --preload,victory preload, andplay-foxhound.ps1 -Preload), so a fresh preload isn't wiped.known-pipelines.bin/known-shaders.bin), so a preload right after only translates shaders until play records them again.Tests:
crates/victory-core/src/config.rshas 5 tests: deletion scope, missing folders, no folders created, links, source-tree refusal.apps/victory/src/play.rshasa_clear_or_a_preload_is_not_a_setting. The menu layout tests cover the new item order (CLEAR=3, RESET=4, EXPORT=5, IMPORT=6).Checked on Windows (GitHub
windows-latest, my fork):cargo build --workspace --locked --all-targetsis ok.cargo test --workspace --locked: victory-core 18 passed, victory 25 passed, menu tests ok. victory-gpu is 440 passed, 3 failed:indirect::tests::host_list_budget_starts_empty_at_each_submission,indirect::tests::warp_batch_charges_every_executionandpipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws. The same 3 fail on maina4d05e7with the same workflow, so they're not from this change. Clippy with-D warningsstops on lints that are already on main (about 40, in victory-gpu and victory-loader, none in files this touches). The second commit fixes the one invictory-formats/src/texture.rs:1346so that crate passes; drop it if you prefer.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.