feat(settings): NVIDIA's shader cache size in Settings, with what it holds now #265
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!265
Loading…
Reference in a new issue
No description provided.
Delete branch "Mone/LongshotLauncher:feat/nvidia-cache-setting"
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?
The launcher never says how large NVIDIA's shader cache is, and changes it only through the home's one-time card, always to 10 GB. A player whose Windows drive is nearly full may want 4 GB instead, and one who wants more has only the control panel. This adds the setting to Settings.
Builds on #264 (Driver Default read as 1 GB): it carries that commit until #264 is merged. Review #264 first.
What changed
GLCachefolder on the disk). The picker starts at the current size, or 10 GB when that is not one of the choices.--set-nvidia-shader-cache <MB>, Windows asks), as the card does. That launcher takes only a size Settings offers (DriverSettings.CacheChoice); anything else sets nothing. A toast says the outcome, and a change clears the home's card.Testing
Tested
dotnet build LongshotLauncher.slnx -c Release: 0 warnings, 0 errors; the app tests (tests/launcher_app) pass.NvidiaCacheChecks(extended): the four choices, all at least 4 GB; their names (100 GB, Unlimited); the administrator's argument takes only those (1024,0,-1,+10240,"10 GB", a trailing space, an overflow: refused); the cache folder fromLOCALAPPDATA.Still to test
SavesChecks, andscripts/translations.pyreports catalog texts left over: both onmainas it is too, not from this change.Screenshots follow in a comment.
Screenshots (Windows 11, launcher in Italian, a local build with the other open PRs in it too). The folders' paths are blanked out.
Before, on Driver Default (1 GB, full):
After picking 4 GB and Change (Windows asked first):
Please rebase on new launcher!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.