Menu warm-up: victory play makes host pipelines beside the title at its menus #3744
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by stasadance on 2026-11-30T05:51:44Z.
What 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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by stasadance on 2026-11-30T09:17:02Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by stasadance on 2026-12-01T02:13:17Z.
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 #4176 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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by stasadance on 2026-12-01T03:50:36Z.
Closing this. Main's preload (#4176) 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