Repository navigation
Conversation
|
I found a race in the copy timer this change enables by default. On I tested a small fix on Windows. Let In a CPU-only test using the PR's |
… (#82), core/VRAM scaling (#49/#38/#42/#45/#47), scatter batching (#108), prelude textures (#80), and shader/UAV fixes Integrates 15 upstream PRs orthogonal to Issue #2's default speed-switch measurements: - GPU culling & compute cap: - Marvisak/VIctory#1731: real host D3D12 occlusion queries (wired into read_backs for both sync execute and async VICTORY_RELAY/LATE_WAIT flights) - fxceless/victory-fork#82: hardware depth-bounds test pass-through in pipelines and command lists - fxceless/victory-fork#66: lower default compute shader loop cap (4096 -> 256) - CPU multicore, streaming & memory/VRAM scaling: - fxceless/victory-fork#49: scale shadow, pipeline (keeping VICTORY_PIPELINE_THREADS override), and DirectStorage workers with CPU cores - fxceless/victory-fork#38: default-on parallel host-copy refreshes on >=4 logical CPUs (VICTORY_WIDE_REFRESH=0 opts out) - fxceless/victory-fork#108: batch adjacent zero-page unmaps in XMemMapPhysicalPagesScatter - fxceless/victory-fork#67: release directly indexed buffer ranges with their heap - fxceless/victory-fork#42, #45, #47: auto-scale card buffers, texture staging/floor, and snapshot/scratch/list pools from VRAM and RAM - Rendering smoothness & correctness: - fxceless/victory-fork#80: upload dirty title textures in HostList::prelude - fxceless/victory-fork#114: mirror placed unordered texture views onto host textures - fxceless/victory-fork#121: preserve VGPR slots observed by relative reads - fxceless/victory-fork#122: recompute ISG1 input usage and barycentrics flag after bitcode opt - fxceless/victory-fork#112: fix DXIL signature ordering for packed semantics Verified: - cargo xtask policy --staged: 21 files ok - cargo clippy --workspace --all-features --lib --tests -- -D warnings: 0 warnings - cargo test --workspace: 0 failures (140 victory-gpu incl. host occlusion query + depth-bounds tests; 226/226 victory-shader) - Live 2560x1440 run (RTX 4080, VICTORY_RELAY=2 + VICTORY_INPLACE=1): reached 3D world (frame 1285), 77 in-place windows (364 MB, 0 refused), 0.0 ms texture remap waits, 0 crashes, 0 D3D12 errors Fixes #10
|
Measured on Windows with the same build this PR was measured on (this tree plus the shader PRs; the only difference between the two runs below is this merge). Setup: RTX 4060 Ti 8 GB, Ryzen 9 5900X, Windows 11;
The frame median moved too, but I would not claim it for this PR: the two runs saw different amounts of streaming (10 against 15 world frames), and the copy lane is the only thing measured identically in both. The part that is clean is the tail - the worst copies halve - which is what I would expect from refreshing across threads rather than one after another. No game data; counts only. |
|
One more data point, on an RTX 4070 12 GB (Ryzen 7 5800X3D, 32 GB, Windows 11), same executable for both runs ( Measured over a settled window of the prologue's first scene: 12 statistics lines (about 60 s) starting at the first of three lines with the heap-buffer pass under 100 ms and at least 3,000 draws a frame, so the texture streaming of the first minute in the world is left out.
No device removal, and the world's picture is there in both. One run each, the second after the first (its cache one run warmer), so the ranges overlap (198.8–303.0 against 175.7–232.0); I did not run the reverse order. The frame time here comes from the frame line, not from the "copies" counter, so the timer race @ryotdev describes does not touch the first two rows; it may touch the "copies" row. AI-assisted. |
|
A correction to my numbers above. Two runs with identical settings turned out to differ by 20–25 ms here (the driver is still compiling new pipelines in the "settled" window), so one run per setting could not resolve a gain of this size, and the −25.7 ms I reported was mostly that. Measured again inside one run: once the world settles,
Paired B − A: median −7.0 ms over 4 pairs (+0.4, −6.2, −7.8, −13.1); the sign agrees in 3 of 4. Blocks in order: A176 B179 A182 B170 A171 B166 A177 B164. So on this machine the change helps by roughly 7 ms a frame, not 26. Small, consistent in sign, 4 pairs in one run. AI-assisted. |
|
RTX 3070 Ti 8 GB, Ryzen 5 5600X (6 cores, 12 threads), Windows 11, Series X profile, fork AI-assisted (Claude Code). |
Summary
VICTORY_WIDE_REFRESH=0as an opt-out and=1as an override; flushes still need at least four independent copies before using the worker pool.Validation
cargo test --workspace --no-fail-fast --quiet— passed (497 passed, 7 ignored).cargo clippy --workspace -- -D warnings— passed.cargo clippy --workspace --all-features -- -D warnings— passed.host.rslines had no formatter diff.The existing setting was opt-in and no open PR was found changing its default.