Pretranslate from shaders.rpf, the executable and its DLLs #440
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/440"
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?
Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T12:04:13Z.
Refs #421 (point 4, the shader scan).
play.ps1passes the whole game folder tovictory shaders --if-needed. On main that reads every file under 2 GiB, which on the 1.0.2.1 dump is 93 files and about 44 GB. #421 measured over 40 minutes on a hard disk. #439 removes the 2 GiB skip, so the same call would read all 209 GB.Where the shaders are, same dump, empty cache each time:
fe7c6e5)cfd5ebd)shaders.rpf+.exe+.dllat the top (18 files)shaders.rpfaloneScanning each file on its own puts the shaders outside
shaders.rpfinXboxBvhBuilder.dll(52),amd_fidelityfx_upscaler_xbox.dll(29) andgame_scarlett_master.exe(15). Nothing indata\,pack\or the other big archives gives one. With #439 the big archives are mapped whole, and the full-folder scan held about 45 GB of the file in the process working set while it ran (page cache, about 0.3 GB private).Change:
shaders.rpf,play.ps1passesshaders.rpfand the.exeand.dllfiles beside it. Otherwise it passes the folder as before.Checked by running the new launcher lines on their own, without the title, with both builds: 25,788 on main and 25,985 with #439, the same as their whole-folder scans. The second run prints "Shader cache already pretranslated" in 1 to 2 s. Existing caches get one rescan, since the source paths are part of the stamp, but every translation is already cached.
cargo xtask policyis clean.#439's new
-RequirePreload/-PreloadOnlypath also passes the whole folder and could use the same list.AI-assisted: yes
🤖 Generated with Claude Code
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T13:23:27Z.
Thanks for measuring the scan scope. I have adapted the shader-bearing file selection for the optional launch path. I am keeping the mandatory preload path on the full scan until the same shader set is verified locally; the reported 1.0.2.1 results are promising.
Imported from TaynanGT/Vice-Tay. Originally posted by safesearch77 on 2026-11-30T11:15:29Z.
One data point from Linux / Proton for this PR. On Linux, the whole-folder scan under #439 does not just take a long time: it never finishes, so
linux/play.shwould rescan on every launch.Setup: #439 at
cfd5ebd(diagnostics build),victory shaders Z:\gameon the 1.0.2.1 dump, GE-Proton11-14, CachyOS, RTX 4070 Laptop 8 GB, NVMe.audio.rpfat 26.6 GiB). WithVICTORY_LOG=info,victory::shader::scan=debug, the one that fails islevels.rpf(70.9 GiB): It failed the same way in both runs. Nothing in this sandbox limits address space (ulimit -vis unlimited,overcommit_memory=0). Your Windows table shows the whole-folder scan getting through with #439, so this looks like Wine'sMapViewOfFilerefusing a single view of that size, not something the scanner does wrong.check_precompile_scan, no completion marker is written, sorun shaders --if-neededinlinux/play.shrepeats the whole pass at every launch and then continues. #430's top-level list still includeslevels.rpf, so it would hit the same failure.The file list in this PR (
shaders.rpfplus the.exeand.dllfiles beside it) never openslevels.rpf, so the same list inlinux/play.shshould fix the problem on Linux too. Separately, a fallback inMappedFile::open(smaller views, or a streamed read when the whole-file view is refused) would keep a full-folder scan working under Wine. I haven't tested either change yet. I'm happy to test whichever one lands, or to send theplay.shside once it's clear how it should fit with #430.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:06:48Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:18:41Z.
Thanks for trying this under Proton and posting the log. The
levels.rpffailure is the useful bit: 70.9 GiB is too big for a singleMapViewOfFileview under Wine, and theshaders.rpf+ exe/dll list never touches it. A fallback inMappedFile::openfor refused views sounds worth trying too. If either holds up on the newmain(#468), send it as a PR and I'll review.Pull request closed