Pipeline library: keep pipelines whose static samplers were primed; quick ones leave the slow list #1114
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1114"
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 mrp1no on 2026-11-28T13:28:29Z.
What happens
Pipelines with static samplers never go into the pipeline library (
7fa0e95): one loaded in another process read through the samplers at its places in that process's driver table. They are made at every start, and on this PC the driver's own cache does not find them:host pipeline library saved bytes=0 ... made=1102 loaded=960at every start (same build, same settings).slow-pipelines.txt: 651 keys, 2.2 s median, 5.5 s p90.Since then
samplers::primemakes the samplers ofstatic-samplers.txtfirst, in one order, in every process, so their places are the same everywhere.lut3d_probeon the RTX 3060 (64 samples each):SHIFT=10(the fault7fa0e95avoids)SHIFT=10(what the primed order gives)What this changes
primeis loaded from and stored in the library. Its name holds their places, so a list made again in another order finds none of the pipelines stored before.compose,tiles,indirect). Pipelines with those are made, as now, and stored from the next start on, onceprimehas made them.VICTORY_LIBRARY_STATIC_SAMPLERS=0keeps none, as now;=1keeps all, as before7fa0e95.SLOW_MS(now: loaded from the library) leavesslow-pipelines.txt. Listed, it still waited behind the quarter of the workers slow ones may have (make::slow_limit), two at a time here.Measured (same PC, same save, prologue's cell)
VICTORY_PIPELINE_SLOW=0, which part 2 makes unneeded once the list is cleaned)Tests
pipeline::library::tests::primed_static_samplers_keep_the_library_under_their_places(new): kept only with places; the places are in the name; nothing changes for pipelines without them.pipeline::library::tests::a_slow_pipeline_that_comes_quickly_leaves_the_slow_list(new).pipeline::library::tests::pipelines_with_static_samplers_skip_the_library: unchanged, for the unprimed case.cargo test -p victory-gpu --lib -- pipeline::: 27 passed.cargo clippy -p victory-gpu --all-targets: only theshadow.rswarning that main has.Not tried: other cards. The probe only checks the driver's sampler table, and the reasoning holds wherever
primeruns first.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cxy0072019-sketch on 2026-11-28T13:59:07Z.
Reproduced the restart improvement on an RTX 5070 Ti 16 GB (621.24), i5-14600KF, Windows 11. I applied
b987e99to a local #1069 / #932 / #1018 test branch. Series S, 1080p output, no DLSS or frame generation.I copied the same warmed translation cache, 122,698,558-byte host pipeline library and static sampler list into two separate launch states. The two states had their own fresh driver caches. The executable and copied prologue save were identical. Enabled means the conservative default, and disabled sets
VICTORY_LIBRARY_STATIC_SAMPLERS=0.The office and complete face rendering were visible in both arms. One restart per arm on this machine, so the result is specific to this warmed-cache launch and says nothing about steady-state FPS.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by sawetco on 2026-11-28T15:02:10Z.
I compared the patch at
b987e99against my usualv2026.11.27.10build with #541 and #1111. The test build added #1114 to that same base and started with copies of the same F1 settings, save, and VIctory cache. My setup was an RTX 5070 on Windows 11 with NVIDIA 621.40, Series X at 1080p to 1440p, DLSS Quality and DLSS Frame Generation 2x.I launched the patched build twice and timed loading the same way as on the baseline. I saw no noticeable difference in loading time across those two launches.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mrp1no on 2026-11-29T03:28:59Z.
Rebased onto current main (
568c5e5). Main movedaniso_point_miptocrate::sampler, soprimed_placesnow callscrate::sampler::aniso_point_mip.cargo check -p victory-gpu --testsis clean and the pipeline tests pass. #1268 is rebased on top.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T08:28:09Z.
Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.