fix: shader cache key and keyboard prompt glyphs #3708
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3708
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3708"
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?
@victorportelada on GitHub · 2026-11-30 04:25 UTC · original
victorportelada:pr/small-fixes→main· +4 −12 · 2 files · 2 commits · closed without mergingTwo small fixes
1. Shader cache key: drop switches removed upstream
The cache-key test still compared two translator switches that no longer exist in the shader emitter. Keeping them in the key test could invalidate the cache for no reason. This removes them from the key check;
cargo test -p victory-gpu --lib shader_cachepasses (11 tests).2. Keyboard prompt glyphs with the stock MNK bindings
run.rsonly installed the keyboard key-cap hook when a customVICTORY_MNK_BINDINGSfile was set, so the defaultbindings.inipath showed controller glyphs even with mouse and keyboard on. The hook now installs when keyboard prompts are requested regardless of whether bindings came from the default file or a custom one. On the test rig the log now readsprompts keyboard keys: hook placedandthe title loads the icon movie with key caps.cargo test -p victory-game --lib promptspasses (36 tests).Both changes are small, independent and text-only. No game data is included.
@Trillazill on GitHub · 2026-11-30 05:13 UTC · original
Reviewed against
41adb551. I think therun.rshalf would show the wrong keys, and theshader_cache.rshalf is already in two open PRs.run.rs: the key caps aren't the keys ofbindings.ini. The prompts hook draws each icon asvictory_core::pad::fallback_key, the keyboard's stand-in gamepad (prompts.rs: "each icon becomes the key that the keyboard's stand-in gamepad binds to the icon's control").bindings.ini, whichvictory playwrites when MOUSE AND KEYBOARD is on, is the MnK profile, with different keys for most controls:pad.rs)bindings.inidefaultSo with this change, an MnK player who sees "press Q" would get LB on the stand-in pad's keys but RB on theirs, and "press F" means LS for one and Y for the other. Main's early return is there for that.
fea7bb3c, which added it, also says so in the README: "The optional custom mouse-and-keyboard profile continues to use gamepad prompts." With the defaults written unchanged, the keys still differ, so the comment "The key glyphs are the stock Victory bindings.victory playwrites that same file" doesn't hold.Keyboard prompts with MnK on would need the icons drawn from the parsed
bindings.ini(mnk::parse, private tovictory-hletoday) rather thanfallback_key, and redrawn if #3722 lands (it reads the file again while the game runs). That's a bigger change than this one. Until then, the gamepad pictures are the honest choice there. If that README line is hard to find, a pointer from the log line (prompts gamepad pictures: ...) might help more.shader_cache.rs: the same edit (VICTORY_SCALAR_SPLITSout ofKEYED, the fourVICTORY_ORACLE_*names out of the "not keyed" list) is in #3385 and #3530, line for line. Those two also drop theAtomicBoolimport. Splitting this half off, or dropping it in favour of whichever of those lands first, would save a conflict.@trustno1-coder on GitHub · 2026-12-01 18:49 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed