play.ps1: translate every shader first when the shader cache is cold #131
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!131
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-131"
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?
@ariel-nathan on GitHub · 2026-11-27 03:21 UTC · original
ariel-nathan:play/cold-shader-cache→main· +27 −1 · 2 files · 2 commits · closed without mergingWhat
scripts\play.ps1now checks the shader cache before starting the title. If the cache folder (asvictory configreports it, sovictory.tomlandVICTORY_CACHE_DIRare honoured) holds fewer than 1,000 translations, it runsvictory shaderson the title's folder first, then starts as before.-SkipShaderskeeps the old behaviour. The README's "Getting started" says so in one paragraph.Why
On a first run with an empty cache the picture stays mostly black for minutes: the run translates shaders only as draws ask for them and drops those draws meanwhile. The README already says to run
victory shadersfirst; a launcher that does it catches the people who skip that step.Measured from the layer's own frame lines, same opening scene, Series S profile, the 4070 preset of
play.ps1:What it does not fix: the first run still spends about a minute slow in the world while the driver builds its pipelines (
host-pipelines.binis written then); later runs load them. The README paragraph says so. The remaining ~265 dropped draws a frame are the same with a warm cache.The translation runs after the settings are set: the wave-wide settings are part of the translation's cache key (
shader_cache.rs,build()), so translating under the same settings is what lets the run find the entries.Tested
Play-VIctory.cmd(it callspwsh, which this PC does not have), AMD cards.AI-assisted: written and tested with Claude Code.
🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-27 03:48 UTC · original
Thanks for the first-run measurements, @ariel-nathan. I approved the CI run on this PR and all three Windows jobs passed. The launcher change is now on
mainvia #135, with your authorship. It uses the configured game directory when available, handles literal paths with brackets, and keeps-SkipShaders. I verified the cold, warm, skip and failure paths with a stub under both PowerShell versions.github-bot referenced this pull request2026-11-27 13:47:46 +00:00
Pull request closed