first run: learn the title's pipelines, then restart and prepare them #333

Manually merged
github merged 1 commit from github-bot/gh-333 into main 2026-12-03 16:54:23 +00:00 AGit
Owner

@⁠Bushyon on GitHub · 2026-12-03 15:46 UTC · original
Bushyon:first-run-learning → main · +286 −92 · 4 files · 1 commits · merged 2026-12-03 16:49 UTC

Relates to #65. It gets the largest portion of the title's pipelines prepared before the first real session. It does not find every pipeline, so it should not be read as closing every part of that issue.

What a new install does now

  1. play prepares what the game files give (2,743 pipelines).
  2. The game opens and presses Enter by itself, in the same window as a benchmark run (once a second, 5 to 65 s), to get into the world. A box at the bottom left says what is happening and not to touch anything.
  3. Once no new pipeline has come for 60 s, it closes and writes the restart flag run.sh already answers.
  4. The restart prepares everything learned and opens the game again.

Skipped with VICTORY_WARM=0, in benchmark runs, without run.sh, and whenever 20,000 or more pipelines are already known.

Measurements

RX 7800 XT, Ryzen 9 7900, 31 GB, Fedora 44, Series X profile, fresh pipeline and Mesa caches, existing save games.

Without the change

First play Second play (all prepared)
Preparation before the game 169 s (2,743) 238 s (89,615 left of 94,200)
native pipeline missed at first use 1,842 4
Median fps in the world (5 s log windows) 24.6 24.0
Windows under 20 fps 32 of 115 26 of 105
Worst window early in the world 7 fps about 15 fps

With the change

Run A Run B (final Enter window)
First preparation about 170 s 170 s
Learning run, game open about 105 s about 105 s
Pipelines known when it restarted 94,194 89,193
Preparation after the restart 246 s, all 94,194 on disk 85,519 to make, not timed to the end
Misses after the restart 0 not measured

Run A pressed Enter up to 180 s; run B is the code in this PR (65 s). The misses during the learning run itself (950 or so) fall in the unattended run.

About 60,700 pipelines are declared at the start screens by themselves. The rest (28,500 to 33,500 here) come only once the world loads, which is why Enter is pressed. The two runs differ by about 5,000; I have not established why. Whatever is not learned is compiled at first use, as before.

Limits

  • Not every pipeline is found; a few more appear later in play (12 of 94,200 in the unchanged first play, after the first minute or so).
  • If the world is not loading within the Enter window (a slow machine), only the start-screen share is learned.
  • Tested with existing saves. A machine with no save may land on other screens.
  • Only Series X on one RDNA 3 card was tried.
  • It removes first-use misses and the deepest early drops. It did not noticeably change median fps or the ongoing hitches here.
  • A first play takes longer before it is playable: roughly 9 minutes on this machine, and about 8 GiB of cache.

victory-core tests and the Windows build pass; tested in the game on the machine above. Most of the panel.rs diff is the HUD drawing moved into blit, so the notice can use it.

**@⁠Bushyon** on GitHub · 2026-12-03 15:46 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/333) `Bushyon:first-run-learning` → `main` · +286 −92 · 4 files · 1 commits · merged 2026-12-03 16:49 UTC Relates to #65. It gets the largest portion of the title's pipelines prepared before the first real session. **It does not find every pipeline**, so it should not be read as closing every part of that issue. ### What a new install does now 1. `play` prepares what the game files give (2,743 pipelines). 2. The game opens and presses Enter by itself, in the same window as a benchmark run (once a second, 5 to 65 s), to get into the world. A box at the bottom left says what is happening and not to touch anything. 3. Once no new pipeline has come for 60 s, it closes and writes the restart flag `run.sh` already answers. 4. The restart prepares everything learned and opens the game again. Skipped with `VICTORY_WARM=0`, in benchmark runs, without `run.sh`, and whenever 20,000 or more pipelines are already known. ### Measurements RX 7800 XT, Ryzen 9 7900, 31 GB, Fedora 44, Series X profile, fresh pipeline and Mesa caches, existing save games. **Without the change** | | First play | Second play (all prepared) | |---|---|---| | Preparation before the game | 169 s (2,743) | 238 s (89,615 left of 94,200) | | `native pipeline missed at first use` | 1,842 | 4 | | Median fps in the world (5 s log windows) | 24.6 | 24.0 | | Windows under 20 fps | 32 of 115 | 26 of 105 | | Worst window early in the world | 7 fps | about 15 fps | **With the change** | | Run A | Run B (final Enter window) | |---|---|---| | First preparation | about 170 s | 170 s | | Learning run, game open | about 105 s | about 105 s | | Pipelines known when it restarted | 94,194 | 89,193 | | Preparation after the restart | 246 s, all 94,194 on disk | 85,519 to make, not timed to the end | | Misses after the restart | 0 | not measured | Run A pressed Enter up to 180 s; run B is the code in this PR (65 s). The misses during the learning run itself (950 or so) fall in the unattended run. About 60,700 pipelines are declared at the start screens by themselves. The rest (28,500 to 33,500 here) come only once the world loads, which is why Enter is pressed. The two runs differ by about 5,000; I have not established why. Whatever is not learned is compiled at first use, as before. ### Limits - Not every pipeline is found; a few more appear later in play (12 of 94,200 in the unchanged first play, after the first minute or so). - If the world is not loading within the Enter window (a slow machine), only the start-screen share is learned. - Tested with existing saves. A machine with no save may land on other screens. - Only Series X on one RDNA 3 card was tried. - It removes first-use misses and the deepest early drops. It did **not** noticeably change median fps or the ongoing hitches here. - A first play takes longer before it is playable: roughly 9 minutes on this machine, and about 8 GiB of cache. `victory-core` tests and the Windows build pass; tested in the game on the machine above. Most of the `panel.rs` diff is the HUD drawing moved into `blit`, so the notice can use it.
A new install knows under 3,000 pipelines before the game starts; the
title declares about 94,000 while it runs, and each is compiled at first
use. A first play now presses Enter as a benchmark run does, shows what it
is doing, ends once no new pipeline has come for 60 s and asks run.sh to
start again, which prepares everything learned.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 15:48:21 +00:00
Author
Owner

@⁠Bushyon on GitHub · 2026-12-03 15:48 UTC · original

The ~5,000 difference between runs is all in the world-load batch (33,508 vs 28,508); the start-screen batch was 60,680 both times. Probably the character's position in the world, not confirmed. Testing on low-end hardware is needed, especially whether the world loads within the 65 s Enter window. If you try it, please share the count at restart, whether it got into the world by itself, and your CPU/GPU/RAM.

**@⁠Bushyon** on GitHub · 2026-12-03 15:48 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/333#issuecomment-7383773119) The ~5,000 difference between runs is all in the world-load batch (33,508 vs 28,508); the start-screen batch was 60,680 both times. Probably the character's position in the world, not confirmed. Testing on low-end hardware is needed, especially whether the world loads within the 65 s Enter window. If you try it, please share the count at restart, whether it got into the world by itself, and your CPU/GPU/RAM.
github manually merged commit ff29993dbb into main 2026-12-03 16:54:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.