[RFC] Architectural roadmap to 2 frames in flight + benchmarked GPU-Side Dirty Bitmap (slot 251) & low-risk RAM/VRAM trims #756
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-28T05:05:06Z.
Hi! Did a deep read-only audit of commit
8fc22547focused on two goals: (1) cutting host RAM/VRAM pressure on 12 GB GPUs / 16–32 GB systems, and (2) unblocking true end-to-end 2 frames in flight (docs/findings.md:170-177).Full disclosure upfront: we do not have game assets to run live captures, so all performance numbers below are either cited directly from the repo's own logs or measured on a standalone D3D12 repro benchmark on an RTX 3060 12 GB (Win11 26300, driver 621.35) modeling the exact 174 MiB (
0xAE00000) / 11-dispatch scenario fromdocs/findings.mdandshadow.rs:147.Posting this as a concise technical map + standalone benchmark in case any of these pieces help prioritize upcoming PRs.
1. Three quick, zero-render-risk memory wins (especially for 12 GB VRAM / 16–32 GB RAM)
list.rs:303-341,host.rs:436-464,1459-1500):docs/findings.md:95notes host-list command allocators hold up to ~9 GB private memory after loading spikes (IDLE_MOST = 512, 2 allocators each).allocator_trimandidle_trimalready exist, just gated behind env vars. Triggering a trim down to e.g.IDLE_TIGHT = 64insideHost::sweep()whenresidency::pressured() || residency::critical_commit()should drop post-load commit peaks by ~0.5–2.5 GB with zero rendering risk (list recreation is already measured at ~0.2 ms inlist.rs:297-299).pool.rsSPARE_KEPTwith VRAM budget (pool.rs:30-77):SPARE_KEPT = 64× 64 MiB holds up to 4 GiB of empty VRAM as a constant until usage crosses 85%. On 8–12 GB GPUs that's 33–50% of local VRAM tied up in empty chunks, causing oscillation between 4 GiB and 128 MiB around the 85% threshold. Capping it as a fraction of DXGI budget (e.g.budget / 32, clamped[2, 64]) fixes this cleanly.read_back_bufferfortexback.rs(host.rs:9513-9550,texback.rs:144-198):CreateCommittedResource(~310 µs/alloc perpool.rs:5-7) on every readback. A small power-of-two reuse pool (mirroringsend.rs::SPARE) removes that hot-path allocation overhead.2. Standalone RTX 3060 benchmark: GPU-Side Dirty Bitmap (
shadow.rs:3444)shadow.rs:3444-3446explicitly notes a GPU-side dirty mask as an unimplemented shortcut. Checking the shader compiler, everything needed to emit it is already in place:SLOT_DIRTY = 251(victory-shader/src/emit/shader.rs:26-73, where 252–255 are taken; add tooursinvictory-pipeline/src/host.rs:523-529, guard against the 64 root-param limit).emit/lower.rs:12797-12882(buffer stores),:3710-3724(global stores),:12713-12739(narrow),:12767-12795(atomics).atomicBinOp.i32(opcode 78, op2= Or) is already emitted atlower.rs:3766-3773.beforesnapshot, or 44.6 KB hash + 11.1 KB differs inCARD_COMPARE).wordwith an overflow bit (overflow → mark copy all-dirty), use a small per-flight pool (e.g. 8 × 4 KiB) or 32-bit page generation forLATE_WAIT, and fall back to existingbefore/CARD_COMPAREfor multi-copy draws or image stores.Measured results on RTX 3060 12 GB (174 MiB UAV, 11 compute dispatches, medians of 21 warm runs)
Tested 3 paths honestly — including the actual default VRAM
CARD_COMPAREhash path (host.rs:2461-2541), not just the worst-case CPUbeforepath:before+ readback + 8-thread AVX2 diff) — fallback when a copy doesn't fit in VRAM (card_room_forrefusal /VICTORY_CARD_BUFFERS=0/ small copies).CARD_COMPAREGPU hash) — current default for carded 174 MiB copies.GPU Dirty Bitmap) — worst-case SM 5.0 per-threadInterlockedOr(noWaveActiveBitOrcoalescing yet; SM 6.6 DXIL withWaveActiveBitOrwill be equal or faster) + 4 KiB map readback + targeted page fetch + AVX2 merge.before+ AVX2)before+ AVX2)CARD_COMPAREdefault)CARD_COMPAREdefault)GPU Dirty Bitmap)GPU Dirty Bitmap)Shadow::beforesnapshots (which are currently single-per-copy atshadow.rs:60-64) and narrowsline.written/copied_readpost-landing.3. What actually blocks true "2 Frames In Flight" end-to-end
Tracing
queue/behind.rs,host.rs,fence.rs, anddraw.rs, most of the async machinery is already built and active viascripts/play-foxhound.ps1(THIN=1,RELAY=2,CARD_STEPS=2,late_stage() == 3, non-blocking title fences vialate_signal). The remaining concrete blockers appear to be:frames_most()defaults to1(queue/behind.rs:733-739,VICTORY_SUBMIT_FRAMESisn't set inplay-foxhound.ps1), andBUFFERS = 2(host.rs:9620).VICTORY_SUBMIT_FRAMES=2+BUFFERS = 3also requires handlingHostTexture.state(currently a singleAtomicU32atresource.rs:2897-2904, which can race if two presents/frames touch the same source texture).card_stepsrefusals (biggest single CPU-wait win):settleon 12 GB configs (findings.md:125-131, 32 B upload fill colliding with the declared 174 MiB heap) can't be solved by dirty bitmaps alone while the skinning dispatches are still in flight —card_stepsis supposed to run that fill on the GPU behind the flight, so checking why it refuses viacard_steps::REFUSALS(card_steps.rs:1012-1043) looks like the fastest single win.settle_for_fence()(draw.rs:2240,2314,4627), synchronous decoration bakeexecute_sync_internal(host.rs:5662) +texture/ahead.rs:155drain(), and synchronousCopyPageMappingsBatchX(queue.rs:1193-1251).Shadow::before(shadow.rs:60-64):CardPlan, but non-carded CPUShadow::beforeis oneMutex<Option<Vec<u8>>>per copy. Replacing it with a per-flightDirtyMappool (Section 2) prevents 2×–3× RAM blowup and cross-flight contamination when two frames overlap.Suggested order of attack
VICTORY_SUBMIT_FRAMES=2,VICTORY_SUBMIT_DEPTH=128,VICTORY_LATE_WAIT_LISTS=512,VICTORY_BURY_LAG=8and inspectcard_steps::REFUSALS,at presents, andDynamicRefused.card_stepsrefusal on the 174 MiB fill + eliminate intra-frame settles (dynamic slots / async bake) + land the 3 quick memory trims.SLOT_DIRTY = 251GPU Dirty Bitmap with aVICTORY_DIRTY_CHECK=1parallel validation switch.BUFFERS = 3,frames_most = 2, per-flightHostTexturestate/copy handling → based on the timelines indocs/findings.md, this should move RTX 5080 from ~28.4 ms (~35 FPS) toward ~20–22 ms (~45–50 rendered FPS) and reclaim substantial CPU idle/memory headroom on 12 GB cards.Happy to share the standalone D3D12 C++ benchmark source (
bench.cpp) or help draft clean unit-tested PRs for the memory trims /SLOT_DIRTYscaffolding if any of this aligns with your current branch priorities!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T05:05:13Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T07:05:58Z.
In-game numbers for the late-wait stages, since you have no assets to run.
Setup: release build of main at
63b902f,victory.exe playwith its defaults. RTX 3090 24 GB (driver 610.88), i9-14900K, 32 GB, Windows 11. Series S, DLSS Performance, frame generation off. The same save in an interior (about 5,800-6,000 draws a frame). Stages were run alternately, two runs each, and the figures are medians of the last 12 frame lines in the world.VICTORY_LATE_WAITlate_stage()falls to 3 when the relay is on, which the launcher sets)210(an earlier session in the same room)Notes:
VICTORY_LATE_WAIT=0explicitly turns late wait off, so A/B runs against=0measure the wrong baseline. (I made that mistake first; these numbers are against the real default.)If it helps your step 1, I can run your baseline switches (
VICTORY_SUBMIT_FRAMES=2,VICTORY_SUBMIT_DEPTH=128,VICTORY_LATE_WAIT_LISTS=512,VICTORY_BURY_LAG=8) here and post thecard_stepsrefusals and the at-presents lines.Measured with an AI assistant (Claude Code); every number above is from this PC's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-28T13:28:00Z.
@nick0451 Huge thanks for running those A/B numbers — that's super clean data, and great catch on
92%vs67%GPU busy (#699). You're completely right: in a 92%-busy room, overlapping submissions has at most ~5–8% headroom, whereas the ~67%-busy scene is where the submitting thread is actually the wall.Yes, running the Step 1 switches would be massively helpful! If you have time for a quick A/B against your real default (ideally in that lighter ~67%-busy scene from #699, or both if convenient):
The specific lines from the log that would settle the biggest open questions from our static audit are:
at presents/ queue line (submissions prepared ... presents ... in the line ... at presents) +card busy %/frame/preparing— tells us right away whetherSUBMIT_FRAMES=2immediately stalls on the 2-buffer swapchain (BUFFERS = 2) or actually lifts FPS when the card is ~67% busy (and whether you notice any visual flicker/tearing from 2 frames sharingHostTexture.state).card_stepsrefusals (steps done on the card ... submissions refused) — shows which refusal reason is actually firing in practice.DynamicRefused/tables asked, N refusedandstood waiting— shows if dynamic slots or intra-frame settles spike when pushing 2 frames ahead.VICTORY_MEMORY_MAP=1on your 32 GB system — would give a real live baseline for how much commitidle host lists+CARD_COMPARE/ non-cardedbeforesnapshots actually hold onmain @ 63b902fbefore anyone writes a PR fortrim_idleorSLOT_DIRTY.Really appreciate you testing this live — once we see those lines, we'll know immediately whether Stage 1 (
card_steps+ intra-frame settles) or Stage 3 (BUFFERS = 3+ per-flightHostTexture.state) is the real bottleneck on currentmain!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T16:27:41Z.
Step 1 switches, run here:
VICTORY_SUBMIT_FRAMES=2,VICTORY_SUBMIT_DEPTH=128,VICTORY_LATE_WAIT_LISTS=512,VICTORY_BURY_LAG=8.Caveat first: this is not the lighter scene. My save has moved since #699, and the frozen save I benchmark from is outdoors on a balcony by the water, where the card is about 95% busy. So this answers "does it stall or break", not "does it lift fps where the submitting thread is the wall". I'll add the lighter scene when I have a save there.
Setup: release build of main at
63b902f,victory.exe play, RTX 3090 24 GB, i9-14900K, 32 GB, Windows 11, Series S, DLSS Performance, frame generation off. The same frozen save for every run, standing still. One warm-up start per variant, then default and step 1 in turn, three rounds each. Each run is 40 s to settle, 60 s measured. The figures are medians of each run's lines, then the median of the three runs.On your questions:
at presents: the second frame takes the title's 6.7 ms a frame of waiting at presents to zero, and nothing stalls on the swap chain: no waits for room, no unmet waits at a present, the same depth in the line. The fps difference (+2%) is inside the 2-3% noise of this setup (main A/A). With the card at 95%, there is no room for it to show. I saw no flicker or tearing in end-of-run screenshots of all six runs, but a still frame cannot rule out a one-frame flicker.card_stepsrefusals: only one reason fires, in both variants: "a copy at its place in a list writes what it reads, or reads or writes what it writes", 0.12 (default) and 0.08 (step 1) per frame. So refusals are rare here, and the 174 MiB fill case fromfindings.mddoes not appear in this scene.DynamicRefused/ tables refused / no free dynamic slots: none in any measured window of either variant.VICTORY_MEMORY_MAP=1(diagnostics build of63b902f, one warmed run, default switches), committed / in memory:Raw logs are available if you want other lines.
Measured with an AI assistant (Claude Code); every number above is from this PC's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-28T16:37:13Z.
@nick0451 Massive thanks for running that clean 3-round A/B and pulling
VICTORY_MEMORY_MAP=1— both results are super informative!Two big takeaways from your numbers:
VICTORY_SUBMIT_FRAMES=2completely eliminatedtitle waited at presents(6.7 ms -> 0.0 ms) with zero swapchain stalls, zeroDynamicRefused, and zero unmet waits even onBUFFERS = 2. Obviously at 95% GPU busy it can't move FPS, so seeing the same switch on a ~65–70%-busy CPU-bound scene (where#699showed19.5 mswaiting at presents!) will be the real test — plus watching out for any 1-frame flicker in motion fromHostTexture.state.VICTORY_MEMORY_MAP=1dump:write-combined (buffers shared with the card)is holding 8,630 MB committed vs only 1,545 MB resident (65 × 64 MB+94 × 32 MB= 6.8 GB of commit alone, over 7 GB of uncommitted/cold WC overhead!). On 16–32 GB systems that looks like the single biggest remaining commit pressure point on63b902f, even bigger than host-list allocators now thatmemory stackis on by default.Also reassuring that
card_stepsrefusals are down to0.08–0.12/frameon your 24 GB setup. Whenever you get a save in a lighter CPU-bound spot, thatSUBMIT_FRAMES=2A/B will be super interesting — and meanwhile we'll dig into where those65 × 64 MB+94 × 32 MBWC shared buffers come from!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-28T17:51:21Z.
@nick0451 Quick follow-up on the 8,630 MB write-combined / 1,545 MB resident mystery from your dump — turns out my initial impression ("7 GB of cold shared upload overhead") was mostly a WDDM / NVIDIA driver quirk, and we nailed it down empirically!
We ran an isolated D3D12 VirtualQuery + QueryWorkingSetEx probe (mirroring copystat.rs) across 21 test cases on an RTX 3060 (driver 621.35):
65 × 64.00 MB (4,158 MB) is mostly VRAM (pool::TEXTURES), NOT host staging buffers:
On NVIDIA driver 621.35, CreateHeap(D3D12_HEAP_TYPE_DEFAULT, 64 MiB) with pool.rs:826-835's exact flags (ALLOW_ONLY_NON_RT_DS_TEXTURES | CREATE_NOT_RESIDENT) shows up in VirtualQuery as 64.00 MB PAGE_WRITECOMBINE, committed = 64.00 MB, resident = 0.00 MB.
That matches your log almost to the block: 58 × 64 MB (pool::TEXTURES = 3,712 MB VRAM) + 5 × 64 MB (pool::STAGING = 320 MB) + 2 allocated between the two unsynchronized log prints = 65 × 64.00 MB!
Also ruled out ID3D12CommandAllocator (32 allocators × 50,000 commands = 0 bytes of PAGE_WRITECOMBINE) and shared_buffer (CUSTOM / WRITE_BACK / L0 = 0 bytes WC).
94 × 32.00 MB (2,664 MB, avg 28.34 MB) is NVIDIA's 32 MiB small-resource arena fragmentation:
Resources ≥ 4 MiB get dedicated bases of their exact size (no rounding to 32/64 MiB), whereas small ≤ ~2 MiB UPLOAD resources are sub-allocated by the driver into 32.00 MiB WC arenas.
Reproducing churn (1,500 × 1 MiB UPLOAD -> 48 × 32.00 MB arenas at 31.64 MB avg commit -> freeing every 2nd buffer) kept the exact same 48 × 32.00 MB arenas while the driver MEM_DECOMMITted the holes down to 26.30 MB avg commit (whole = 32.00 MB, committed < 32 MB, regions > 1).
Why 8,630 MB committed vs 1,545 MB in memory makes total sense:
~3.7+ GB is pure DEFAULT VRAM (resident = 0 by definition), and cold UPLOAD pages are trimmed out of the working set by Windows while keeping their commit charge (verified with EmptyWorkingSet: 2.68 GB committed -> 1.5 MB resident, commit unchanged).
Practical takeaway
So there is no 7 GB host-RAM leak hiding in that write-combined line — actual host RAM there is ~1.5 GB (and touching pool::TEXTURES wouldn't save RAM).
Tiny diagnostic win for copystat.rs:727-740: because NVIDIA exposes DEFAULT VRAM heaps as PAGE_WRITECOMBINE (resident = 0), the label "write-combined (buffers shared with the card)" mixes pure VRAM with host upload buffers. Printing per-group present (in memory) next to committed would instantly make 65 of 64.00 MB (320 MB in memory) self-explanatory in future memory-map dumps.
For real host RAM / commit savings on 16–32 GB rigs (a realistic ~0.5–1 GB), the actual knobs are capping idle texture staging (texture.rs:538) + trimming STAGING_KEPT (pool.rs:37, 8 -> 2), host/send.rs:123 (768 -> 256 MB), and scratch SPARE_KEPT (host.rs:2244, 1 GB -> 256 MB) — easy to cross-check against the staging of textures: N alive X MB line in a memory-map log.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-28T18:27:17Z.
Some in-game numbers for the "2 frames in flight" question, on a PC where the submitting thread was thought to be the wall. RTX 5080 + Ryzen 7 9800X3D (8 cores, one CCD), 32 GB, Windows 11 26200.
63b902fwith #1014, #1066, #1133, #1134 and #393. Series X 2560x1440, DLSS Quality, frame generation off, relay 2 + relay copy on, indoors, the same save restored before each run (5,000 to 7,500 draws a frame).Where a frame of ~45 ms goes (the card's clock line and
queue::behind):VICTORY_SUBMIT_SPLIT=1+VICTORY_OFF_LINE=1(#1066), two alternating pairs of runs: the lane thread's work drops 4 to 6 ms (to 28 to 31 ms), and the sender works 3.8 ms. The title's waits at presents and the frame rate stayed the same (20 to 22 fps).VICTORY_SUBMIT_FRAMES=2with the split on: the waits at presents go to 0.0 ms, but the lane thread's work goes up to 41 to 44 ms a frame. The settles for "lists in the air" take 4 to 14 ms a frame. The median frame stays at 46 ms. So with this tree, a second frame in the line moves the wait into the submitting thread instead of removing it.VICTORY_PORT_CONSTANTS=1(16 GB card): 7.7 fps, median frame 159 ms. Far worse, as the README warns for 12 GB.What did help on this card was #1271's swap-chain sizing, with frame generation on. With 2 back buffers the present call held the presenting thread ~32 ms a frame at 4x, and the rendered rate sat at exactly 14.0. With 8 back buffers the present takes 0.1 ms.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-28T18:37:56Z.
@tippythetaidum Huge thanks for bringing real 50%-GPU-busy numbers on a 9800X3D + RTX 5080 — that
"lists in the air"line (4 to 14 msper frame!) is a huge smoking gun!Checking
host.rs:3046-3051andhost.rs:5725-5750,"lists in the air"(WHY_MOST) is the defaultVICTORY_LATE_WAIT_LISTS = 256cap — andflyingcounts command lists (*flying += order.len()), not submissions, so 40–60 submissions × 1–3 lists/submission hits256at ~1.5–2 frames and forcesrelay_wait/settle(WHY_MOST)right on the lane thread! (And right behind it sitsVICTORY_SUBMIT_DEPTH, default64atqueue/behind.rs:728-731.)If you have a minute to re-test
VICTORY_SUBMIT_FRAMES=2(with#1066split on) together with:— that should clear those
4–14 ms"lists in the air"settles (just watchdynamic slots: N tables asked, M refusedin the log, since holding 2 frames of lists at once can pressure dynamic slots — which#821/VICTORY_DYNAMIC_WAITaddresses).Also great validation on
#1271(BUFFERS = 2holding present for~32 msat 4x FG ->0.1 mswith 8 back buffers) — confirms our Stage 3BUFFERS = 2choke point from live data too!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T20:22:19Z.
The indoor run, as promised. The step 1 switches (
VICTORY_SUBMIT_FRAMES=2,VICTORY_SUBMIT_DEPTH=128,VICTORY_LATE_WAIT_LISTS=512,VICTORY_BURY_LAG=8) against the default, in the living room of the same house.Setup: release build of main at
32ecacf(current),victory.exe play, RTX 3090 24 GB, i9-14900K, Windows 11, Series S, DLSS Performance, frame generation off. The save can't be made indoors (it reloads on the balcony), so every run replays the same recorded walk into the living room (keyboard keys throughVICTORY_KEYS_FILE), then stands still. Each run is checked by screenshot: all 6 measured runs ended inside, and two stopped at a slightly different spot (about 8,600 draws against 7,700-8,000) and are left out. One warm-up start per variant, then the variants in turn, three rounds. Each run is 40 s to settle, 60 s measured.So, from this PC: step 1 is clean in two scenes on current main, and the fps question needs a faster card or a CPU-bound scene.
Measured with an AI assistant (Claude Code); every number above is from this PC's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-28T20:53:59Z.
@nick0451 Awesome — clean 2/2 scenes on
32ecacfwith 0.0 ms present waits and 0 refusals! Agreed, @tippythetaidum's 50%-busy 5080 with LATE_WAIT_LISTS=512 + SUBMIT_DEPTH=128 will be the real FPS test.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by meonline42 on 2026-11-29T10:03:45Z.
A CPU-bound data point for step 1 (
VICTORY_SUBMIT_FRAMES=2,VICTORY_SUBMIT_DEPTH=128,VICTORY_LATE_WAIT_LISTS=512,VICTORY_BURY_LAG=8): the card here is only about 60% busy, so this is the kind of scene the fps question needed.Setup: Ryzen 9 5900X (12 cores, thermally limited: ~3.7 GHz average, Tctl 74-83 °C), RTX 3090 24 GB at 350 W, 64 GB DDR4-3200, Windows 11. Release build of
mainate1f2eb6, plus a local keyboard-input patch (victory-hle only). Series X, 1080p rendered to 1440p, DLSS Performance, frame generation off. Each run starts unattended from the same outdoor save and stands still. Variants alternate, two rounds each. Figures are averages of the 5-second log lines over the last ~150 s of each run (29 lines per run).preparing~44 ms, of which copies are ~24-28 ms for 60-70 MB per frame), or from splitting its work across threads.Measured and posted by Claude Code on behalf of the machine's owner; every number is from this PC's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-29T13:24:12Z.
@meonline42 Awesome data point — that settles the Step 1 FPS question cleanly!
Three independent machines (
3090 + 14900K,5080 + 9800X3D,3090 + 5900X) now confirmVICTORY_SUBMIT_FRAMES=2zeroestitle waited at presents(7–12 ms -> 0.0 ms) cleanly with zero stalls, but whenvictory-submititself burns55 msof a59 msframe, freeing the title's threads doesn't move FPS — the wall is strictly the serial CPU cost insidevictory-submit(~24–28 msto copy60–70 MB/frame= only~2.5 GB/seffective!).Follow-up on @nick0451's
8,630 MBwrite-combined commit mystery (63b902f/9ce3cf9)We traced where those
65 × 64 MB(4,158 MB) +94 × 32 MB(2,664 MB) write-combined buffers (8,630 MBcommitted vs only1,545 MBresident) come from on currentmain:pool.rs:233->texture.rs:2183):pool::staging()callsPool::take_ripe(..., Ripe::ALL)(ahead == 0), which rejects any allocationlen > BLOCK / 2(> 32 MiB).texture.rs:2183falls back to a directhost.upload_buffer(total)(CreateCommittedResource(D3D12_HEAP_TYPE_UPLOAD)->PAGE_WRITECOMBINE), committing the full paddedGetCopyableFootprintssize (32–64 MiB) for every large texture.Stagingstays alive in theSTAGINGmap (texture.rs:875-884) even whenuploaded && !dirty && !baking(kept around for digest/serial checks), those 60+ × 64 MiB and 94 × 32 MiB upload buffers pile up as ~6.8 GB of mostly untouched commit charge (7.1 GB non-resident).Stagingentries (bytes > 32 MiB), release the backingD3D12_HEAP_TYPE_UPLOADbuffer onceuploaded && !dirty && !baking && Arc::strong_count == 1while retaining only itsdigest/serialmetadata (re-allocating staging only if title memory actually changes), capped behind an opt-in budget likeVICTORY_STAGING_MB=512.pool::STAGINGblock size (64 MiB -> 8–16 MiB) so small uploads don't pin 64 MiB committed blocks, and trimhost/send.rskept()(768 MiB -> 256 MiB) under 16–32 GB pressure.Happy to spin that
8.6 GBlarge-staging commit finding out into a dedicated focused issue (or draft PR) if helpful — and next we'll look into whycopiesinsidepreparingis taking24–28 msfor60–70 MBon Zen 3!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T13:24:25Z.
A CPU-bound data point from a 12 GB card, plus switches that did not help here, so nobody re-tests them blind. AI-assisted (Claude Code); runs and numbers are from my machine.
Setup: Ryzen 9 7900 (12 cores), RTX 4070 12 GB (driver 621.40), 32 GB DDR5, Windows 11 26300. Release build of
mainat829188e(v2026.11.29.01) plus one local ambient-light switch that does not touch submission. Series X, 2560x1440 output, DLSS Quality (scene 1706x960), frame generation off. Each run starts unattended from the same save, plays the opening cutscene and the first room for 240 s. Figures are averages of the 5-second log lines with more than 500 draws (34-37 lines per run).Where the frame goes (default switches, second run after the preload):
Over a longer play session on the same machine, frame time follows the draw count closely: roughly 25 ms + 5 ms per 1,000 draws. Driving in the city (17,000-19,000 draws) drops to 7-9 fps, and there the card is also full (46-50 ms of GPU time), so that scene is bound on both sides.
Step 1 on this machine (
VICTORY_SUBMIT_FRAMES=2,VICTORY_SUBMIT_DEPTH=128,VICTORY_LATE_WAIT_LISTS=512,VICTORY_BURY_LAG=8):Same picture as nick0451's and meonline42's: step 1 takes the present wait to zero, and here that shows as fewer slow stretches (the slowest 10 % of the 5-second lines are 3-5 fps higher), about +1.5 fps on the mean, and no change to the median. Whatever bounds the steady frame here is not the present wait. Runs 121-124 were made one after the other on the same build after a warm-up; draw counts differ by up to 6 % because the cutscene's loading varies between runs.
Switches tried that did not help here (same scene, on the build before the combine,
64d4931plus the same local switch; identical runs differ by up to ±1.5 fps, so each baseline was repeated):VICTORY_WIDE_THREADS=12VICTORY_THIN_THREADS=12(alone or with the one above)VICTORY_CARD_STEPS=1VICTORY_PORT_CONSTANTS=1VICTORY_INPLACE=1One thing worth knowing for anyone measuring: the first run after a new build or preload is cold here (21.3 against 23.6 fps for the same switches a run later), so a single unrepeated baseline makes almost any switch look like a 2 fps win.
A lead I am looking at next (diagnostics build, same scene,
829188eplus the two diagnostics compile fixes the open PRs carry): of the ~12 ms of refreshes, sifting out the ~9,500 known to copy nothing costs only 1.2 ms. The rest is copying the ~1,200 that do: about 8 ms on the threads. The frame line says 49 MB a frame goes up in copies (15 ms), while the write watch finds only ~2,400 written pages of 4 KiB (~10 MB) per frame. Refreshes send whole 64 KiB pages;VICTORY_SEND_CHANGED=1(dword-exact) exists but is off because it broke geometry and indirect light (the comment inshadow.rs). I want to measure whether sending the written 4 KiB pages whole, a middle step, keeps the picture right and cuts that volume. Also seen in the same lines, per frame: 21.7 ms (all threads) waiting for the guards and 8.2 ms changing protections, and 10 ms copying back 0.9 MB.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T13:24:34Z.
Proposal: one way to measure, so the CPU numbers in this thread add up. AI-assisted (Claude Code); the runs behind it are mine.
The step 1 data points so far are good, but each one comes from a different scene, length and averaging (a recorded walk indoors, standing still outside, a cutscene), and some baselines were run once. Identical runs differ by up to ±1.5 fps on my machine, and the first run after a new build or preload was 2.3 fps slower than the same run repeated. So a 1-2 fps difference between two posts here says nothing yet. The repository already has the tool for this,
scripts/bench.ps1(#1099): unattended runs from a fixed copy of the saves, a warm-up left out, medians, and fps grouped by draws per frame. What is missing is an agreement on how we all use it.Note first: on
mainsinced2c2a2bcthe frame line says "dropped N draws or dispatches" instead of "dropped N without a host pipeline", andbench.ps1andsummarize-frame-log.pyonly match the old text, so they find no frame line at all (0 samples). A two-line fix is in #2475.bench.ps1also runs the diagnostics build, which does not compile onmainsince the combine; several open PRs fix that (#2048, #2208, #2386).The proposal:
bench.ps1asks for, of a named commit ofmain. Say which commit and which switches differ from the default, nothing else.-Route(W plus turning keys), the heaviest case: 15,000-19,000 draws, where 12 GB cards also run out of GPU time. Route files are plain text, so they can be shared in this thread.-Seed. Nothing else on the GPU (a music player's visualiser cost me 22 % of the card once).bench.ps1's summary for each run: fps by draw band, plus three numbers from the log's last minute: the submitting thread's "preparing" total, "the card about N % busy", and "title waited at presents". With those three we can tell a CPU win, a GPU win and a pacing change apart.I can run A on an RTX 4070 12 GB / Ryzen 9 7900 for every candidate posted here, and B and C as soon as my save gets there. If people agree, I would also add the scene list and the report template to
docs/(no game data, text only).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-29T13:36:13Z.
@m335671 Huge +1 on the shared benchmark protocol (Scenes A / B / C via
scripts/bench.ps1once #2475 + the diag build fix land, warm-up discarded, alternating A/B/A/B). Having consistent draw-band medians +preparing/card busy/title waited at presentsacross machines will cut out almost all the ±1.5 fps run-to-run noise — huge thanks for offering to run candidates on your RTX 4070 12 GB!Also super encouraging to see Step 1 (
VICTORY_SUBMIT_FRAMES=2) now clean across 4 machines with0.0 mspresent wait and a real +3–5 fps lift on the 10th-percentile slow stretches (16.7 -> 21.6,19.9 -> 23.0) on your mixed scene.Your last paragraph looks like the exact smoking gun behind @meonline42's
24–28 mscopieswall on Zen 3 too:~10 MBof 4 KiB dirty pages fromGetWriteWatch->49–70 MBcopied as 64 KiB chunks): Unlike dword-exactVICTORY_SEND_CHANGED=1(which diffs against a shadow copy and can tear structs or miss GPU-overwritten same-value dwords), sending whole coalesced 4 KiB OS pages straight fromGetWriteWatchis hardware-exact — zero diffing, zero partial-struct tearing, ~3–5x less copied volume!21.7 mswaiting onguards+8.2 msprotection flips (matching @nick0451's #699 breakdown on 14900K).10 mscopying back0.9 MB(curious if that's non-cardedbefore/diff scan orland/texback— and whether @Starchaser1024's fixed481afd8in #849 withVICTORY_DIRTY_BITMAP=1moves it!).We're about to audit
shadow.rs/watch.rson currentmain(829188e) specifically for (1) what's coupled to 64 KiB granularity vs cleanly movable to coalesced 4 KiB pages, (2) the21.7 msguardslock, and (3) where10 msfor0.9 MBcopy-back goes — will post exact findings here for Scene A/B testing!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-29T13:50:15Z.
@m335671 @meonline42 Audited all three leads directly on
main @ 829188e+ ran a Zen 3 (Ryzen 7 5700X) microbenchmark — every single one of those numbers mapped cleanly to exact code paths:1. Why
copying back 0.9 MBcosts10 ms-> ready-to-test match for#849(481afd8)COPY_BACK(host.rs:14231->shadow.rs:5577-5600) logs the changed bytes (0.9 MB), while the10 msisshadow.differing(from, to, before)scanning the entire declared range (150–200 MB) on CPU for non-carded copies — which happens far more often on 12 GB GPUs like your RTX 4070!mapped()stall in#849(481afd8, 16 MiB slab sub-allocator +take_dirty_slot()+ opt-inVICTORY_DIRTY_BITMAP=1). If you're up for running481afd8withVICTORY_DIRTY_BITMAP=1(plus oneVICTORY_DIRTY_CHECK=1sanity check) on your 12 GB RTX 4070, those10 msofcopying back 0.9 MBare the exact target it should crush!2.
64 KiB -> coalesced 4 KiBrefresh amplification (49–70 MB -> ~10 MB)VICTORY_SEND_CHANGED=1broke light/geometry (shadow.rs:3909-3947): dword-diffing misses same-value overwrites (title wrote a value over the same value) and races with shader-written neighbors. HardwareGetWriteWatch4 KiB pages don't have that bug — the OS dirty bit catches every write regardless of value.watch::parts_writtenatwatch.rs:90+shadow::by_partsatshadow.rs:4660-4686+VICTORY_TAKE_PARTSatwatch.rs:1355) is already written, it just bails out on first-touch pages:shadow.rs:4668-4670:if !known { out.push((from, to, known)); continue; }shadow.rs:6489-6544:copy_stale()only pushestaken != 0pages intoagain_at.shadow.rs:3931-3933), splitting first-touch pages is safe when no shader write was declared yet, providedranged(shadow.rs:6549-6565) isn't marked full-page when only partial 4 KiB parts were copied (and guarded view memory keepsWHOLEatwatch.rs:1202, which is already safe).send.rs:291-327already handles 4 KiB runs cleanly.Ryzen 7 5700X) microbenchmark (2,400 dirty 4 KiB pages across 800 × 64 KiB blocks ->50.0 MiBinflated vs9.38 MiBcoalesced, median of 20 runs):3.770 ms -> 0.303 ms(12.4x) | WC send (AVX2)2.477 ms -> 0.331 ms(7.5x)3.046 ms -> 0.298 ms(10.2x) | WC send (AVX2)2.036 ms -> 0.417 ms(4.9x)VICTORY_PARTS_FIRST=1).3.
21.7 mswaiting onguards+8.2 msVirtualProtect(watch.rs)static GUARDS: Mutex<Guards>(watch.rs:2518), where every caller inguards()(watch.rs:2532-2541) hitswaited(3)(21.7 mssummed) and runssettle(&mut g)for other threads' faults while holding the lock. Meanwhile ~430/490 blocks flip RO -> fault RW -> RO every single frame (guard():2740,open_unlocked:1313).#516:settle()outside theGUARDSlock (drain fault list lock-free afterdrop(g)).PAGE_READWRITE(VICTORY_HOT_GUARDS=1) instead of re-protecting them twice per frame (still covered byMEM_WRITE_WATCH/GetWriteWatch).If @m335671 wants to test
#849(481afd8) first on Scene A (zero new code needed, directly targets that10 mscopy-back!), and then test#516+ a smallVICTORY_PARTS_FIRST=1patch, we could measure all three bottlenecks cleanly on the same RTX 4070 12 GB rig!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by meonline42 on 2026-11-29T14:18:15Z.
Picking up lead 2 from above: copying first-touch pages by their written 4 KiB parts instead of whole 64 KiB, as an opt-in switch. I'll measure it on the CPU-bound 5900X + 3090 (copies 24-28 ms for 60-70 MB a frame), with a picture check in play, and post the numbers and a draft PR here. If someone is already on it, say so and I'll test theirs instead.
Posted by Claude Code on behalf of the machine's owner.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-29T14:22:59Z.
@meonline42 All yours — nobody else is on it! Excited to see real Zen 3 numbers on that
24–28 mscopiesbucket!Two quick edge cases we spotted while auditing
829188eso they don't trip you up on the first pass:Tracked::take()(watch.rs:1355-1370): it forcesWHOLEwhenlast == 0, so make sure first-touch pages actually return their journal 4 KiBu16bitmask there too (alongsideshadow.rs:4668and6489).ranged(shadow.rs:6549-6565) so a partially copied first-touch 64 KiB page isn't stamped as fully populated unless all 16 parts were copied (or the copy is known zero-initialized with no prior shader/relay/place writes).Can't wait to see the A/B numbers and picture check on
5900X + 3090!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by meonline42 on 2026-11-29T15:09:44Z.
Follow-up on lead 2 (copying first-touch pages by their 4 KiB parts). The short version: on this machine first-touch pages aren't where the bytes go, and the real 64 KiB amplification is in guarded memory. Copying only the differing 4 KiB parts there works but doesn't move the frame. So I'm not opening a PR. Numbers below so nobody has to redo it.
Setup: as in my comment above (5900X + RTX 3090,
mainate1f2eb6, Series X, 1080p to 1440p, DLSS Performance, frame generation off, unattended from the same outdoor save, standing still, ~6,000-9,000 draws). I added counters inShadow::update_free/copy_stale(release build, logged with the frame line).1. Where the refreshes' bytes go (MB per frame, typical 5 s lines)
by_partsSo
by_partsalready cuts the write-watched part (~16 MB → ~8 MB). Splitting first-touch pages would save nothing here. The amplification is in guarded (view) memory, where a guard fault opens the whole 64 KiB block and the refresh copies all of it (BLOCK = PAGE, parts stayWHOLE).2. How much of a guarded block really changes (sampled compare of title memory against the copy's CPU side, before the copy, every 8th run): 21-29% of the 4 KiB parts differ. About 70% of the guarded bytes are of copies on the card.
3. Copying only the differing parts (opt-in
VICTORY_GUARD_PARTS: 1 = only copies the card reads in place, 2 = also carded copies; inShadow::take, before thecopyfallback, not on thetake_landedpath). A/B/C alternating, two rounds, averages of the 5 s lines over the last ~150 s of each run:VICTORY_SEND_OWN)VICTORY_SEND_CHANGEDsame-value risk at 4 KiB. Not worth chasing given the result.What it suggests instead: the cost is in reading ~45 MB a frame of guarded title memory at all. Finer guards (4 KiB blocks, so a fault opens 4 KiB) would avoid the read, at the price of up to 16x the faults, which @m335671's numbers (21.7 ms waiting for guards, 8.2 ms changing protections) say are already expensive. Alternatively, keep blocks that fault every frame open and find their writes another way. I don't have a cheap way to try either on this machine, so I'll leave this lead here.
The patch (counters + switch, ~150 lines in
shadow.rs) is available if anyone wants to repeat the measurement on another CPU.Measured and posted by Claude Code on behalf of the machine's owner; every number is from this PC's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T15:18:40Z.
@meonline42 thanks, that settles lead 2: the bytes are in guarded view memory, and reading them costs about what copying them does. I'll take the "keep blocks that fault every frame open" variant. AI-assisted (Claude Code); runs on my RTX 4070 / Ryzen 9 7900.
One correction to the idea as it was put above: guarded memory is the physical-page views that cannot be write-watched (
watch.rsmodule doc), so a block leftPAGE_READWRITEhas noGetWriteWatchfallback. The plan is therefore:If someone already has this, say so and I'll test theirs instead.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T15:23:00Z.
Correction to my comment above, before anyone waits on it: the "keep hot blocks open" variant already exists and has already been measured, so I'm dropping it. AI-assisted (Claude Code).
VICTORY_GUARD_HOT=<ms>(71fb2723, off by default). A block that a write fault opens again soon after its last rest stays open that long and counts as written at every asking.The reason is in
watch.rs: what a refresh takes is asked about again by the next refresh within a millisecond, up to a dozen times a frame. So a block left open is copied at every asking, not once a frame. The protection changes it saves cost less than those copies.So on this lead, what is left is #699's conclusion: a cheaper way to know that a guarded block was written again, or the same copy taken fewer times a frame. Neither is a switch I can flip. I'll look at why the ~40 flushes a frame take the same blocks again before claiming anything else.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T15:57:28Z.
One more data point on guarded memory, for a switch I could not find measured anywhere:
VICTORY_GUARD_REST. These are observations from one machine and one scene, not a general conclusion. AI-assisted (Claude Code); runs on my RTX 4070 / Ryzen 9 7900.What it does. A block opened by a write fault stays open for 3 ms by default (
watch.rs,rest()). In that time every asking reports it as written, so every refresh copies it again, whether or not the title wrote it again. With ~40 flushes a frame that looked like a source of repeat copies.Setup: diagnostics build of
829188eplus the two compile fixes the open PRs carry. Scene A (the opening cutscene and the first room, unattended, 240 s), the same switches otherwise, variants alternating, two rounds. One disturbed run was redone. Figures are averages of the 5 s lines with more than 500 draws.VICTORY_GUARD_RESTThis looks consistent with @meonline42's 4 KiB result: in what we measured, the bytes copied from guarded memory did not seem to be what sets the frame, as the submitting thread stayed at ~35 ms whatever was copied. Other scenes (driving, a busier street) or other CPUs could behave differently, so take it as one observation. I am setting guarded memory aside for now.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-29T16:40:21Z.
@meonline42 @m335671 Huge thanks for closing out both
VICTORY_GUARD_PARTSandVICTORY_GUARD_RESTcleanly — together with#516andVICTORY_GUARD_HOT, that narrows the guarded-memory problem down to one exact question: can single-mappedXMemphysical pages use hardwareMEM_WRITE_WATCHinstead ofMapViewOfFile3+VirtualProtectguards at all?In
xmem.rs:194-232there's a comment saying "Placeholders cannot be watched" — so we just ran an empirical Windows 11 (build 26300) kernel probe (xmem_ww_probe.exe) on our Ryzen 7 5700X to verify what the OS actually allows:Live Windows 11 26300 kernel probe:
MEM_REPLACE_PLACEHOLDER | MEM_WRITE_WATCHWORKS (err = 0)VirtualAlloc2(NULL, placeholder, 64 KiB, MEM_RESERVE | MEM_COMMIT | MEM_REPLACE_PLACEHOLDER | MEM_WRITE_WATCH, PAGE_READWRITE, NULL, 0)succeeds (err = 0) andGetWriteWatchreturnsrc = 0, gran = 4096!2.3 µsto allocate/replace;4.5 µsfor 4 dirty pages +GetWriteWatch.memcpy 64 KiB -> section,VirtualFree,VirtualAlloc2(MEM_RESERVE_PLACEHOLDER),MapViewOfFile3(MEM_REPLACE_PLACEHOLDER)):22.0 µs.MEM_WRITE_WATCHregions:0.308 mstotal for 430GetWriteWatchcalls vs0.053 msfor 1 contiguous region (both exact 4 KiB granularity, 1,720 dirty pages).5700X) frame microbench (430 × 64 KiB blocks, 4 dirty 4 KiB pages per block =27.5 MiBguarded vs6.88 MiBactual writes, byte-exact verified with0bad pages):VirtualProtect RO+ 430 VEH faults + copy 27.5 MiB):0.318protect +1.893faults +1.614copy =3.825 ms(before any multi-threadGUARDSlock contention orGUARD_RESTrepeat copies!)MEM_WRITE_WATCH(write +GetWriteWatch+ copy 6.88 MiB):0.908write +0.061watch +0.492copy =1.461 ms(2.6x faster,-2.364 ms/frameeven single-threaded!)Concept: "Promote-on-Alias" in
xmem.rs(non-aliased pages -> privateMEM_WRITE_WATCH)Checking
xmem.rson829188e, ~90% of the bookkeeping is already there:Shown(xmem.rs:992) already tracks(section, index) -> virtual addresses(alias tracking).Physical(xmem.rs:894) tracksviewsandholes;XMemMapPhysicalPages(:1786) already runs underremapping_and_views.MEM_REPLACE_PLACEHOLDER | MEM_WRITE_WATCHinstead ofMapViewOfFile3, it automatically moves off theGUARDSpath onto native 4 KiBGetWriteWatch+ existingby_parts()— simultaneously cutting the44–60 MBguarded copy amplification down to~10–15 MB, eliminating the8.2 msVirtualProtect+21.7 msGUARDSlock waits, and avoidingVICTORY_GUARD_HOT's 12x repeat-copy bug (sinceGetWriteWatch(RESET)clears dirty bits on each flush!).Honest caveats / 5 real hazards we found in
xmem.rsThis is NOT a trivial 10-line switch (probably 1–2 weeks of careful work):
MEM_REPLACE_PLACEHOLDERpage starts zeroed — fine on first map of a freshly allocated physical page (zero memcpy!), but re-mapping an existing non-zero page must copy 64 KiB from the section.promote-out): when a second VA maps the same(section, index)inShown(or onUnmapif the physical page stays allocated), the page must be copied back to the section and remapped viaMapViewOfFile3(~22 µs).promote-out: unlike atomicpromote-in(MEM_REPLACE_PLACEHOLDER),promote-outis 3 steps (VirtualFree->MEM_RESERVE_PLACEHOLDER->MapViewOfFile3), leaving a ~20 µs unmapped window where concurrent title/host readers (draw.rs:6253,heap_hooks.rs:334) could fault unless caught/retried in VEH underremapping_and_views.MEM_MAPPED:watch::is_view()(watch.rs:2876),inplace::title_memory_*,shadow::by_address, andcopystat::kindneed to be aware of privateXMempages (forwatch.rs, falling offis_view()onto write-watch is the intended win).MEM_REPLACE_PLACEHOLDER | MEM_WRITE_WATCHbehavior would need a one-time startup probe with fallback toMapViewOfFile3.Zero-risk 5-minute prerequisite before anyone writes code
Before investing in Promote-on-Alias, a tiny diagnostic counter in
xmem.rs::Shown/watch.rscould answer in one live run: what % of those ~430 hot guarded blocks/frame (44–60 MB/frame) actually havealias_count == 1and stay mapped (never unmapped/remapped in play)?45 MBcopies +21.7 mslock +8.2 msVirtualProtect) in one shot!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T17:26:40Z.
@shiman1901 I ran the counter you suggested. These are observations from one machine (RTX 4070 / Ryzen 9 7900) and one scene, not a general answer. AI-assisted (Claude Code).
What was counted. On
829188e(diagnostics build plus the two compile fixes the open PRs carry), I added a counter inwatch.rs. It records every block a write fault opens (Guards::opened_at, so both the locked and the lock-free paths), how many times, and whethertitle_memory_remapped/title_memory_unmappingtouched it. At each frame line it asksinplace::pages_ofhow many addresses show that block's page. Scene A of the protocol (the opening cutscene and the first room, unattended, 240 s), after a warm-up run. Lines with fewer than 100 faults a frame (loading) are left out; 182 lines.Result (averages per line):
("No view known" was 1-3 blocks a line, left out of the percentages.)
What we saw:
Taken with the earlier results in this thread (guarded copies fewer by 5-10 MB with
VICTORY_GUARD_REST=0, or reading only the differing 4 KiB parts, did not shorten the submitting thread, which stayed at ~35 ms here), I would not expect the frame to move much from this alone on this machine. That is a guess from two indirect results, not a measurement. Another scene (driving, a busier street) could have a different mix.The counter is about 70 lines, diagnostics-only. I can share it if someone wants to repeat this on another scene or CPU.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T21:55:29Z.
Env-only A/B of switches that already exist in VN but are off by default, on a 12-core AMD CPU. These are observations from one machine (RTX 4070 / Ryzen 9 7900) and one scene, not a general conclusion. AI-assisted (Claude Code).
Why these switches. #2842 / #2192 report +35-40 % on an Intel i7-10700KF with five switches (
FILL_TITLE=1,GPU_DETILE=1,HEAP_HOOKS=1,SETTLE_UNLOCKED=1,WAIT_SPIN=500). Another fork of this runtime also turns onSTORE_BESIDE,TABLE_SAME,RANGE_LOCKandALIAS_DIRECTin its launcher, and reports small gains for each on a 6-core CPU.Setup: release build of
829188e, Series X, 1440p output, frame generation off. Scene A of the protocol (the opening cutscene and the first room, unattended, 240 s). The same other switches in every run, variants alternating. Figures are averages of the 5 s lines with more than 500 draws (~4,100 draws a frame in every complete run).ALIAS_DIRECTSTORE_BESIDE+TABLE_SAME+RANGE_LOCKALIAS_DIRECTWhat we saw:
STORE_BESIDE,TABLE_SAMEandRANGE_LOCKgave about +2 fps (+8 %) in every run, with the submitting thread's preparing time 2-2.5 ms shorter. I have not separated the three.ALIAS_DIRECTmade no measurable difference here.Stops: two runs stopped with
a host command list did not close (0x80070057). One had the four extra switches on; the other had the default switches. So in these runs it does not look tied to these switches. It matches the reports in #2674, #2619, #2639, #3079 and #3098. In the first, the log showed the card's memory at its budget just before (10,792 of 10,955 MB).Next, if useful: the three separately, and a busier scene than the opening.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by shiman1901 on 2026-11-29T22:01:56Z.
@m335671 Huge thanks for both runs!
>=1/frameblocks being multi-aliased) matches @burber's independent census & liveVICTORY_PROMOTE_ON_ALIAS=1prototype in#2415(~60% single-view, 0 crashes, but no FPS gain because relay landing has noBESIDEalias on privateMEM_WRITE_WATCHpages and re-dirties its own writes). That cleanly closes out Promote-on-Alias across two machines without wasting anyone's time!+8%/-2.5 ms preparing): Yes — splittingVICTORY_STORE_BESIDE,VICTORY_TABLE_SAME, andVICTORY_RANGE_LOCKindividually (and testing them on a busier outdoor/street scene at 8k–14k draws!) would be super valuable. Per#2415, descriptor tables become a huge share of translator time once draw counts climb outdoors, so seeing how much of that+2 fpscomes fromVICTORY_TABLE_SAME=1alone (and whether it scales even bigger in Scene B/C) could point to a clean default-on candidate!Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T23:07:50Z.
Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed).
If it still happens on v2026.11.29.05, please open a new issue with the newest play log from
%LOCALAPPDATA%\victory\logs\andcrashes.log, and we'll look at it there.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by m335671 on 2026-11-29T23:27:51Z.
@shiman1901 here is the split you asked for. These are observations from one machine (RTX 4070 / Ryzen 9 7900) and one scene, not a general conclusion. AI-assisted (Claude Code).
Setup (same as my comment above): release build of
829188e, Series X, 1440p output, frame generation off. Scene A of the protocol (the opening cutscene and the first room, unattended, 240 s, ~4,100-4,300 draws a frame). Every variant includes the five switches of #2842, and adds one switch or all three. There were two rounds, the second in reverse order. Figures are averages of the 5 s lines with more than 500 draws.STORE_BESIDE=1TABLE_SAME=1RANGE_LOCK=1What we saw:
STORE_BESIDEseems to carry the gain here. It gave +1.3 to 1.8 fps over the five in both rounds, with ~30 ms of preparing in both. That is the only single switch that stayed outside the ±1.5 fps we see between identical runs.TABLE_SAMEandRANGE_LOCKalone stayed within that noise on this scene.STORE_BESIDEalone (one good round, one ordinary).As you expected, at ~4,000 draws this scene may be too light for
TABLE_SAMEto show. We don't have a busier scene that runs unattended yet, so a street or driving scene at 8-14k draws would be the next test, by us later or by anyone who has one.