play.ps1: -Record, -Warm and -Shaders, so warm has pipelines and the run's switches #403
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/Belobug--VIctory-Belobug-AMD!403
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-403"
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?
@Esteban-V on GitHub · 2026-11-27 00:03 UTC · original
Esteban-V:perf/warm-usable→a-publier· +60 −6 · 3 files · 3 commits · openvictory warm --usedcan only make pipelines that an earlier run wrote down, and nobody gets there through the launcher. Recording needsVICTORY_PIPELINE_BOOK=1(crates/victory-gpu/src/pipeline/known.rs:45-48), butscripts/play.ps1never sets it and removes every inheritedVICTORY_*variable before the run (play.ps1:38-41), so only an undocumented-More @{VICTORY_PIPELINE_BOOK='1'}works. With nothing recorded,warmprints0 pipelines known, ...; 0 to makewith no hint why. Andvictory shaders/victory warmrun from a plain shell can see different switches thanplay.ps1sets: sixteenVICTORY_*switches are part of the shader cache key (crates/victory-gpu/src/shader_cache.rs:86-146), so one difference makes the run miss everything warm made. This adds launcher modes that record, warm and translate with the run's own switches.play.ps1 -RecordaddsVICTORY_PIPELINE_BOOK='1'to the settings. Off by default.play.ps1 -Warmbuilds the same settings (-Safe,-RayTracing,-Fsr4K,-Build,-More,-Record) and runsvictory warm --used;-Shaders <paths>does the same and runsvictory shaders <paths>, with the paths resolved before the script changes directory.Run,Warm,Shaders:-Exeis required only forRun, and-Warm/-Shaderscannot be combined with it, so they never start the title.apps/victory/src/warm.rs: newempty_hint(known, early, used), printed after the summary line when nothing was recorded orearly-pipelines.txtis empty with--used.README.md: two sentences under theshaders/warmblock on-Record,-Warmand-Shaders.play.ps1 -Exe <path>sets the same variables and runs the same command as before.VICTORY_PIPELINE_BOOKwrites the title's shader code into the cache folder, so turning it on by default is the maintainers' call.Testing
windows-latest): Clippy, default tests and diagnostics tests pass (run).x86_64-pc-windows-msvcon a macOS host (cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features).empty_hint_only_when_there_is_nothing_to_makeadded.@Yoshi-233 on GitHub · 2026-11-27 02:23 UTC · original
I tested the launcher in
0ce04fbusing PowerShell 7.7 on Ubuntu. A native stand-in forvictory.exerecorded the actual argument list and returned a selected exit code. Paths with spaces came through correctly. Two cases may affect people scripting a warm-up:shader[1].rpfandshader1.rpfpresent,-Shaders 'shader[1].rpf'passed shader1.rpf to the child. With justsolo[2].rpfpresent, the child received one empty path. An unmatched glob alongside a valid path was silently dropped. Resolving each existing literal first (Test-Path -LiteralPath/Resolve-Path -LiteralPath), then expanding any remaining patterns and rejecting empty matches, preserved both bracketed names in my control. An intentionalstage*.rpfstill expanded to both archives.pwsh -File scripts/play.ps1, child exit codes0/7/42yielded launcher status0/0/0for Run, Warm, and Shaders. The Run behavior already occurs on base4eb6cfd; the new preparation modes inherit it. Capturing$LASTEXITCODEafter the selected child command and returning it afterPop-Locationgave0/7/42in all three modes.These checks exercise argument passing and process status only. AI-assisted testing.
@Yoshi-233 on GitHub · 2026-11-27 05:52 UTC · original
Thanks for the update, @Esteban-V. I reran the cases from my earlier comment against
6aea6e8. Both reported issues are fixed in my PowerShell 7.7 tests on Ubuntu.-Shaders 'shader[1].rpf'now passes that exact file. An intentionalstage*.rpfstill expands to both archives. A pattern with no matches exits 1 before starting the child, even when a valid archive precedes it.0,7, and42exactly. I also checked a bracketed title path and the missing-title and missing-runtime cases.This used the actual launcher with a native argument/exit-code recorder. All 18 launcher checks on the updated head passed.
@Esteban-V on GitHub · 2026-11-27 13:51 UTC · original
Oh nice, good catches!
Pushed
6aea6e8. Bracketed names go through as typed now, soshader[1].rpfactually gets that file, andstage*.rpfstill expands. If something matches nothing it stops and tells you instead of quietly dropping it.-Exehad the same bracket thing so I fixed that too.Exit code comes from victory.exe now in all three modes, which also fixes the old Run one. Hadn't even thought to check that, thanks.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.