RTX 4080 / Win10: 27.2 fps median (28.6 max, 0 stutters >55 ms) — reproducible NVIDIA recipe, PR stack, and 3 unused NVIDIA GPU leads #1268
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1268
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?
@Proudnoob4 on GitHub · 2026-11-26 07:11 UTC · original
Sharing reproducible RTX 4080 / Windows 10 measurements showing 27.2 fps median (28.6 fps max, 0 stutters >55 ms across 8 minutes of steady world gameplay) with native visuals (no blurry glass overlay, no black shards), plus three NVIDIA GPU leads that explain why the card still sits at ~100 W / 7% VRAM util.
Hardware & Test Setup
P0, 2,805 MHz GPU / 11,201 MHz VRAM) · Intel i5-13600K (6P+8E, 14c/20t) · Windows 10 (D3D12 Agility SDK)--execute --console series-s, prison cell opening world scene (~4,500 draws/frame), 10-minute full recorded runsVICTORY_RENDER_SCALE=0.6666667(720p internal → 1080pVICTORY_OWN_UPSCALER=1),VICTORY_COMPOSE=1, RT off (VICTORY_SKIP_PIPELINESskipping the 1,034 RT resolve/traced-shadow shaders), ambient lighting tuned (VICTORY_AMBIENT=0.75,VICTORY_AMBIENT_AIR=1.5,VICTORY_AMBIENT_MOST=2,VICTORY_AMBIENT_SHADE=1.1,0.6,VICTORY_AMBIENT_REFLECT=0.65,VICTORY_NAN_SCRUB=1)Recipe: PR Stack + Key Env Vars for 25–27+ FPS on NVIDIA
Built on
trustno1-coder/VIctory-NVIDIA(main, LTO + AVX2release) with the following cherry-picked PRs:avatarmanz/VIctory-7900XTXspeed wave (0a43566..85d5641),#105(VICTORY_PLACED_FORWARD),#107(VICTORY_ALIAS_CAST),#119(headroom-scaled VRAM spares — critical on 16 GB cards),#96(8-shard dynamic descriptor pool),#97(placed UAVs),#109(divergent wave32 barrier guard),#82(exact wave32 cascade shadows),#24/#42/#108/#114,fxceless#1044(phys-core dstorage),fxceless#1146(VICTORY_LAND_ASIDE=1),Marvisak#3037(kernel_writing),VertexGUARDSRwLock.fxceless#868(VICTORY_SKIP_WC_COMPARE=1,VICTORY_SKIP_WC_BACK=1) — cut card compare passes 71% (79 → 23), pieces compared 52% (11,862 → 5,670), hash passes ~25–36% (121–141 → 92–109); 100% stable over multiple 10-minute runs.fxceless#907(ForceEarlyDepthStencil) — completely eliminates the blurry window-glass square overlaying Lucia's hair in the prison cell.fxceless#1264(VICTORY_BAKE_SOURCES=1) — actively caught and uploaded 31–36 waiting character decoration-bake textures before their bake draws.fxceless#1210(preserve min-LOD on streamed texture views) +fxceless#1248(VICTORY_TABLE_SETTLE=1+ extendedRECHECK_FRAMES).PastiiJay/klbf-lab#41(DXIL pure LICM + canonical ptr-path non-aliasing LDS/private forwarding & DSE + adjacentdx.op.barrierdedup + canonical cmp/algebraic folds): +1.80 fps (-2.6 ms/frame) pure warm-cache GPU gain!play-nvidia.ps1):Measured Progression (10-min Runs, Same Scene,
release)fx#868(SKIP_WC_COMPARE=1)40.0 ms)fx#907(EarlyDepth) + Smart GPU Barriers39.3 ms)WAIT_MS=10000,STAGE_MS=500)klbf#41+klbf#50+fx#1264/1210/1248(cold cache, 16 normal workers)45.2 ms, CPU-bound compiling)36.7 ms, n=96 5s intervals)35.0 ms)nvidia-smi):P0, median 2,805 MHz GPU, 99.8 W (out of 320 W TDP), 99% GPU util, 7% VRAM util, max 12,809 MiB VRAM.klbf#50(refused 6 → 10):#50's stricter write-only WAW/cyclic rejection refused 4 additional compute shaders on NVIDIA (89d08e561897d4e5,55679a0547649d0b[skinning],1f1fbd86759b3da2,caf96a3229145fa6) that upstreamlds_meetingsaccepted cleanly. Reported directly onPastiiJay/klbf-lab#50.What Hurt or Didn't Help (Saved Re-Testing)
VICTORY_CARD_BUFFERS_MIN_KB=64(even withCARD_BUFFERS_MB=2048): caused 6 one-frame black shard flashes in 20 s (~18/min) vs 0 in 90 s atMIN_MB=1/1536 MB.VICTORY_CARD_WINDOWS_MB=3072: 0 ms GPU speedup, +3 GB VRAM, +10 MB/frame uploads.VICTORY_STREAM_COPY=1/VICTORY_STREAM_REFRESH=1(AVX2 non-temporal stores): +2.2 ms CPU regression on i5-13600K (L3 cache eviction on hot buffers).VICTORY_PIPELINE_WORKERS=16withVICTORY_PIPELINE_LOWEST=0: starved the submitting thread (that thread workedjumped from 24.4 ms → 41.7 ms) during cold-cache compiles.3 High-Leverage Unused GPU Leads on NVIDIA (Why RTX 4080 Sits at 100 W / 7% VRAM / 99% Util)
Even at 2,805 MHz and 99% GPU util, the RTX 4080 is only drawing ~100 W (31% TDP) and 7% VRAM bandwidth — classic warp-stall / SM-drain symptoms:
split_ldsbarrier storm on Wave32 (victory-shader/src/emit/lower.rs:5788): emits a fullGroupMemoryBarrierWithGroupSync(dx.op.barrier) before everyds_readandds_writein Wave64-split compute shaders, including consecutive read-after-read bursts and immediately after ans_barrier. Because loads sit between them, adjacent-barrier dedup (klbf#41) cannot drop them. Coalescing consecutiveds_reads and post-s_barrieraccesses within all-lane blocks is sound and should cutBAR.SYNCstalls significantly.rdna_floatgated off on NVIDIA (victory-shader/src/emit/lower.rs:1516): NVIDIA currently emits 21 DXIL instructions for everyv_med3_f32(evenclamp(x, low, high)between ordered constants, which is 2 opsFMax/FMinand NaN-exact on NVIDIA too!), 10 extra ops for everyv_max_f32/v_min_f32(just for-0vs+0), and 6 ops for everyv_mul_legacy_f32(evenx * xor finite × non-zero constant).barrier_groups: Inspecting single-elementD3D12_BARRIER_GROUPstructs + consecutive UAV dedup + removing redundant indirect UAV barriers cut ~165 global UAV barriers/frame, leaving ~595 emitted/frame — of which 178/frame (30%) are multi-elementTYPE_TEXTUREgroups (g.num > 1) still conservatively emitting a global UAV barrier.Will test those 3 leads next on RTX 4080 and report back!
@Proudnoob4 on GitHub · 2026-11-26 08:12 UTC · original
Update (Batch 8 + Batch 9 verified 10-minute RTX 4080 runs)
We tested two more batches on RTX 4080 16 GB / i5-13600K / Windows 10 (
--console series-s,render_scale=0.6667, RT skipped, full 10-minute recorded runs):1. Window glass / transmission shader + 5 more Wave32 shaders recovered (
10 → 4refused)2da4beb386509b77,CS_AlphTransmissionPrefilterMip): Incrates/victory-shader/src/resource.rs,Tracer::descriptor()andTracer::live()omitted per-instructionlanes.guards[at.0][at.1]when pruning dead join edges (trackingat: Cell<Option<usize>>instead ofCell<Option<Site>>). Addinglanes.guards[at.0][at.1]toknownrecovers2da4beb386509b77cleanly on NVIDIA Wave32. Combined withfx#907(ForceEarlyDepthStencil), the prison window now renders real frosted refraction properly behind Lucia's hair with zero blurry overlay.369cbe906ea72764recovered via single-latchs_andn2_wrexec_b64+s_cbranch_scc1active-loop widening (emit/mod.rs) +restored_lanes/scc_some/ ordered-LDSlane_uniform(resource.rs,lower.rs).89d08e561897d4e5,55679a0547649d0b,1f1fbd86759b3da2,caf96a3229145fa6recovered onklbf#50(lds.rs) by trackinghas_plain_readseparately fromKind::Rmw(details posted onPastiiJay/klbf-lab#50).02384a60fda6f2d0,6b82bc7d22016cb5,5dc3b25986622949,6f225b641c5b0708),0untranslated.2. Loading, streaming & stability wins
VICTORY_DSTORAGE_STAGING_MB=256, up from 32 MiB) indstorage.rsprevents multi-MB RPF chunks from starving worker threads during world entry/streaming.WaitOnAddress/WakeByAddressAllblocking fence waits infence.rs, immediateDetached::release_tables()on GPU completion (list.rs+host.rsinstead of holding dynamic descriptor slots acrossbury_lag=16),VICTORY_INDIRECT_REST=0default (indirect.rs), and XMA audio skipped-frame/refill fixes (audio.rs).n=88settled 5s intervals,making=0, cold-cache startup -> world entry94.6 s, settled199.3 s):25.55 fps(39.1 ms/frame,p10 24.50,p90 27.10,max 28.20), worst settled frame46.3 ms,0steady stutters>55 ms4,520draws/frame (+220 more real draws/frame with the 6 recovered shaders +VICTORY_INDIRECT_REST=0)0.9 MB/framecopy-back,13,345 MiBmedian /13,563 MiBpeak VRAM3. Key GPU bottleneck clue (Batch 8 A/B -> profiling now)
In Batch 8 (Pass 9 warm,
n=71), combiningsplit_ldsread-after-read / post-s_barriercoalescing + NVIDIA fast float (MAX_MIN|LEGACY|MED3) + 64-byte multi-elementD3D12_TEXTURE_BARRIERinspection (tex_multi_kept: 178 → 0,-30global UAV barriers/frame) was flat (27.00 fps / 37.1 msvs Pass 727.20 fps / 36.7 ms), while the RTX 4080 sits at~98 W(~30% TDP),99%GPU util,6–7%VRAM util. That proves we are not shader-ALU bound — next run isdiag+VICTORY_GPU_TIMING=1+VICTORY_D3D12_DRED=1on the warm cache to post the exact per-list GPU breakdown (title'svspreludesvsstepsvscomparesvsothers) and attack whatever owns those~37–39 ms.@Proudnoob4 on GitHub · 2026-11-26 08:52 UTC · original
SOLVED —
VICTORY_FETCH_CHECK=1eliminates theMIN_KB=64black-shard flashes on RTX 4080 (32.0 fpsmedian,34.4 fpsmax,0/60corrupted frames)!We found and verified the root cause of the 1-frame black-shard flashes we previously reported with
VICTORY_CARD_BUFFERS_MIN_KB=64:host/torn.rs): WithVICTORY_RELAY_COPY=1, the copy queue fetches small<1 MiBdynamic buffers back while a later flight is clearing/refilling them, landing torn intermediate bytes into the CPU side that later upload back over valid data.VICTORY_CARD_BUFFERS_MIN_KB=64+VICTORY_CARD_BUFFERS_MB=2048+VICTORY_FETCH_CHECK=1+VICTORY_SKIP_WC_BACK=1+VICTORY_SKIP_WC_COMPARE=1.VICTORY_SKIP_WC_BACK=1+VICTORY_SKIP_WC_COMPARE=1keeps write-combining buffers off the copy-back path (0.3 MB/framecopy-back), soVICTORY_FETCH_CHECK=1only has to verify~52pieces/frame.VICTORY_FETCH_CHECK=1actively caught and repaired0.9–3.5torn 64 KiB pieces per frame (100%recovered whole on re-fetch!).Measured 10-minute RTX 4080 16 GB (Windows 10, i5-13600K, Series S
render_scale=0.6667, RT skipped)n=109/114)MIN_MB=1,CARD_BUFFERS_MB=153676.5 s25.70 fps(38.9 ms)25.90 fps28.400.9 MBMIN_KB=64,CARD_BUFFERS_MB=2048,FETCH_CHECK=170.1 s32.00 fps(31.2 ms)32.00 fps(worst33.4 ms,0stutters>55 ms)34.400.3 MB0/60black flashes across two 15 s / 2 fps burst contact sheets (t=420..435,t=520..535), native frosted glass intactGPU wait dropped to
0.0 mson the GPU (13,375 MiBpeak VRAM,104.7 W,2805 MHz) — shifting the frame from GPU-bound to 100% CPU-bound (24.2 mspreparing +6.7 mscopy-back).@HLVM04 on GitHub · 2026-11-26 08:56 UTC · original
A caution on
VICTORY_SKIP_WC_BACK=1(#868) in this recipe, from an RTX 5070 Ti (Windows 11, Series S profile, fork main plus PRs and local changes, ray tracing off):The table above judges the recipe on black flashes, and with RT skipped and
VICTORY_AMBIENTon, a missing lamp may be easy to miss. An A/B of the room lighting with and without the switch (same spot, ambient off) would show whether it happens on your tree too. Our runs were few and on a different tree, so take this as a reason to check, not as proof.@Danigamer05 on GitHub · 2026-11-26 12:10 UTC · original
A data point from a much slower machine, on the same base tree (
trustno1-coder/VIctory-NVIDIA033be27, unmodified). On this CPU the frame is still CPU-bound, but the tree is clearly faster than the fxceless-based one I had been using.Machine: RTX 2080 SUPER 8 GB (Turing, budget about 6.9 GB), Ryzen 7 3700X, 32 GB RAM, Windows 11, diagnostics build,
--console series-s.Switches: the default set of
scripts/play-nvidia.ps1(RT resolve and traced-shadow shaders skipped,CARD_BUFFERS_MIN_MB=1,CARD_BUFFERS_MB=1536,PIPELINE_WAIT_MS=10000, and so on), without Smooth Motion. Every shader was translated ahead withvictory.exe shaders(25,776, 209 do not translate).Each run is 600 s from launch, the same save, through the opening cutscene to the cell and the common room. The numbers are medians of the last 90 s.
dc4c0fc+ #1002 #1112 #798 #1081 + CPU PRs,TEXTURE_NO_WAIT=0(for comparison)TEXTURE_NO_WAIT=1), first run on the treeTEXTURE_NO_WAIT=0RENDER_SCALE=0.6667),TEXTURE_NO_WAIT=0What I saw:
TEXTURE_NO_WAIT=1the faces were gone. WithTEXTURE_NO_WAIT=0they are right in the cutscene and in gameplay, and it cost no frame rate here (9.4 against 8.4, though the first run also paid for the driver making pipelines). That fits the race described in #923.PIPELINE_WAIT_MS=10000while the driver made pipelines. In the following runs it was gone.Caveats: one run per setting, judged by eye on screenshots every 10 s plus the player's view, and one scene only.
Numbers and text only. AI-assisted (Claude Code).
@d0dev on GitHub · 2026-11-26 12:56 UTC · original · edited 2026-11-26 14:23 UTC
Data point on
trustno1-coder/VIctory-NVIDIA033be27(diag build,scripts\play-S-720p.ps1 -NoSmoothMotion, so Series S at 720p with the RT skip list): RTX 4070 Ti SUPER 16 GB (driver 616.92), Ryzen 7 5800X3D, 32 GB, Windows 11. Same save on the first boat mission, mean of the last 8 frame-log readings with >3,000 draws each:TEXTURE_NO_WAIT=0TEXTURE_NO_WAIT=0 CARD_STEPS=0TEXTURE_NO_WAIT=0fixes the faces and is faster here too.CARD_STEPS=2is worth ~5 fps, but the triangles and flicker went away only withCARD_STEPS=0.WIDE.@Proudnoob4 on GitHub · 2026-11-26 14:39 UTC · original
Update — Solved
MIN_KB=64+SKIP_WCblack-frame bug (VICTORY_SKIP_WC_MIN_KB=1024): verified32.00 fpsmedian,0/230black frames, full4,505draws/frame, GPU down to61%busy!Thanks @Danigamer05 and @d0dev for the 2080 SUPER and 4070 Ti SUPER data points — that
VICTORY_TEXTURE_NO_WAIT=0face-fix + speedup observation is super useful! We plan to A/BTEXTURE_NO_WAIT=0right alongside#1274(VICTORY_SECTION_MB=2, which cuts texture-remap stalls37 ms -> ~1 ms) in our next pass.Two major verified updates from our RTX 4080 16 GB / i5-13600K / Win10 testing:
1. Critical fix for
VICTORY_CARD_BUFFERS_MIN_KB=64+VICTORY_SKIP_WC_COMPARE=1(VICTORY_SKIP_WC_MIN_KB, default1024KiB)Earlier we noticed
MIN_KB=64 + FETCH_CHECK=1 + SKIP_WC_COMPARE=1gave32 fps, but 5 subsequent 10-minute runs showed that unguardedSKIP_WC_COMPARE=1atMIN_KB=64triggers 66–72% full-screen black frames (152/230on6733ddf) and drops ~744 draws/frame (4,562 -> 3,818).4,045of GTA 6's4,179< 1 MiBbuffers (45.8 MB) live in the0x948a00000..0x998700000write-combining (0x2404) heap. Skipping compare/copy-back on< 1 MiBWC buffers drops263pieces/frame (3.3 MB), starving draw/exposure buffers. Meanwhile, the ~40>= 1 MiBWC buffers account for516pieces/frame (39.0 MB) and are 100% safe to skip.VICTORY_SKIP_WC_COMPAREandVICTORY_SKIP_WC_BACKby buffer size (shadow.span().1 >= VICTORY_SKIP_WC_MIN_KB, default1024KiB). Full breakdown posted in #1163.GPUUploadHeapSupported=falseon Win10 WDDM 2.7 (card memory the CPU maps supported=false), soSMALL_BUFFERS_BAR_MB/WINDOWS_BAR_MBdon't engage on Win10 — makingMIN_KB=64 + CARD_BUFFERS_MB=2048 + FETCH_CHECK=1 + SKIP_WC_MIN_KB=1024the key win on Win10 NVIDIA.2. Verified
klbf-lab#57shadow/watch CPU optimizations in live GTA 6We ported the
PastiiJay/klbf-lab#57shadow/watch stack (O(dirty)TOUCHED_CARDS, 64-page-per-wordCopiedPagesbitmask, lock-freehas_pending, directmerge_under_writes,FOUND_LOOSETLS cache, in-placejoined(), AVX2 SIMD diff/merge) and verified it with a 10-minute live runtime oracle audit (31,249log lines, 0 mismatches across all 7 fast paths). In steady state on i5-13600K:noting the runs:~3.7 ms -> 1.28 ms(-65%)finding the pages:~0.28 ms -> 0.05 ms(-82%)10-minute RTX 4080 / Win10 A/B summary (
render_scale=0.6667, Series S, RT skipped,t=140..600sn=230scan)BLACK(n=230)MIN_KB=64, unguardedSKIP_WC33.8533.9(35.6)3,81854(1.3 MB)74%152/230(66%)MIN_MB=1,SKIP_WC=125.5525.6(28.1)4,562317(4.6 MB)99%(~39 ms)0/230MIN_KB=64,SKIP_WC=026.8526.9(28.2)4,525833(43.5 MB)77%0/230MIN_KB=64,FETCH_CHECK=1,SKIP_WC_MIN_KB=1024+ klbf-lab#5732.0032.00(32.70,0>55 ms)4,505317(4.5 MB)61%(~18 ms)0/230(120/120bursts clean)Next up: porting #1184 (
VICTORY_HOIST_CLAMPS=1), #1274 (VICTORY_SECTION_MB=2), and #1276 (HostHeap::dropcleanup), then attacking the remainingvictory-submitCPU bottleneck (32.8 msworking while RTX 4080 is now only61%busy!).@d0dev on GitHub · 2026-11-26 14:52 UTC · original
@Proudnoob4 Thanks for the update and for picking up the
TEXTURE_NO_WAIT=0point. TheVICTORY_SKIP_WC_MIN_KBfinding looks like it explains something I saw: withSKIP_WC_BACK=1on fxceless' tree the prison rooms render noticeably darker on my 4070 Ti SUPER. I added the same size gate locally (skip only buffers ≥ 1 MiB) to compare.Would you be willing to push the branch with the
SKIP_WC_MIN_KBgate and your klbf-lab#57 port? I tried cherry-picking klbf-lab#57 (ea3f336) onto both fxcelessmainandVIctory-NVIDIA033be27, and it conflicts in 12 and 26 places inshadow.rsrespectively, all in the copy-back merge paths. I'd rather test your audited port than resolve those by hand. I'll post the numbers from the 4070 Ti SUPER / 5800X3D back here.@Proudnoob4 on GitHub · 2026-11-26 14:58 UTC · original
@d0dev Pushed our Pass 15 verified branch (
f3c8a1f, built on top oftrustno1-coder/VIctory-NVIDIA033be27) here:b22c0a7— audited port ofPastiiJay/klbf-lab#57(O(dirty)TOUCHED_CARDS, 64-page-per-wordCopiedPagesbitmask, lock-freehas_pending, directmerge_under_writes,FOUND_LOOSETLS cache, in-placejoined(), AVX2 diff/merge;0mismatches over a 10-min live GTA 6 runtime-oracle run)f3c8a1f—VICTORY_SKIP_WC_MIN_KB(default1024KiB =1 MiB) gating bothVICTORY_SKIP_WC_COMPAREandVICTORY_SKIP_WC_BACKincensus.rsandhost.rsSwitches used in our verified Pass 15 run (
32.00 fpsmed,0/230black frames,4,505draws/frame on RTX 4080 / i5-13600K / Win10):play-nvidia.ps1baseline +rt_off_hashes.txt(VICTORY_SKIP_SYNC=1)VICTORY_RENDER_SCALE=0.6666667,VICTORY_OWN_UPSCALER=1,VICTORY_COMPOSE=1,VICTORY_NAN_SCRUB=1VICTORY_CARD_BUFFERS_MIN_KB=64,VICTORY_CARD_BUFFERS_MB=2048,VICTORY_FETCH_CHECK=1VICTORY_SKIP_WC_BACK=1,VICTORY_SKIP_WC_COMPARE=1(VICTORY_SKIP_WC_MIN_KBdefaults to1024)VICTORY_LAND_ASIDE=1,VICTORY_LAND_SKIP=1,VICTORY_SMART_BARRIERS=1,VICTORY_DEDUP_BARRIERS=1,VICTORY_COPY_BESIDE=1,VICTORY_STORE_BESIDE=1VICTORY_NV_FLOAT=7,VICTORY_SPLIT_LDS_COALESCE=1,VICTORY_LDS_WRITE_ONLY_OK=1VICTORY_STREAM_COPY=0,VICTORY_STREAM_REFRESH=0(AVX2 NT stores regressed+2.2 mson our CPU; may differ on 5800X3D)VICTORY_TEXTURE_NO_WAIT=0on your boat save!Looking forward to your 4070 Ti SUPER / 5800X3D numbers — especially interested in how
VICTORY_SKIP_WC_MIN_KB=1024affects the prison lighting you noticed!@d0dev on GitHub · 2026-11-26 16:13 UTC · original
@Proudnoob4 Thanks for pushing the branch. Numbers from my RTX 4070 Ti SUPER 16 GB (driver 616.92) / Ryzen 7 5800X3D / 32 GB / Windows 11 26200, diag build,
play-S-720p.ps1 -NoSmoothMotion, your Pass 15 switch list plusVICTORY_TEXTURE_NO_WAIT=0, first boat mission, mean of 8 frame-log readings with >3,000 draws:989e5c6(batch 12)f42d67b(batch 13),LAZY_COPYBACKoff(The second run had ~3,430 draws/frame against ~3,720, so part of that gap is the scene.)
Picture: no flicker or triangles on the boat, faces right, and the prison is no longer dark with
SKIP_WC_MIN_KBat its default, which matches what you expected. The probation officer's glasses look mostly right too. The only thing I'd call out is softness in the distance, which I put down to the 720p render scale.VICTORY_LAZY_COPYBACK=1crashed about 2.5 min after launch, just after reaching the world:0xc0000005 at victory-image-…dll+0xc4b94e (write 0xfaff804: no access), then the same at0xfaffc04. The last line before it:27.5 newly armed, 61.8 steady hits, 1.3 VEH read faults, 16.0 VEH write faults, 9.8 explicit flushes (1.70 MB), 160 pages armed now. So a write to an armed page got past the handler.One setup note for Windows 11 users: with
bd5fa48(the Agility SDK exports) the device creation failed with0x887E0003until I putD3D12Core.dllfromMicrosoft.Direct3D.D3D121.620.2 intotarget\diag\D3D12\(this tree has nocargo xtask agility).@Proudnoob4 on GitHub · 2026-11-26 16:50 UTC · original
@d0dev Really appreciate the 4070 Ti SUPER / 5800X3D numbers and the visual confirmation — awesome to hear
VICTORY_SKIP_WC_MIN_KB=1024fixed the dark prison lighting on your end too, and+3.7 fps(23.2 -> 26.9 fps,preparing 32.7 -> 27.4 ms) fromklbf-lab#57+ Batch 13 matches what we measured!Two quick follow-ups + a fresh branch push (
f53aa2bonProudnoob4/VIctory-NVIDIAnvidia-hybrid-v2):VICTORY_LAZY_COPYBACK=1VEH crash (0xc0000005write to armed page0xfaff804escaping the handler on Win 11 / 5800X3D) — I'll relay that exact trace to@PastiiJay/@Vladimir-HumanonPastiiJay/klbf-lab#59(we also keepVICTORY_LAZY_COPYBACK=0by default). Also noted your Windows 110x887E0003Agility SDKD3D12Core.dll1.620.2setup note.f53aa2b(Batch 14 + 14b, purevictory-gpu/victory-hle, zero shader cache rebuild):trustno1-coder/VIctory-NVIDIA#1(ebf3d3c9): splittingExecuteCommandLists(check)unconditionally added+16extra WDDM submits/frame and regressed our RTX 4080 by~2.5 ms. Inf53aa2bwe gated the split behindVICTORY_SPLIT_COMPARE_SUBMIT=1(ordiagnostics+VICTORY_D3D12_DEBUG), keeping release gaming on the single submit path.VICTORY_SET_CACHE(default ON; credit@zocram4cc): 4,215 skipped host bindings/frame (23.6%).VICTORY_FIND_BUCKETS(default ON; credit@zocram4cc),fxceless#1320+fxceless#1324(HostHeap::id()slot safety; credit@CwWwWwW).VICTORY_MAP_LOCK_FINE=1,VICTORY_PARTIAL_DELTA=1,VICTORY_BAKE_DELTA=1(credit@zocram4cc/Op-lite/victory-scarlett), andVICTORY_ASK_TEXTURES=1(53.8% write-watch cache hit on textures whenVICTORY_ASK_QUIET=0).VICTORY_ASK_QUIET=4: hurt+0.95 mson native Win 10 (1 MiBGetWriteWatchblock expansion; Linux/Wine RPC win only).VICTORY_COPY_COMPARE=1: cut PCIe upload19.3 -> 6.9 MB/f(-64%) and hash passes157 -> 92, but fragmentedCopyBufferRegionranges66.9k -> 72.1k(+0.5 msCPU copies).VICTORY_PORT_JOURNAL=1(avatarmanzPort 7): pushed ourheap_syncfrom4.65 -> 7.09 ms(+2.44 ms) because asking heap records at every title submit (28/f) scanned322pages vs200pages when batched byVICTORY_JOIN_PARTS=8(16/f). Left opt-in OFF by default.Next up we're tackling the 27–29 ms GPU active ceiling (
86–89.5%GPU busy on RTX 4080 in the 4,580-draw yard scene) by portingMarvisak/VIctory#2825(native16f16 math) +PastiiJay/klbf-lab#50(Wave32 LDS hazard analysis) +PastiiJay/klbf-lab#41(DXIL LICM/LDS/barrier opt) together in one shader cache rebuild, plusTablePlan/ scoped bindless heap refreshes /VICTORY_POOL_DISCARD=1(crediting@codec_d&Op-lite/victory-scarlett).@Victorywillbeours222 on GitHub · 2026-11-26 18:39 UTC · original
Data point for
Proudnoob4/VIctory-NVIDIAnvidia-hybrid-v2f53aa2bon a different processor: RTX 5080 16 GB, Ryzen 7 5800X (8 cores, no X3D), 32 GB, Windows 11 26200. Diagnostics build,--console series-s.Switches: play-nvidia.ps1's set at 720p (
RENDER_SCALE=0.6666667,OWN_UPSCALER,COMPOSE,BVH_MISS,rt_off_hashes.txt),RELAY=2,CARD_STEPS=2,TEXTURE_NO_WAIT=0, plus the Pass 15 list as posted (SKIP_SYNC,CARD_BUFFERS_MIN_KB=64,CARD_BUFFERS_MB=2048,FETCH_CHECK,SKIP_WC_BACK,SKIP_WC_COMPAREwithSKIP_WC_MIN_KBat its default,LAND_ASIDE,LAND_SKIP,SMART_BARRIERS,DEDUP_BARRIERS,COPY_BESIDE,STORE_BESIDE,NV_FLOAT=7,SPLIT_LDS_COALESCE,LDS_WRITE_ONLY_OK,STREAM_COPY=0,STREAM_REFRESH=0) and Batch 14b'sMAP_LOCK_FINE,PARTIAL_DELTA,BAKE_DELTA,ASK_TEXTURES. Shaders were warmed with the same switches set, sinceNV_FLOAT,SPLIT_LDS_COALESCE,LDS_WRITE_ONLY_OK,BVH_MISSandNAN_SCRUBare in the cache key.Local changes:
bd5fa48(the Agility SDK 620 exports) is reverted. Without aD3D12Core.dllbeside the exe, device creation fails on Windows 11 26200 (0x887E0003), as d0dev found. Reverted, the system runtime (10.0.26100.9818) works.VICTORY_REAPERis ported, to measure it here (below).2d1dc38is cherry-picked. It conflicts intexback.rswithMAP_LOCK_FINE, and I kept the ranged lock:title_memory_reading_in(at, end - at)in the writer.Result, hands-off, the opening cell (600 s from launch; the first run on a fresh cache spends ~200 s with the driver making pipelines):
2d1dc38(89 windows)(Medians of the frame-log lines with over 3,000 draws, after each run's last pipeline wait.) With the pipelines kept from run 53, the world is steady about 140 s from launch instead of 220.
2d1dc38(the texture read-back writer thread) can't show in this scene: the log has 0 texture read-backs a frame there. I kept it for streaming scenes. 0 errors and no device loss in either run. The picture in the cell is right: faces, hair, the window, and the photos and notes on the wall. For scale, the same machine and scene on fxceless main (ceb9e1f+ #1002, with the #1317 processor switches) does 9.1 fps.Where the frame goes on a 5800X: the submitting thread is the limit. The
ASYNC_SUBMITline says "that thread worked 48.0 ms" of the 52. The card is about 53% busy, and 24 ms of the frame it waits behind us. The preparing line, per frame:Three off-by-default switches for that thread, run 56:
VICTORY_AB=15,VICTORY_LANE_CORE,VICTORY_UP_QUEUE,VICTORY_JOIN_BARRIERS, so all eight combinations came in turn. The run was hands-off in the same scene, 660 s, 0 errors. I kept the 36 phases with ≥100 frames and >3,000 draws. Medians of the phases' median frames:LANE_COREUP_QUEUEJOIN_BARRIERSAll three off was the fastest combination: 50.8 ms, p90 56.1. On an 8-core 5800X, giving the submitting thread a core of its own costs more than it gains. My guess, not measured: the other threads have one core fewer. So the defaults are right on this processor.
VICTORY_REAPER(fork #1349) does nothing on this tree: 52.0 ms on, 51.9 off. About 47,000 retired objects a frame take 1.0 ms to drop; details on #1349.Not tested here:
VICTORY_WINDOWS_BAR_MB(VIctory-NVIDIAcda4987). This PC has resizable BAR off (BAR1 256 MiB), somapped_card_bufferwould give nothing.Numbers and text only. AI-assisted (Claude Code).
@Proudnoob4 on GitHub · 2026-11-26 19:04 UTC · original
World-entry stall on RTX 4080 / i5-13600K: what it is, and why DirectStorage is not the cause
Setup:
Proudnoob4/VIctory-NVIDIAnvidia-hybrid-v2(926f113), Windows 10, Series S, render scale 0.6667. Runs 20-26 today; the first in-world minutes run at 0.1-6 fps before settling at 31-33 fps. Measured from the first in-world frame to 5 log lines >= 20 fps, the stall was 115, 174, 173, 242 and 182 s in five runs of near-identical settings, so single A/Bs of its length prove little.What the title waits on. Its main thread spins at
+0x4fb0bd0in the console'smonitorx/mwaitxwait (patched topause+Sleep(0)on Intel), called from a two-slot frames-in-flight ring at+0x247476d: it waits for frame N-2. That spin shows up as CPU time in profiles (98 s in a 205 s window) and is invisible to wait hooks.Where the time goes (
VICTORY_TIMELINE=200+240+280,2,...on a diag build: the chain of work and waits behind each present). The card runs 15-17 ms per stall frame and idles 2.3-3.3 s. The chain to each next submission is roughly half the title's own job threads running (several threads, 150-500 ms each) and half ours:submit: the lists' steps217-390 ms in every window, the descriptor-records thread 745 ms at world entry, thevictory-underpool 71-445 ms, texture/copy refreshes 124-159 ms.DirectStorage is not on that chain. With
VICTORY_DSTORAGE_LOG, reads come in bursts that fill all 14 workers (300-1,200 queued at the peak), but each read takes 1-6 ms (median) and the workers then sit idle 1.5-2.6 s until the title's streaming thread submits again (the timeline names it as the waker). Ruled out on this machine:VICTORY_DISK_CORES=slow): A/B any-core vs E-cores gave stall 173 vs 242 s but longer queue waits unpinned (p90 1,019 vs 262 ms), so no clear win.timeBeginPeriod(1)is already set) and file handles (Io::Handles, one per worker).Separate stutter sources seen in the same runs:
host::mapped(the aside copy fenced after new card memory) single waits up to 1,004 ms, andMakeResidentwaits up to 422 ms.AI-assisted (Claude Code).
@d0dev on GitHub · 2026-11-26 19:06 UTC · original
@Proudnoob4 Results for
f53aa2bon my RTX 4070 Ti SUPER / Ryzen 7 5800X3D / Windows 11 26200, same Pass 15 list +TEXTURE_NO_WAIT=0+ your newMAP_LOCK_FINE=1 PARTIAL_DELTA=1 BAKE_DELTA=1 ASK_TEXTURES=1, boat mission (~3,500 draws/frame), per-minute averages:STREAM_COPY=0 STREAM_REFRESH=0): ~27 fps in the first two minutes on the boat, then steady at ~25 fps (preparing ~30 ms) for the next four; copy-back ~6.5 ms, card ~50–60 % busySTREAM_COPY=1 STREAM_REFRESH=1: ~28 fps one minute in (preparing ~26 ms). That's within the early-minutes range above, so on the 5800X3D I'd call the NT stores neutral, not the +2.2 ms regression you saw.ReBAR: couldn't test
SMALL_BUFFERS_BAR_MB/WINDOWS_BAR_MB: the log sayscard memory the CPU maps supported=false, andnvidia-smishows BAR1 = 256 MiB, so Resizable BAR is off in my BIOS (same as Victorywillbeours222's 5800X). I'll retest once I enable it.Picture issues I've seen on your branch:
CARD_STEPS=2(the recipe's default) clothes flicker after getting off the boat, and reloading the checkpoint doesn't stop it. WithCARD_STEPS=0it's gone, but the boat goes from ~25–27 to ~14.6 fps.STREAM_*switches. It looks timing-dependent, maybe the skin bake reading a texture before it has landed.CARD_STEPS0 or 2. I assume that's the RT skip list.@Victorywillbeours222 on GitHub · 2026-11-26 19:35 UTC · original
Follow-up to my RTX 5080 / Ryzen 7 5800X numbers above. Same scene and method, hands-off in the opening cell. Tree:
nvidia-hybrid-v2f53aa2b, and926f113for run 61 (it builds and runs clean here, with only the Agility revert on top).STREAM_REFRESHseems to depend on the processor. Run 57:VICTORY_AB=15,VICTORY_STREAM_COPY,VICTORY_STREAM_REFRESH,VICTORY_SYNC_FINE, 663 s, 0 errors. I kept the 35 phases with ≥100 frames and >3,000 draws.STREAM_REFRESHSTREAM_COPYSYNC_FINETwo whole runs agree. With the Pass 15 list as posted (
STREAM_REFRESH=0) the steady world was 19.4 fps, preparing 41.4 ms (run 54). WithSTREAM_REFRESHat its default (on) it was 20.3 fps, preparing 39.6 ms (run 59). The three processors so far:So the streaming-stores default may be best left per machine rather than off in the recipe.
STREAM_COPYmakes no difference here either way.What the frame waits on here (
VICTORY_TIMELINE=220+360+500,5,..., run 58). This is the chain of work and waits behind each present, averaged per frame over the three windows:VirtualProtect,GetWriteWatchProcessor use over the same steady part (typeperf every 2 s, runs 59–61): the PC 74–76% busy over 16 logical processors,
victory.exeabout 10.3–10.7 of them, run-queue median 1 (p90 4–9). Context switches 93,000–99,000 a second, about 2,000 a frame.I tried three ways to cut the waiting, each against run 59 (20.3 fps, 49.3 ms):
THIN_THREADS=6 UNDER_THREADS=4(fewer workers)WIDE_SPIN=100LANE_CORE=1(from my post above)*Run 60 was played, so this is its 125–255 s stretch only, before anyone touched the controller; run 59 over the same stretch was 50.1 ms. None of the three helps. The wake-ups don't come from pool size, and spinning 100 µs barely lowers them.
Played (run 60, same build): walking out of the cell into busier places at up to 7,400 draws a frame gave 15–17 fps, with 0 errors. One stall of a few seconds came on entering a new place: the recording threads waited 80 ms a frame for pipelines in that 5 s window.
Numbers and text only.
@Proudnoob4 on GitHub · 2026-11-26 20:24 UTC · original
@d0dev thanks, those picture reports are exactly what we can't see from the opening cell. On
nvidia-hybrid-v2:VICTORY_BAKE_DELTA=1from our list. It skips re-uploading a skin bake's source textures it believes unchanged; a source that changed while it was still landing would give exactly a stale or half-written face. Could you run the opening withVICTORY_BAKE_DELTA=0(and, if it still shows,VICTORY_PARTIAL_DELTA=0too)? That splits it in one or two launches.CARD_STEPS=2, gone with0: that points at a fill the card does instead of waiting for a flight. We'll try to reproduce it once we get past the cell; if you can, note whetherVICTORY_PLACED_FORWARD=0(also in our list, it feeds card fills from copies at their place) changes it.VICTORY_SKIP_PIPELINESwith the 1,034 resolve/traced-shadow hashes). A quick check is a launch without it; we'll look for which skipped programs those are.Also, from PastiiJay on PastiiJay/klbf-lab#59: Vladimir-Human pushed
c0ccb1btoperf/split-lazy-copyback-vehfor the VEH escape you hit (0xc0000005at+0xf804/+0xfc04). They'd like the same first boat mission rerun onc0ccb1bwithVICTORY_LAZY_COPYBACK=1and the last stats line posted there, if you have time.@Victorywillbeours222 thanks for the per-processor
STREAM_REFRESHsplit; agreed it shouldn't be forced off in a shared recipe. For comparison, our 13600K (14 cores) timeline in the moving cell scene (VICTORY_TIMELINE, diag build): the card runs ~9 ms a frame by its timestamps, "woken, not running yet" is small (0.3 ms), and the chain is our own CPU work: the submitting thread (~23 ms a frame in release), landing's "card plans and own work done" (4.6 ms) and waits for the heaps' records (~5 ms). So with 8 cores the wake-up latency you measured looks like your main cost, and on 14 cores it's our submit/landing path. Note the log's "the card about N% busy" counts queued time, not running.AI-assisted (Claude Code).
@d0dev on GitHub · 2026-11-26 20:53 UTC · original
@Proudnoob4 thanks, I'll run those splits tomorrow. Here is what I already have from tonight. Setup: RTX 4070 Ti SUPER, 5800X3D, 32 GB,
nvidia-hybrid-v2f53aa2b, Series S 720p, Pass 15 list +TEXTURE_NO_WAIT=0,MAP_LOCK_FINE,PARTIAL_DELTA,BAKE_DELTA,ASK_TEXTURES. I'm only counting boat readings with more than 3,000 draws.Resizable BAR (BAR1 16 GiB,
card memory the CPU maps supported=true)VICTORY_SMALL_BUFFERS_BAR_MB=128+VICTORY_WINDOWS_BAR_MB=1024: all 3D renders black (cutscenes and gameplay), while subtitles, the chapter card and the minimap still draw. I haven't split which of the two causes it yet.CARD_BUFFERS_MIN_KB=64/CARD_BUFFERS_MB=2048, and without them the GPU waits ~40 ms, same as step 2 in #1379.Faces: note that
play-nvidia.ps1already defaults toRELAY=2 CARD_STEPS=2, so that's what my earlier corrupt-face runs used. WithCARD_STEPS=1(#1379) I got one launch with no noise faces in the boat cutscene or on the boat, at the same speed (26–27.6 fps stable). That's only one launch and the bug is intermittent, so tomorrow I'll repeat it, check the clothes after the boat, and run yourBAKE_DELTA=0split withCARD_STEPS=2to see which of the two matters.Side note: the NVIDIA driver ships a profile for an unrelated game also called
victory.exe, and it gets applied to the emulator. Renaming the exe made no measurable difference here.