Repository navigation
Conversation
…and refresh_front
|
Tested in a batch on an RTX 3080 Ti + Ryzen 7 5700X, 1440p, DLSS Quality, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s run into the prison cell scene. Batch: #516, #501, #498, #497, #532, #521. |
|
Measured on an RTX 5080 16 GB + Ryzen 9 9950X3D (Series X, 1440p, DLSS Performance, frame generation off, diagnostics build on
Two runs of plain Same machine and scene with and without the title's ray tracing: #535. |
|
Thanks for the feedback. |
Problem
Three hot CPU paths allocate unnecessarily per piece / per submission:
Shadow::relay_merge(crates/victory-gpu/src/shadow.rs): callstitle.clone()on every differing 64 KiB piece.send::take(crates/victory-gpu/src/host/send.rs): iteratesrangestwice (separately for runs and short-word count).Batch::refresh_front(crates/victory-gpu/src/host.rs): allocates a 2-elementVecvia.collect::<Vec<_>>()forsummed.Change
thread_local!Vec<u8>buffer inShadow::relay_mergeinstead oftitle.clone().send::take.VecinBatch::refresh_frontwith a stack[u64; 2].Pure refactor with no behavioral change (
3 files changed, 25 insertions(+), 10 deletions(-)).Verification
cargo test --release --locked -p victory-gpu --lib shadow::(passed)cargo xtask policy(290 files ok)cargo build --release --locked -p victory(succeeded)Part of the low-stutter patch stack tested in https://github.com/tiadiff/VIctory-NVIDIA-LowStutter.