Repository navigation
Pipelines: the early list started from the book at the title's first pipeline (builds on #1114) - #1268
Open
mrp1no wants to merge 2 commits into
Open
Pipelines: the early list started from the book at the title's first pipeline (builds on #1114)#1268mrp1no wants to merge 2 commits into
mrp1no wants to merge 2 commits into
Conversation
…nd drop quick ones from the slow list Pipelines with static samplers never went into the library (7fa0e95): a pipeline loaded in another process read through the samplers at its places in that process's driver table. Since the samplers of the list are made first in one order (`samplers::prime`), those places are the same in every process. On an RTX 3060 (driver 621.40) the driver's own cache did not find these pipelines either: about 1,100 were made at every start, 2.2 s each (median), 4.5 minutes at 3.5 fps in the world. - A pipeline whose static samplers were all made by `prime` is loaded from and stored in the library, under a name that holds their places. Samplers met later in a run may come after the layer's own (composite, tiles): pipelines with them are made as before, and kept from the next start on. VICTORY_LIBRARY_STATIC_SAMPLERS=0 keeps none (as before), =1 keeps all (as before 7fa0e95). - A pipeline listed as slow that comes in under SLOW_MS (loaded from the library) leaves slow-pipelines.txt: listed, it waited behind the quarter of the workers slow ones may have at every start. lut3d_probe on the RTX 3060: stored and loaded with the same ten samplers made first, 64 of 64 samples filtered; loaded after ten others, 0 of 64 (the fault 7fa0e95 avoids). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pipeline At the title's first pipeline, the early list's pipelines (those earlier runs drew with) are described from known-pipelines.bin and started at once; when the title creates one of them it gets the same pending pipeline (make::adopt), so each is loaded once. The title creates about 900 of them only when it loads a save, seconds before the world's first frame. VICTORY_PIPELINE_PREFETCH=0: started only at the title's creation, as before. The library's save line says how long a load and a make took on average. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #1114 (its commit is the first one here); only the last commit is new. Without #1114 there is nothing to gain: the pipelines with static samplers are compiled at every start, and those compiles set the pace. Measured: 1,301 made, the queue empty 205 s after the world's first frame, as without this.
What happens
The early list (
early-pipelines.txt: the pipelines earlier runs drew with) is started when the title creates each pipeline. The title creates about 1,400 of them at its start, and about 900 more only when it loads a save, a few seconds before the world's first frame. Those 900 are loaded from the library then. While the title's threads run, a load takes 0.1-0.2 s on the lowest-priority workers.Measured with #1114 alone on an RTX 3060 (driver 621.40), i7-11700K, 32 GB, Series S, 720p:
What this changes
known-pipelines.bin(the bookVICTORY_PIPELINE_BOOK=1keeps;playturns it on) and started at once, on a thread of their own: 2,383 described in 0.2-0.3 s. They load during the logos and the menu.make::adoptgives it the same pending pipeline, so each is loaded once. Only keys on the early list are shared; every other pipeline gets its own, as now.VICTORY_PIPELINE_PREFETCH=0: as before.load_ms_each,make_ms_each).Measured (same PC, same save, warm library)
It varies with how soon the save is loaded after the menu (Enter was pressed by a script within seconds).
Tests
pipeline::make::tests::a_pipeline_made_ready_is_the_one_the_title_gets(new): a key on the early list gives one pending pipeline; any other key gives each its own.cargo test -p victory-gpu --lib -- pipeline::: 28 passed.cargo clippy -p victory-gpu --all-targets: only theshadow.rswarning that main has.🤖 Generated with Claude Code