perf(pipelines): RX_VK_PCACHE_LOAD=0 skips the 2.5 GB pipeline cache file (~3 GB less RAM; opt-in) #2206
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!2206
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/pcache-load-switch"
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?
mkw_vk_pipelines.bingrows with every pipeline ever built (2.5 GB in this test folder; 961 MB on an AMD player's). At every start it is read whole (pcache_init: a 2.5 GB vector, thenvkCreatePipelineCachewith it) and the driver keeps it in memory for the whole session. Each save also allocates the whole cache again.RX_VK_PCACHE_LOAD=0starts with an empty cache and doesn't save it, so the driver's own shader cache does the work. Off by default: nothing changes unless it is set.A/B
RTX 4060 Ti, 25-minute route (Kokiri, Hyrule Field, Kakariko), docked 1440p, 2 rounds each, alternating:
PCACHE_LOAD=01PCACHE_LOAD=02That's ~2.7 GB less commit and ~3 GB less resident memory. The worst frame was lower both times, stutters were mixed, start-up was 2.4 s longer, and there were no crashes.
Why not the default
NVIDIA's driver cache on this PC was warm. On a fresh install, or a driver whose own cache is small or cleared (AMD; older NVIDIA defaults), skipping the file could mean pipelines compiled in play: stutter. It is for players near the commit limit: tonight an RTX 3060 player's game crashed after 54 minutes on an uncaught exception at 30.7 GB of commit. A default needs data from AMD and a cold driver cache first.
🤖 Generated with Claude Code
github-sync referenced this pull request2026-11-12 06:22:54 +00:00