Menu warm-up: victory play makes host pipelines beside the title at its menus #3744
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3744
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3744"
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?
@stasadance on GitHub · 2026-11-30 05:51 UTC · original
stasadance:feat/menu-warmup→main· +585 −13 · 8 files · 1 commits · closed without mergingWhat it changes
victory playnow makes host pipelines in the background while the title sits at its menus, so fewer are made in-world.victory warmon a third of the logical cores (at least 2), at idle priority, in a job object withKILL_ON_JOB_CLOSE, so it can never outlive the game.draws_per_frame), i.e. once the player is in the world.warm-done.txtat the next start.VICTORY_WARM_SHAREDtaken out). Its slow list goes toslow-pipelines-warm.txt, whichinto_libraryreads too, since the game writesslow-pipelines.txtover whole.VICTORY_MENU_WARM(default 1; 0 off; 2 and up: that many processes) is in play's settings and read fromvictory-settings.txt.How it was tested
cargo testpassed for the crates it touches: nativecargo testcannot buildvictory-gpuon a Linux host (same on main), so no;cargo xwin clippyfor the Windows target adds no warning over current main.Checked for overlap
@stasadance on GitHub · 2026-11-30 09:17 UTC · original
Added two commits after running this under Wine:
VICTORY_WARM_NICE=0leaves them alone.VICTORY_MENU_CAP_FPS(120 by default, 0 off) times a second until the player is in the world or while the warm-up runs, so the menus stop taking a core from the warm. It has its own name; at first it shared one with the frame-rate cap setting.warm-made.txtkeys pipelines a warm made by their library name, so a translator change that gives the same code doesn't make all ~88,000 again. The window title shows "warming 15.0k/88.9k pipelines" while it runs.Tested on an RTX 4090 under kron4ek Wine 11.23 (run 20261130-020521): the menus ran at 119.9-120.1 fps (title bar "120 fps 8.3 ms/frame ... warming 3.6k/88.9k pipelines"), and each warm worker was reniced to 19 within 1-2 s of starting (sampled every 3 s; workers live about 10-40 s each, so a few % of their time is still at the inherited nice). Windows clippy adds no warning over main.
@stasadance on GitHub · 2026-12-01 02:13 UTC · original
Merged current main (
e1251c3) into this branch (5258c3e). Main independently added done marks by pipeline name (known::made_for,library::name_only,done_namesinwarm.rs), which duplicated this PR'swarm-made.txtskip. I dropped ours and kept main's. What's left is the menu warm-up itself:menu_warm.rs,VICTORY_MENU_WARM, low-priority warm workers beside the title, the menu frame cap and warm progress in the title bar. Main's #4177 preload runs before launch, so it doesn't overlap with this. Windows-target clippy for victory-gpu, victory-hle and victory builds with no new warnings. The in-game run quoted above was on the pre-merge branch.5258c3e5e0to10e84bba5b@stasadance on GitHub · 2026-12-01 03:50 UTC · original
Closing this. Main's preload (#4177) now builds the pipeline book before launch: 12,428 pipelines in 606 s on our 4090 rig, run v11j. That leaves nothing for the menu warm-up or its title-bar progress to do. Thanks to everyone who looked at it.
Pull request closed