Game: Deleting the LocalAppData shader store causes severe stutter without rebuilding shaders #2410
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2410
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Reported on Discord
Longshot version and channel
Longshot v3.1.1, stable (source 63363428). Launcher 1.2.0 (portable).
What happened
After deleting
C:\Users\<user>\AppData\Local\Longshot, the game does not rebuild shaders on startup and stutters massively. The reporter expected the portable version to keep its data portable and for the deleted shaders to be rebuilt. They report Longshot is not portable in this respect.Steps to reproduce
Delete
C:\Users\<user>\AppData\Local\Longshot, then start the game from either the launcher or the game executable.System
NVIDIA GeForce RTX 3090, NVIDIA driver 572.83; 12th Gen Intel Core i7-12700 (20 threads), 32 GB RAM; Windows 10 build 19044.
Settings
Bug report shows Insert menu settings at defaults, with Auto quality preset, 1920x1080 output, Docked profile, NVIDIA DLSS and Quality 67% (1280x720) render resolution.
LONGSHOT_NO_UPDATE_CHECK=1is set.Where and how often
Startup / subsequent gameplay stuttering after the cache deletion; frequency and in-game location not specified. The report says the run had no save loaded since starting, so the map/location is unknown.
Logs
Bug report supplied
report.txt,longshot_log.txt, andlongshot_log.1.txtfrom two consecutive runs. The current log reports 13 FPS samples (minimum 48, median 60, maximum 60), so it does not capture the reported severe stutter. It reads a 1,251,731 KB Vulkan pipeline cache and 45,571 KB merged play files, and loads 37,805 noted pipelines without building them. Crucially, it says the program cache's programs are in another shader store (77aeaad6, current store4c11088b) and it “prepared again”; the log says NVIDIA's driver-cache limit is not known. The preceding log is from the same v3.1.1 source and portable build.Still needed
Please confirm which exact contents/files were deleted under
%LOCALAPPDATA%\Longshot, whether the report's current run followed that deletion, and whether the stutter is still reproducible. The supplied logs do not show the reported severe stutter in their FPS samples, and the game Bug report does not establish the precise deletion sequence or in-game location. The report does provide GPU/driver, CPU/RAM/OS and both game logs; these are no longer outstanding.Related
Longshot#1156 tracked NVIDIA shader-cache deletion causing repeated pipeline loading and was resolved for its reporter after a pipeline-cache save fix. Longshot#2316 tracks repeated NVIDIA pipeline-cache preparation on Windows stable; it concerns repeated preparation, whereas this log shows the driver pipeline cache loaded and the noted pipelines found, but reports that the program cache refers to a different shader store. This report specifically concerns deletion of
%LOCALAPPDATA%\\Longshotand apparent behavior with portable launcher/game installs.PR #1809 (first in nightly-622-fb14ba0b) introduced a shared shader store at
%LOCALAPPDATA%\Longshot\shaders; this makes the log's different-store program-cache message relevant to the symptom, but does not establish a fix for deleting the store. PR #1418 (first in nightly-447-03788b38) fixes rebuilding every pipeline after an update that changes no shader; the submitted log already finds the noted pipelines in the pipeline cache, so it does not establish that this is the same issue. PRs #1926 (nightly-665-6e1521a7) and #1927 (nightly-695-96caf2f2) preserve pipelines across program-cache format and translator changes, respectively; the supplied log does not establish either condition. Launcher PR #243 (nightly-172-0bcccb02) raises NVIDIA's shader-cache capacity on supported Windows NVIDIA setups; the log says NVIDIA's limit is unknown, and this report is specifically after deleting Longshot's LocalAppData folder.Files from the Discord report:
Updated with more from Discord: Added the game bug report, GPU/driver, CPU/RAM/OS and settings; extracted the pipeline/program-cache messages and FPS summary, and updated what remains unknown.
Files: