Pipeline library: the first game run after victory preload --all rebuilds the library down to that run's pipelines (1158 MB to 164 MB) #3883

Open
opened 2026-11-30 10:13:36 +00:00 by github-bot · 3 comments
Owner

@⁠JSa25 on GitHub · 2026-11-30 10:12 UTC · original

What happens.

  1. victory preload --all filled the pipeline library to about 1.16 GB (5,658 pipelines).
  2. The next game run, one short walk in the opening cell, ended with:
host pipeline library rebuilt with the pipelines this run used (VICTORY_LIBRARY_KEEP_MB=0: never) before=1158573366 after=163642054 kept=2225 again=290 refused=0

Why. pipeline::library::finish calls compact once the library is over VICTORY_LIBRARY_KEEP_MB (1024 MB by default), at the end of any run that used at least COMPACT_LEAST (1000) pipelines. It keeps only the pipelines this run used.

What it costs. A full preload survives exactly one run. Places that run didn't visit compile again on first use. On this PC each pipeline made in a run took 566-1023 ms on average (make_ms_each in the library line). Made during play, that is a hitch.

The trade-off. The limit is there for libraries full of stale names, such as the RTX run in the comment above keep_bytes: 80,703 pipelines in 4.78 GB, of which that run loaded 986. A preloaded library is the opposite case: everything in it is current.

Possible directions (your call):

  • Leave the library alone when it was written by a preload since the translator last changed.
  • Drop only names the current translator can no longer make, and keep every current one.
  • Raise the default.

Workaround: VICTORY_LIBRARY_KEEP_MB=4096 (or 0).

Setup: RTX 5090, Ryzen 9 9950X3D, Windows 11, main of Nov 29 (7995b81b) plus local changes; the code is unchanged on 41adb551.

AI use: Claude Code (Claude Opus 5.5) found this in the logs and wrote this text. Posted with the account owner's approval.

**@⁠JSa25** on GitHub · 2026-11-30 10:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3883) **What happens.** 1. `victory preload --all` filled the pipeline library to about 1.16 GB (5,658 pipelines). 2. The next game run, one short walk in the opening cell, ended with: ``` host pipeline library rebuilt with the pipelines this run used (VICTORY_LIBRARY_KEEP_MB=0: never) before=1158573366 after=163642054 kept=2225 again=290 refused=0 ``` **Why.** `pipeline::library::finish` calls `compact` once the library is over `VICTORY_LIBRARY_KEEP_MB` (1024 MB by default), at the end of any run that used at least `COMPACT_LEAST` (1000) pipelines. It keeps only the pipelines this run used. **What it costs.** A full preload survives exactly one run. Places that run didn't visit compile again on first use. On this PC each pipeline made in a run took 566-1023 ms on average (`make_ms_each` in the library line). Made during play, that is a hitch. **The trade-off.** The limit is there for libraries full of stale names, such as the RTX run in the comment above `keep_bytes`: 80,703 pipelines in 4.78 GB, of which that run loaded 986. A preloaded library is the opposite case: everything in it is current. **Possible directions (your call):** - Leave the library alone when it was written by a preload since the translator last changed. - Drop only names the current translator can no longer make, and keep every current one. - Raise the default. **Workaround:** `VICTORY_LIBRARY_KEEP_MB=4096` (or `0`). **Setup:** RTX 5090, Ryzen 9 9950X3D, Windows 11, main of Nov 29 (7995b81b) plus local changes; the code is unchanged on 41adb551. AI use: Claude Code (Claude Opus 5.5) found this in the logs and wrote this text. Posted with the account owner's approval.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 10:13:36 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 10:12 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 10:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3883#issuecomment-7275277889) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠JSa25 on GitHub · 2026-11-30 15:17 UTC · original

Not a crash, so there is no crashes.log. RTX 5090, Windows 11. These are the library's own lines from the run (the full log is not attached because it holds local paths). The library was filled by victory preload --all before this run:

2026-11-30T05:00:19.334541Z  INFO victory_gpu::pipeline::library: host pipeline library loaded bytes=1157949046 mapped=true
2026-11-30T05:01:48.866886Z  INFO victory_gpu::pipeline::library: host pipeline library saved bytes=1158025060 early=2562 made=2 loaded=2507 started_early=4741 load_ms_each=11 make_ms_each=56
2026-11-30T05:01:58.416000Z  INFO victory_gpu::pipeline::library: host pipeline library rebuilt with the pipelines this run used (VICTORY_LIBRARY_KEEP_MB=0: never) before=1158573366 after=163642054 kept=2225 again=290 refused=0
2026-11-30T05:01:58.418500Z  INFO victory_gpu::pipeline::library: host pipeline library saved bytes=0 early=2563 made=6 loaded=2509 started_early=4741 load_ms_each=11 make_ms_each=290
**@⁠JSa25** on GitHub · 2026-11-30 15:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3883#issuecomment-7282743090) Not a crash, so there is no crashes.log. RTX 5090, Windows 11. These are the library's own lines from the run (the full log is not attached because it holds local paths). The library was filled by `victory preload --all` before this run: ``` 2026-11-30T05:00:19.334541Z INFO victory_gpu::pipeline::library: host pipeline library loaded bytes=1157949046 mapped=true 2026-11-30T05:01:48.866886Z INFO victory_gpu::pipeline::library: host pipeline library saved bytes=1158025060 early=2562 made=2 loaded=2507 started_early=4741 load_ms_each=11 make_ms_each=56 2026-11-30T05:01:58.416000Z INFO victory_gpu::pipeline::library: host pipeline library rebuilt with the pipelines this run used (VICTORY_LIBRARY_KEEP_MB=0: never) before=1158573366 after=163642054 kept=2225 again=290 refused=0 2026-11-30T05:01:58.418500Z INFO victory_gpu::pipeline::library: host pipeline library saved bytes=0 early=2563 made=6 loaded=2509 started_early=4741 load_ms_each=11 make_ms_each=290 ```
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 15:45 UTC · original

@⁠JSa25, thanks for the library lines. The load and rebuild timestamps are about 99 seconds apart, within the short-session case #3459 handles.

I reproduced the loss on v2026.11.30.01 in the active adapter library. The same WARP fixture kept 1,000 of 5,000 generated entries on release main and all 5,000 with #3459. The tested current-release branch is ready for the matched check you discussed with OGShotz.

If you can repeat that same short walk after preload --all with the default size limit, the active library size immediately before and after and the final library message are enough. Please omit local paths. Test details in #3459

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 15:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3883#issuecomment-7283537026) @⁠JSa25, thanks for the library lines. The load and rebuild timestamps are about 99 seconds apart, within the short-session case #3459 handles. I reproduced the loss on `v2026.11.30.01` in the active adapter library. The same WARP fixture kept 1,000 of 5,000 generated entries on release main and all 5,000 with #3459. The [tested current-release branch](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/tree/review/3459-preload-retention-301) is ready for the matched check you discussed with OGShotz. If you can repeat that same short walk after `preload --all` with the default size limit, the active library size immediately before and after and the final library message are enough. Please omit local paths. [Test details in #3459](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/3459)
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#3883
No description provided.