CLI: schedule each pipeline key once per prebuild #3568
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3568
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3568"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:22 UTC · original
andrewpozdnakov7-jpg:codex2/prebuild-distinct-jobs→main· +16 −6 · 1 files · 1 commits · openTwo records in a shader pack can resolve to the same pipeline key. The prebuild used to send each record to a worker. On a cold cache, the first worker creates the pipeline and the others can repeat the work of loading it from the host library.
Schedule one job per key and report how many records share a key. Pipelines from the early list still go first. The diagnostic key listing keeps one row per pack record.
I compared
main63bcca4with this patch throughvictory translate --cache --pipelines --jobs 4on Windows with Agility and WARP. The generated pack has 17 compute records and two distinct keys.mainBoth runs saved the same two prebuilt keys.
VICTORY_PREBUILD_KEYSproduced the same 17 records before and after the change. This fixture measures work counts. A title-sized timing comparison remains open.All 18 application tests passed in both feature configurations. Strict Clippy and the asset policy passed. #2787 changes the same scheduling block, so combining the two patches requires a merge there.
Coordination claim
AI-assisted with Codex. Please retain the Git author if reapplying this change. If folding it into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.@andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:25 UTC · original
Windows CI passed on
3a8c8ab.With 17 synthetic records for two keys, the cold run still made both pipelines and avoided the 15 redundant library loads. The warm run found both saved keys. All 17 diagnostic rows match the control. A one-worker run also confirmed that a key seeded in the early list is made first.
Next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.@pickles976 on GitHub · 2026-11-27 18:47 UTC · original
Verified the dedup mechanism on this Wine/RTX 4060 Laptop using production #3568 head
3a8c8ab9b8plus the previously verified #1722 null-blob empty-library bootstrap. This is a dirty local integration, not an exact-head pass; the only added production behavior is that Wine prerequisite. Local CLI fixture and test-only dev-dependency/lockfile changes are retained.One bounded CLI integration test passed (0 ignored, 6.84 s, fresh intended-tree build 8.61 s). The synthetic input has 17 records representing two distinct pipeline keys, with different identifying instruction prefixes and thread-group metadata to avoid conflating this with #3521's primary-container fix.
Observed/asserted:
This verifies actual CLI scheduling/library creation/persistence, not shader dispatch, a retail-size corpus, matched-parent timing, measured loading RAM/stutter improvement, or gameplay. Initial attempts failed on my added fixture's lockfile entries, missing identifying v_nop prefixes, and an adapter-log assertion that incorrectly assumed Wine native logs are captured in the Windows child's stderr. Those harness issues were corrected; they are not PR failures.
Linux 6.17, Wine 11, NVIDIA 590.48.1, 16 GiB RAM/8 GiB VRAM; diagnostic-relaxed-vtable vkd3d 2576c0b4adfae4a+, not stock certification. Vendor unmasked; all existing guards retained. Sampled GPU peak290 MiB, available RAM minimum11143.4 MiB, disk minimum11.493 GiB. Evidence
.compat-runtime/logs/verify-victory3568-prebuild-dedup-native-20261127T184605Z/.Next meaningful performance comparison is a matched real-corpus cold/warm workload on a runtime-cleared rendering stack, without treating already-present counters as shader execution.
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.