Fix pipeline wait accounting and diagnose wave-size limits (RTX 5060 gameplay verified) #16
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16"
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 DexNom/VIctory. Originally posted by Castyan on 2026-11-25T18:29:56Z.
## Changes
victory translate --pipelinesso the offline translator uses the detected width by default. Explicit overrides still work.Validation
On RTX 5060 (driver 32.0.16.2124), the Windows SDK validator passed all 18 targeted compute shaders. Twelve comparison pipelines were created. The six pipelines that returned
0x80070057before the change now reportshader requires wave64, host supports at most wave32. The release diagnostics build, focused PSV regression test, and asset policy check passed.The six compute shaders still need a wave32 lowering that preserves shared-memory ordering. The breakpoint at the end of the recorded session and the scene's performance remain open.
Imported from DexNom/VIctory. Originally posted by molodayamama on 2026-11-25T18:53:59Z.
Verified on NVIDIA GeForce RTX 4060 8 GB (Ada, wave32) / AMD Ryzen 5 5600 / Windows 10 22H2 (
19045.5794) / Rust1.98.1(x86_64-pc-windows-msvc):main(2e01ab4)cargo test --locked -p xtask: 4 passed, 0 failed (196 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings(default &--all-features): 0 warnings1.614.1via #12 for Windows 10 SM 6.6; no game files):emit::container::tests::fixed_wave_size_requires_matching_lanes_in_complete_runtime_info: passedemit::wave64_tests: 7 passed, 0 failedcargo test --locked -p victory-gpu --lib: 188 passed, 0 failedImported from DexNom/VIctory. Originally posted by Castyan on 2026-11-25T19:23:03Z.
Thanks @molodayamama for the independent RTX 4060 validation. I also tested the exact PR commit (
1ae3b85, release with diagnostics) in game on an RTX 5060, driver32.0.16.2124, with the Series X profile and experimental RT off. This run used copied save data and a separate, effectively cold pipeline cache. Both upload switches were set before launch.10de:2d05) and reportedhost wave lanes min=32 max=32.required=64 max=32for02384a60fda6f2d0,369cbe906ea72764, and2da4beb386509b77. The game kept rendering after all three refusals.0xc0000005during intro prestreaming, about 2 min 21 s after launch. It attempted a null write at image offset+0x23cf683, with the next two image-relative stack entries at+0x2215c35and+0x2215eca. These match an earlier run on2e01ab4. There was no DXGI device removal in this run.This confirms the adapter and wave-size diagnostics in game. The wave32 lowering and the recurring title crash remain open. The cold-cache run does not establish a performance change or a causal link between the skipped compute dispatches and the crash.
Imported from DexNom/VIctory. Originally posted by Castyan on 2026-11-25T19:53:32Z.
Final RTX 5060 integration update for commit
e7c90ca. The build combining #1, #7, #9, #12, and #16 reached the introduction and crashed about 13 min 18 s after launch, during intro prestreaming (frame 1260).0x80000003at+0x63966f. The next four title-image stack offsets match the earlier run on2e01ab4.0xc0000005null write did not recur in this run.The breakpoint trigger remains unverified. This combined run cannot isolate the effect of any single PR.
Imported from DexNom/VIctory. Originally posted by Castyan on 2026-11-25T20:15:49Z.
RTX 5060 retest: reached interactive gameplay
Tested on Windows 11 build 26300.9974, NVIDIA driver 32.0.16.2124, Series X profile, system D3D12, and release with diagnostics. Both runs used copied saves,
VICTORY_LOG=info,VICTORY_FILL_WORKERS=4, andVICTORY_PARALLEL_PRELUDES=1, with experimental RT and GPU detiling off. The integration included #1 (a902405), #7 (3ac8713), #9 (83e78b9), #12 (999fd75), and #16.98c516d0x80000003at+0x5149aecafter 6m48s, intro prestreaming at frame 1944,INSTANCE_LIST=45000/45000.00b26e5, including6b5a8880after the suspend timeout.For samples with at least 500 draws, the median was 2,768.4 ms/frame for the reference (36 samples) and 570.9 ms/frame for the corrected run (89 samples). The last three samples in the corrected run were 249–290 ms/frame at about 5,000 draws. The cache sizes and base waits differed, so the numbers describe the two tested configurations. The corrected run ended before the breakpoint that ended the older trace run at 13m18s, and this is one successful gameplay session.
Change and verification
6b5a888charges the loading allowance once per frame. Sequential waits share one base allowance, overlapping waits count once in shared-window mode, and an outstanding wait is still counted when the next frame starts. This follows the accounting issue reported in the discussion of #7. The focused suite passed 10/10 on #16 alone and 12/12 with the integration, including #7's Present ceiling and the new regressions.6b82bc7d22016cb5and926c46bab3b86bd6to the six already recorded. An offline check validated all nine DXIL containers, and the control created its pipeline. The eight wave64 pipelines remain outside the RTX 5060's32..=32range.Recorded results and settings
Imported from DexNom/VIctory. Originally posted by andrewDoing on 2026-11-27T00:14:53Z.
I checked the new wait accounting at
6da1f12with the actualFrameWait,WaitBudgets, andframe_budgetlogic and syntheticInstants. With a 100 ms base and a 1-second cumulative allowance, frame 1 waits the full second. If frame 2 requests at t=1001 ms after that wait ends, it receives 100 ms and cumulative extra is 900 ms. If it requests at t=999 ms while the first wait is still open, it receives another full second; after both complete, cumulative extra is 1.8 seconds despite only 1 ms of overlap. The result held for all three sharing modes.The old wait is eventually charged in
end(), as the discussion notes, butbudget()considerspast_basewhen admitting the later frame and cannot account for an open wait's already elapsed excess. This is distinct from #19's completed charge being lost on rollover. I have not established whether this behavior was introduced versus the parent, or measured its gameplay frequency.Verification was AI-assisted with GPT-6.2 Astra.
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.