GPU: keep first-used pipelines in the early-start list #3565
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!3565
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3565"
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 17:58 UTC · original
andrewpozdnakov7-jpg:codex2/early-pipeline-order→main· +79 −16 · 1 files · 1 commits · openearly-pipelines.txttells VIctory which pipelines to start compiling during the next load. When one run uses more than 8,192 distinct pipelines, the current save selects an arbitrary 8,192 from a hash set. A pipeline used in the first frame can fall off the list during a long session.Keep the first 8,192 distinct keys in the order they were recorded. Repeated keys keep their original positions. When the current run uses fewer keys, the remaining slots still go to keys from previous runs in saved order. The early-list file format stays compatible. The existing prebuilt index tag includes this source file, so the next warm-up will recheck its entries.
The synthetic regression records 8,320 distinct keys with duplicates, saves the list and reads it back. In five control runs on
main63bcca4, 125–127 of the first 8,192 keys were absent. With the patch, all 8,192 survive in order. This checks cache selection. I did not time a game launch.All 12 focused library tests passed. With app-local Agility and WARP, 247 repository GPU tests plus the temporary SDK module check passed, with 1 ignored. Both strict GPU Clippy configurations and the asset policy passed.
Coordination claim
AI-assisted with Codex. Please retain the Git author on cherry-pick or rebase. If you fold this into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.@andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:02 UTC · original
Windows CI passed on
f3a0522.The regression used 8,320 synthetic pipeline keys, recorded each twice, and checked the list after reading it back. Five control runs on
63bcca4lost 125–127 of the first 8,192 keys. The patch kept all 8,192 in first-use order. The existing tests also confirmed that keys from earlier runs still fill spare slots in their saved order.The next step is maintainer review. A game-startup timing comparison would be separate evidence for the effect on load time. If reusing the change, please retain the Git author, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding it into another commit.@oni-swr on GitHub · 2026-11-27 18:27 UTC · original
Independent verification of #3565 at head
f3a05225a93345d024890175669fb068618f5805, base63bcca43c6a00a758510398fa43096ce7e4f7df0. AI-assisted: verification by Claude Code (Claude Sonnet 5.5).Environment: Windows 11 build 26200, WARP d3d10warp.dll 10.0.26100.9818 (no physical GPU),
VICTORY_WARP=1andVICTORY_D3D12_WARP=1, Windows SDK 10.0.26100 dxil.dll.Ran
cargo test -p victory-gpu --lib --features diagnostics --locked -- --test-threads=1:a_full_current_run_keeps_pipelines_used_at_startup; the two reworked tests also pass)cargo clippy -p victory-gpu --all-targets --features diagnostics --locked -- -D warnings: clean on base and on headControl: I ported the new test's scenario to the base API (8,320 keys inserted into
now,list(), read back, count the first 8,192 keys missing). It fails on base ("startup keys lost") and the real test passes on head.Review: I found no correctness problem.
notestops atEARLY_MAXfirst-use keys and ignores repeats.list()returns them in first-use order, then fills from earlier runs only up to the cap. I checked the full-cap early return, the duplicate key path and the empty-beforepath. The reworked tests still cover the earlier-run fill and the ordering across saves. This was a code and unit-test check only. I did not measure startup behaviour.@cloph-dsp on GitHub · 2026-11-27 18:32 UTC · original
Independent CPU-only verification on Windows / Rust 1.100.0 / MSVC.
f3a05225a93345d024890175669fb068618f5805, merge base63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-gpu --lib -- pipeline::library::tests::a_full_current_run_keeps_pipelines_used_at_startup --exact --test-threads=1 --quiettest result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 232 filtered out, exit 0.git grep -F -c a_full_current_run_keeps_pipelines_used_at_startup 63bcca43 -- .→ exit 1 / 0 hits (test genuinely new); present on PR head.git diff --check 63bcca43 HEAD→ exit 0.@futurepro62 on GitHub · 2026-11-27 21:54 UTC · original
NVIDIA full-suite run, to go with the reports above by cloph-dsp, oni-swr, since none of them names a GPU run. Tested exact head
f3a0522(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 867 passed, 0 failed, 10 ignored.a_full_current_run_keeps_pipelines_used_at_startup.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.