VFS: XCL's shader cache on a drive a console mount names stays where it is #331
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!331
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/331/head"
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?
@imnicho on GitHub · 2026-11-23 23:33 UTC · original
imnicho:vfs-shader-cache→main· +51 −4 · 2 files · 1 commits · merged 2026-11-24 00:03 UTCWith the shader cache on a PC drive that the title's mounts name –
XCL_DXIL_CACHE=D:\…, or a user profile onD:, the console's game drive – the title's process takes the cache's paths for console paths: it writes its DXIL and translations into the title's overlay and reads them from there. The folder that was named is neither read nor written, so whatxcl shaders --precompilewrites (no mounts there) is not found by the title, and a title's cache is in its own overlay instead of the folder titles share.in_own_folders(#49) already keeps the game folder and the title's data folder out of the mounts; the shader cache is outside both.What is in it
crates/xcl/src/vfs.rs:Vfs::own_foldernames a folder of XCL's own besides the title's data, andin_own_folderscounts it. Testa_console_drive_mount_leaves_xcls_shader_cache_on_that_drive: withoutown_folderthe cache file is classified as a game file (written to the overlay), with it the path is passed through; a sibling folder and the rest of the drive stay the console's.crates/xcl/src/host.rs: the host namesrecomp::dxc::cache_dir().Tested
hardware: Intel Core i7-7700K, 16 GB RAM, NVIDIA GeForce RTX 5080 (driver 610.47), Windows 10 22H2 (19045), rustc 1.100.0
stable-x86_64-pc-windows-msvc; debug for the tests, release for the title.cargo build --workspace && cargo test --workspace -- --test-threads=4on603cdd3: 666 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu_wave32_program_in_wave64_hardware,gpu_geometry_wave32_prefix_count_over_a_mask– no wave64).game checked: the newer retail title of the README, with the game folder and
XCL_DXIL_CACHEboth onD:. The cache folder was filled beforehand (402 files, a new folder name, so nothing of it in the overlay), then three 60 s runs, DXIL cache hits / misses fromreport.json:<title data>\overlay\<the folder's path>main85bdf21main85bdf21603cdd3main)With the folder full,
mainmisses 26 of 29 lookups and leaves 23 files in the overlay; its second run reads those. The PR's build reads the folder.Regression run
main:
PR:
(The frame count is this Intel CPU's: #306 is about that and is not part of this change.)
Not tested
XCL_DXC_DIR,XCL_D3D12_DIR): not looked at.xcl shaders --precompileitself: the folder in the runs above was filled by an earlier run of the title with this change, not by a precompile.AI use
Duplicate check before opening (2026-11-23 23:32 UTC,
maindb1ddb2): read #49, #150, #158, #160, #171, #174, #255, #316 (case folding and verbatim roots in the same file, other lines; the two merge together cleanly).🤖 Generated with Claude Code
@ivall on GitHub · 2026-11-24 00:03 UTC · original
Merged (
a6f5f7a). Checked on an RX 9070 (RDNA4) on maina6f5f7a, together with #335, #322, #331, #330, #338, #318 and #332:cargo test --workspace -- --test-threads=4- 636 unit tests passed, 0 failed; the retail game reaches its menu and draws it (frame dump) and goes on past it.