Repository navigation
RTX 5060 Ti: heap writes in pieces, Reflex's sleep off the submitting thread, send spares kept under pressure, launcher folding first - #3411
Conversation
… submitting thread Measured on an RTX 5060 Ti + Ryzen 7 7700X (docs/findings.md, from "What was learned on an RTX 5060 Ti" on). - VICTORY_WIDE_PIECES (on in the launcher, crate::wide): the skinning passes' writes through the title's whole 174 MB heap are declared as the 64 KiB pieces found written. Heavy city stretches 83.4 -> 76.0 ms a frame. - VICTORY_REFLEX_ASIDE (on with DLSS): slReflexSleep every frame on a thread of its own. Without any call of the app's the driver made Reflex's sleep inside our present, on the thread every submission is prepared on. Diagnostics A/B standing: median frame 46.8 -> 42.2 ms; with the player moving through the city: -20.9 ms a frame (it sat at 71.4 ms without it). - VICTORY_FAULT_UNLOCKED (on in the launcher): the title's write faults open guarded blocks without the guards' lock. - A faster compare of the card's copies (thirty-two loads at once, the parts nine at a time). - Off, experimental: VICTORY_GUARD_AHEAD (no gain standing or moving), VICTORY_SUBMIT_CORE, VICTORY_REFLEX_MODE; timeline recording fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under host memory pressure the sweep let every spare of the send memory go once a second; with the title at 20 GB of a 32 GB PC the pressure never ends, and the memory every frame sends from was released and made, mapped again at once: 9.9 % of the submitting thread in Map of new send memory and 7.2 % releasing it (profile, RTX 5060 Ti). Now only the spares no submission gave back since the sweep before go (all of them when commit is critical, as before). Release at the save point: 14.8-17.1 -> 19.6-20.7 fps, copies in the card's memory 16.9 -> 9.6 ms a frame. The diagnostics build compiles again: copystat's window-trim line had no `mb`, and the submission's own `timing` hid the GPU-timing switch in `Host::submit`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_SUBMIT_SPLIT) Main's port of Biskwit/VIctory-reloaded's split send, off there until measured on more machines. Diagnostics A/B at the save point, RTX 5060 Ti + Ryzen 7 7700X (5 phases of each of four combinations): frame 44.6 -> 42.0 ms, the submitting thread 41.6 -> 38.2 ms, screenshots alike; release medians 23.7 -> 23.7 and 24.7 fps. VICTORY_GUARD_AHEAD gave nothing again. findings.md: the gap left after the merge with main was the save point moving (the branch before the merge, run beside the merged one at the new save point: 18.7 and 20.4 fps against 23.2 and 23.3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since e2d7854 the reflections' miss program (CS_RayMiss) is left out for opaque and transparent surfaces. Without the ray-tracing structures it is what writes the texels of the rays the screen-space passes resolve nothing for, so those texels kept whatever the memory held: with the transient render targets sharing memory (VICTORY_ALIAS_TARGETS), another target's bytes. On Series S every car window and shop glass showed red, green and purple glitter (RTX 5060 Ti, 2026-11-29; upstream trustno1-coder#2464, trustno1-coder#2139, trustno1-coder#2440). Where it is left out, the program is now bound and its image cleared in its place by a pass of ours (ambient::clear_miss): no reflected light there instead of old bytes. VICTORY_RAYMISS_CLEAR=0 leaves the image as it was. One diagnostics run alternating it every 8 s at a street corner: the glitter in every shot without it, clean glass in every shot with it; frame times 71.3 against 71.0 ms (within the noise). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With folding off (v2026.11.29.02, 5c262d7) an RTX 5060 Ti lost the device (DXGI_ERROR_DEVICE_HUNG) 43-92 s into the world in every release run, as upstream trustno1-coder#3050 has on an RTX 5080; with VICTORY_WAVE_FOLDED=1 none of ten runs did. Rays missing every node while the structure builder is off and the NaN scrub, as `victory play` sets them, cost no card time on a replayed frame (37.37 against 37.16 ms). play.rs's texture switches are left out: with them the save point took 2.7 GB more of the card's memory and 3.5 GB more of the PC's, and ran slower (docs/findings.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/victory-gpu/src/host/send.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…load buffer churn Selective upstream trustno1-coder#1279, trustno1-coder#3271 and trustno1-coder#3411. Preserve list identity, refusal diagnostics, memory caps, critical commit purge, shader translator and cache keys. Include upstream planner and spare retention tests; run targeted host tests in CI.
Carried ahead of upstream, each behind its own switch or strictly local: - trustno1-coder#3379 the commit floor scales to the PC's RAM, so a 16 GB PC still admits driver compiles (without it every PSO compile is put off, and the scene draws nothing); - trustno1-coder#3398 a draw's wait ends when the memory guard puts the compile off, so a drawing thread does not sit 500 ms at the commit limit; - trustno1-coder#3065 the ambient depth table is bound by the resolve only, and frame generation is asked again once DLSS-G allows more frames; - trustno1-coder#3067 the ray test misses inverted boxes, as the console's does (VICTORY_BVH_MISS; the authors measure +57 % with ray tracing); - trustno1-coder#3063 the BVH rehydration stops at 32 rounds and the builder's memory is coherent only where it asks (VICTORY_BVH_REHYDRATE_MAX, VICTORY_BVH_COHERENT_GLC; the authors measure +15 %); - trustno1-coder#3406 VRAM is checked before the first streamed textures are allocated; - trustno1-coder#3128 sampled texture eviction is on by default through 10 GB of VRAM; - trustno1-coder#3413 the relay fence context survives a GPU device loss. Left for a hand rebase, because they sit in the paths our parallel submit and DLSS work rewrote: trustno1-coder#1978 (keep the DLSS frame generation inputs through presentation) and trustno1-coder#3411 (the RTX 5060 Ti bundle).
Carried ahead of upstream, each behind its own switch or strictly local: - trustno1-coder#3379 the commit floor scales to the PC's RAM, so a 16 GB PC still admits driver compiles (without it every PSO compile is put off, and the scene draws nothing); - trustno1-coder#3398 a draw's wait ends when the memory guard puts the compile off, so a drawing thread does not sit 500 ms at the commit limit; - trustno1-coder#3065 the ambient depth table is bound by the resolve only, and frame generation is asked again once DLSS-G allows more frames; - trustno1-coder#3067 the ray test misses inverted boxes, as the console's does (VICTORY_BVH_MISS; the authors measure +57 % with ray tracing); - trustno1-coder#3063 the BVH rehydration stops at 32 rounds and the builder's memory is coherent only where it asks (VICTORY_BVH_REHYDRATE_MAX, VICTORY_BVH_COHERENT_GLC; the authors measure +15 %); - trustno1-coder#3406 VRAM is checked before the first streamed textures are allocated; - trustno1-coder#3128 sampled texture eviction is on by default through 10 GB of VRAM; - trustno1-coder#3413 the relay fence context survives a GPU device loss. Left for a hand rebase, because they sit in the paths our parallel submit and DLSS work rewrote: trustno1-coder#1978 (keep the DLSS frame generation inputs through presentation) and trustno1-coder#3411 (the RTX 5060 Ti bundle).
|
We ran a test of this PR with its two new switches,
No gain we can measure on this release build (the controls alone spread over 9 ms). Picture: in round 1, one frame out of 160 had the palms and the potted plants by the house missing; they were back in the next frame. We saw none in the 320 control frames of this session, nor in 800 earlier control frames on this base. We have seen the same one-frame vegetation gap with #3502, #3476 and #1561. It may be a timing-sensitive problem in main that these changes make more likely, rather than this PR alone, but we wanted you to know. Setup:
Picture check: a burst of 10 captures a second at the end of each run (80 frames), looked at frame by frame. AI Assisted |
…LEX_ASIDE=1 (slReflexSleep on a thread of its own, off) The driver slept inside our present on the submitting thread: Sleep under nvwgf2umx under sl.dlss_g, 10 % of the thread's time while the camera turned (profile rot-prof3). Camera turning, release, frame generation on: mode 0 21.5 fps, mode 2 21.9, the sleep aside 21.5, against 22.0 as before (run rot-base3): the defaults stay. The idea of upstream trustno1-coder#3411. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sharing controlled A/B data on RTX 5070 Ti + Ryzen 7 9800X3D with DLSS Quality + 3x MFG ON (so NVIDIA Reflex is actively engaged, complementing @DoubleD17's FG-off test):
Telemetry Notes
Test Setup
|
Important follow-up on per-frame pacing (�ictory_gpu::frame_times P95 / P99 / >50 ms frames) under 3x MFG: While the 5-second average FPS nudged up with VICTORY_REFLEX_ASIDE=1 in the table above, inspecting the exact per-frame �ictory_gpu::frame_times lines from the exact same logs revealed a major frame-pacing / 1% Low regression when slReflexSleep is moved onto an unwaited thread with 3x MFG active:
Calling slReflexSleep off-thread without synchronizing back appears to break Reflex pacing under 3x MFG, turning steady ~32–41 ms frames into alternating sawtooth bursts (1.4% -> 18.4% of frames exceeding 50 ms). Sharing this correction so the pacing trade-off is completely transparent. |
…(review of trustno1-coder#3411) Two testers of trustno1-coder#3411. On an RTX 5070 without frame generation no gain, and once in 160 frames some vegetation missing for a frame. On an RTX 5070 Ti with 3x frame generation Reflex's sleep aside gave 1.25 fps more on average but twice the frames over 50 ms. The A/B runs here, read again, agree: standing, the median frame 46.4 -> 42.3 ms but the p95 51.2 -> 57.3 ms and the frames over 50 ms 10.3 -> 13.4 %; moving, the frame no longer held at 71.4 ms. With the sleep aside nothing paces the frames. VICTORY_WIDE_PIECES leaves a piece first written after a copy's first 64 frames undeclared for a few frames, in which a title write sends the title's bytes over the shaders'. Both switches stay, off unless asked for (docs/findings.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you both, @DoubleD17 and @ColorC: this changed the pull request (904bc40).
🤖 Generated with Claude Code |
Conflicts resolved by keeping both sides: - host.rs, CARD_COMPARE: main's capture of the pieces found differing (`taken`, compare bits 2 and 4, every thread past the hash) with our 32 loads at a time and the 64 hashes read nine at a time, now inside main's `if (thread == 0u)`. Compiles with d3dcompiler_47 (cs_5_1). - host/send.rs, trim: our sweep that keeps the spares in use (`staying`), and main's recycled send plans cleared when commit is critical. - shadow.rs, gpu_writes and shader_writes: main's `unified_stats` count, then our big-range narrowing (`crate::wide`). - watch.rs, guard_ahead: main replaced `publish(&blocks)` with `publish_range(first, last)` (8bd49cd); the guarding ahead publishes its range after the asking as main's `writes()` does. cargo check --workspace --all-targets passes (with main's two test calls of card_pass given their new argument, which main itself lacks); its only warnings are main's own (`Shadow::ranged`, `loop_caps`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Related: #3050 (the device hung with folding off, RTX 5080), #2323 (the launcher against
victory play), #2440 and #2464 (glitter in windows)What it changes
Five commits from measuring one PC (RTX 5060 Ti 16 GB on PCIe 4.0 x8, Ryzen 7 7700X, 32 GB), each with its A/B in
docs/findings.md("What was learned on an RTX 5060 Ti" and the sections after it). Each stands on its own, in this order, so any of them can be dropped:VICTORY_WIDE_PIECES(newcrate::wide, off unless asked for): the skinning passes' writes through the title's whole 174 MB heap are declared as the 64 KiB pieces found written instead of all of it. Heavy city stretches 83.4 -> 76.0 ms a frame (diagnostics A/B). A piece first written after a copy's first 64 frames is not declared until a look finds it, a few frames later, and a title write into it meanwhile sends the title's bytes over the shaders': so the launcher does not set it (see the review below).VICTORY_REFLEX_ASIDE(off unless asked for):slReflexSleepevery frame on a thread of its own. Without any call of the app's, the driver made Reflex's sleep inside our present, on the thread every submission is prepared on (3-6 ms a frame). Diagnostics A/B standing: median frame 46.8 -> 42.2 ms; moving through the city, 20.9 ms a frame less (no longer held at 71.4 ms). But nothing paces the frames then, so they come less evenly: the launcher does not set it (see the review below).VICTORY_FAULT_UNLOCKEDon in the launcher, and a faster compare of the card's copies (thirty-two loads at once, the parts nine at a time): 38.9 -> 37.5-37.8 ms a frame (release).VICTORY_GUARD_AHEAD(no gain standing or moving),VICTORY_SUBMIT_CORE,VICTORY_REFLEX_MODE; timeline recording fixes.residency::pressured, under 3 GiB of RAM free: always, with the title at 20 GB of a 32 GB PC) the 1 Hz sweep let every spare of the send memory go, and the memory every frame sends from was made and mapped again at once: 9.9 % of the submitting thread inMapof new send memory, 7.2 % releasing it. Now only the spares no submission gave back since the sweep before go (all of them when commit is critical, as before). Release at the save point: 14.8-17.1 -> 19.6-20.7 fps, copies in the card's memory 16.9 -> 9.6 ms a frame. (The commit also carried a fix of the diagnostics build, which main has had since 41adb55: after the merge nothing of it is left in the diff.)VICTORY_SUBMIT_SPLIT=1(main's port of the split send, off by default): diagnostics A/B at the save point, frame 44.6 -> 42.0 ms, the submitting thread 41.6 -> 38.2 ms, screenshots alike.VICTORY_RAYMISS_CLEAR, default on;=0leaves the image as it was). Since e2d7854 the miss program is left out for opaque and transparent surfaces, and its image kept whatever the memory held; with the transient targets sharing memory, another target's bytes: red, green and purple glitter on every window on Series S. One diagnostics run alternating it every 8 s: the glitter in every shot without it, clean glass in every shot with it; 71.3 against 71.0 ms a frame.VICTORY_WAVE_FOLDED=1,VICTORY_BVH_MISS=1,VICTORY_NAN_SCRUB=1. With v2026.11.29.02's default (no folding) every release run here lost the device (DXGI_ERROR_DEVICE_HUNG, 43, 73 and 92 s into the world), as v2026.11.29.02: DXGI_ERROR_DEVICE_HUNG after 40-190s on RTX 5080, pipeline library fails to load 72/72 entries #3050 has on an RTX 5080; with folding first, none of ten runs did (three of them 5, 5 and 2 minutes in the world on the hotfix build). v2026.11.29.03 (05d1c56) folds more by default again; that default was not measured here.BVH_MISSandNAN_SCRUB, asvictory playsets them, cost no card time (one recorded frame replayed with each shader set: 37.37 against 37.16 ms).victory play's texture switches are left out on purpose: with them the save point took 2.7 GB more of the card's memory and 3.5 GB more of the PC's, and ran slower (14.0 and 9.7 against 18.3 and 18.3 fps).After review
Two testers ran it (comments below). Without frame generation (RTX 5070) no gain, and one frame in 160 with some vegetation missing; with 3x frame generation (RTX 5070 Ti)
VICTORY_REFLEX_ASIDEgave 1.25 fps more on average but twice the frames over 50 ms. The A/B logs here, read again for pacing, agree (standing: p95 51.2 -> 57.3 ms, frames over 50 ms 10.3 -> 13.4 %). So the last commit takesVICTORY_WIDE_PIECESandVICTORY_REFLEX_ASIDEout of the launcher; both stay as switches, off unless asked for, with what each costs indocs/README-foxhound.md,docs/dlss.mdanddocs/findings.md.How it was tested
docs/findings.mdgives each one's); ray tracing off (the launcher's estimates of light and reflections).VICTORY_AB) wherever it could be, since the save point's time of day moves from run to run; release runs in turns otherwise.host/send.rs's test module, where the new test sits beside main'sparallel_copy_threshold_requires_multiple_tasks; one more commit fixes a doc link (nothing_newis nownothing_new_with).cargo testpassed for the crates it touches: not run locally: when the branch was made, this PC had no commit memory left for a build (another job held it), so CI's run is the check. The same code was built (release and diagnostics) and run on the branch it comes from, with v2026.11.29.02 under it.ci.yml: not run locally either, for the same reason.Checked for overlap
VICTORY_RAYMISS_ZERO: whichever lands, commit 4 can go), host, send, uav_pool: trim only unborrowed low-water spare pools at 1 Hz sweep #3381 (the same 1 Hz sweep, trimming to a low-water mark; toucheshost/send.rslike commit 2), launcher: reconcile play-foxhound.ps1 defaults with play.rs + derived parity guard (#2323, #1922) #2722 (reconciles all ofplay-foxhound.ps1withplay.rs, including the texture switches commit 5 leaves out), gpu: join copy_beside before placed_copy/publish in submit split and note batch writes on shader_writes #2433 (the split send).🤖 Generated with Claude Code