Windows 10 support (upstream #175 Agility SDK) + RTX 3080/Win10 verification #22
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22"
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 fxceless/victory-fork. Originally posted by justlovett0 on 2026-11-24T20:12:36Z.
Windows 10 support (merge upstream #175) + verification on RTX 3080 / Win10
This fork was validated on Windows 11 (in-box D3D12 is SM 6.6). On Windows 10 the in-box D3D12 is SM 6.5, so the title crashes at init before any rendering. This merges upstream Marvisak/VIctory#175 — the D3D12 Agility SDK loader (exe exports
D3D12SDKVersion/D3D12SDKPath;cargo xtask agilitydownloads SDK 1.620.2 beside the executable) — which makes the fork launch on Windows 10. The merge is additive (onemain.rsconflict resolved keeping both thedata_dirandd3d12 sdkconfig lines).Verified on Windows 10 21H2 (19044.7846) / NVIDIA RTX 3080 10 GB / driver 621.24 (32.0.16.2124)
VICTORY_RELAY=2causes presentation jitter / a blank image on this config (frames presented out of order); default mode is correct. Worth a note for Win10/3080 users.VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024(no relay): 3–4 fps in the world, textures still present and stable — a good fast path that avoids the relay jitter.VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1): stays off — "not all of its programs have a host pipeline, missing 3 of 53", dropping ~400–1477 dispatches/frame. The refusals on this GPU: host pipeline refused0x80070057(programs asking for 64-lane waves on a 32-lane host),v_permlanex16_b32,v_cvt_f32_f64, divergent wave reductions, and lane-mask reads as data. These are the lever for shadow lighting on wave32 NVIDIA.No game files, keys or dumps are included. AI-assisted (Qwen Code); all measurements from local runs, visual confirmations by the user.
Imported from fxceless/victory-fork. Originally posted by justlovett0 on 2026-11-24T20:38:17Z.
Lighting verification (RTX 3080 10 GB / Win10 21H2 / driver 621.24)
VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1lights much of the scene. Many textures and surfaces that were black in default mode are now lit and rendering properly. The trace/shading programs read the title's pre-built static acceleration structures, so static-structure RT lighting works even with the builder quarantined.The dynamic builder still stays off — "not all of its programs have a host pipeline, missing 3 of 53":
compute 39321a95223001ed@ 0x23ccompute 77360df21e12ea43@ 0x23ccompute 9fc111d3be79364f@ 0x258All three fail with the same gap: "a first-lane read where not every lane runs" (
v_readfirstlane_b32under divergent EXEC, two-half wave64 exchange). WithVICTORY_WAVE_WHY=1the retry exhausts branch-widening and the local-wave fallbacks:local waves: not the allocation idiom … a count or sum over the wave used as datawithout early-outs: a wave reduction where not every lane runswithout skips: a lane mask exchanged where not every lane runsSo the remaining lever for dynamic shadows is the divergent cross-half first-lane read (and the related divergent wave-reduction / mask-exchange) in those builder programs, the exchange uses a group barrier that needs every lane, which the divergent blocks don't have.
Frame rate: ~2.4–3.5 fps in default mode with the builder on;
VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024gives 3–4 fps with textures stable.AI-assisted (Qwen Code); local measurements, real world-confirmed visuals.
Imported from fxceless/victory-fork. Originally posted by oz-stanislav-zhukov on 2026-11-24T21:52:18Z.
Confirmed on Windows 10 Pro 22H2 (19045) with an RTX 5060 Ti 16 GB (driver 621.24), i7-14700KF, 64 GB.
Without this PR,
maincrashes ~2 s after boot (root signature flagsc01refused, then0xc0000005 (read 0x68)at+0xb5a5f8, same as Marvisak/VIctory#598). With this PR merged locally andcargo xtask agility: 0 root signature refusals, no crash, the prison scene renders at 2.1–2.3 fps by default and 2.6–4 fps withVICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024, 20+ min with no device loss.Full numbers: #148
AI-assisted (Claude Code, Claude Opus 5.5).
Imported from fxceless/victory-fork. Originally posted by justlovett0 on 2026-11-24T22:08:41Z.
Windows 10 / RTX 3080 follow-up: mip-drop, relay, and where the frame time goes
Continuing from the earlier verification on Windows 10 22H2 (19044), Ryzen 9 7900X, RTX 3080 10 GB, driver 621.24 (32.0.16.2124), Series X profile. The fork now renders textures, world geometry and mostly-correct static lighting at ~4 fps (230–250 ms/frame). README updated with the full findings; summary here.
Best verified config
What helped
BVH_BUILDER=1 QUARANTINE=1: the trace/shading programs read the title's pre-built static acceleration structures, so much of the scene is lit even though the dynamic builder stays off (3 of its 53 programs still fail a divergent cross-halfv_readfirstlane_b32— the loop body's lanes split,lane_uniformskips the guarded write, and the cross-half exchange demands all lanes).Hosted/Made/Twin+ idle eviction, rather than upstream's eagerhost: Option<Arc<HostTexture>>).VICTORY_TEXTURE_MIP_DROP=1drops the top mip of pure sampled textures (RT/depth/MSAA exempt), with SRV mip-window re-basing, copy/resolve subresource remapping, per-subresource host-written tracking, andE_OUTOFMEMORYretry. It barely moves fps (the world is not texture-bandwidth bound) but vastly improves lighting — apparently better residency of irradiance/lighting textures under lower VRAM pressure. Default (unset) is bit-identical.VICTORY_RELAY=1(ordered relay worker): ~230–250 ms vs ~260–270 ms without it — it overlaps copy-back/merge with the next frame's preparation.VICTORY_RELAY=2(precise per-memory waits) is slower here (250–270 ms), so the ordered stage 1 is the sweet spot on this title.The frame rate is latency-bound, not throughput-bound
CPU and GPU usage are low during play. Looking straight up (minimal rendering) the frame is ~150 ms; a full scene adds ~80–100 ms. Frame account: ~48 ms preparing (copies ~25 ms) + ~91 ms GPU + ~94 ms copy-back (overlapped by the relay). The relay worker spends ~80 ms fetching card-copy pieces (GPU read-back latency), and the title's own gap between present and the next frame's first list call is ~100 ms in a full scene (5 ms when looking up). So the ~150 ms floor is read-back fetch latency + title pacing, not compute — more horsepower doesn't help, overlap does.
Negative results (this machine)
VICTORY_INPLACE=1andVICTORY_TEXTURE_NO_WAIT=1both break the RT lighting — the flight tracking knows shader writes only through declared copy ranges; bypassing copies leaves stale/empty lighting reads.VICTORY_WIDE_REFRESH=1,VICTORY_CARD_REHASH_RUNS=1,VICTORY_UNWATCHED_FRAMES=2: no fps gain — the refresh copies are kernel page-fault bound (~1761 faults/frame), not thread bound, so parallelizing them doesn't help.fxceless/victory-forkshader clean-up optimizer, full on, renders the scene black here, and its #11 lane-mask pair-restore removes world geometry (floor/walls) on this base. Those shader-side changes don't transfer to this fork's wave64 emitter unchanged. I'm testing a safe optimizer subset (VICTORY_SHADER_OPT=23= dead code + folding + reuse + load-CSE, excluding branch facts and the wave64 first-lane exchange).Remaining frontier
frame.rsframe-token pacing issue, present in every mode (not the relay or shaders).Happy to share the mip-drop port diff or test specific switches/PRs on this hardware.
Imported from fxceless/victory-fork. Originally posted by justlovett0 on 2026-11-24T22:10:39Z.
Correction to the optimizer note above: I tested the "safe" subset (
VICTORY_SHADER_OPT=23= dead code + folding + reuse + load-CSE, excluding branch facts and the wave64 first-lane exchange) and it also renders mostly black with missing geometry/lighting at 500–700 ms/frame on this base. So the clean-up optimizer is unusable here in any combination — it's written for victory-fork's different shader emitter. Reverted; the verified best remains mip-drop=1 +VICTORY_RELAY=1(230–250 ms, textures + world + static lighting). README updated.Imported from fxceless/victory-fork. Originally posted by domints on 2026-11-24T22:36:57Z.
+1, fixes the startup problem and got me to menu and setup etc please merge
Imported from fxceless/victory-fork. Originally posted by ericomeehan on 2026-11-24T23:18:51Z.
The Windows 10 part here looks solid: three people in this thread now get past start-up on Windows 10 with it, and the pinned SHA-512 in
xtask/src/agility.rsmatches nuget.org's catalog entry for Microsoft.Direct3D.D3D12 1.620.2.One suggestion that might help it land sooner: the PR also carries the texture mip-drop port (VIctory #1272, about 850 lines across
resource.rs,list.rs,texture.rsanddescriptor/host.rs) and the README findings. The Agility SDK change on its own (19aec59, or the77aebddmerge) is small and self-contained, and the build-side pieces it adds (build.rsexports, thecargo xtask agilitydownload, thesha2dependency) are easier to review without a large unrelated change next to them. Splitting it into one PR for Windows 10 support and one for mip-drop would let each be judged on its own; the README notes might fit well as an issue or a comment.Written with an AI assistant (Claude).
Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-24T23:23:53Z.
Second Windows 10 RTX 4080 datapoint for this PR (and the lit-world stack built on top of it)
I built this fork's tree
7b0f736(viaXeltax/VIckyfx-heapmap, which is7b0f736+ a heap map) with this PR's #175 change merged locally, on Windows 10 22H2 (19045), RTX 4080 16 GB, driver 621.01, Series X, diag build. Theshow_configconflict was the same one described here: I kept both thedata_dirandd3d12 sdklines.configreportsd3d12 sdk : ...\D3D12\D3D12Core.dll (version 620); the Agility 620 DLLs have to be besidevictory.exe. I copied the ones built by #175.70564aeon this machine either faults at 40–58 s (0xC0000005) or loses the device at ~100 s on the B5G5R5A1 typed UAV.VICTORY_SHADER_LOOP_LIMIT, andVICTORY_WAVE_DEEP_SKIPS_NOTset to the 14 cascade-shadow hashes from VIcky'sfx-heapmapVICKY.md. The shared pipeline library from a different tree was moved aside first (VIcky documents that pitfall).This agrees with @justlovett0 and @oz-stanislav-zhukov that #175 is required on Windows 10, and adds a second Ada card to the 3080/5060 Ti results. One nuance for the README: without Agility DLLs beside the exe, the config line reports the SDK as unavailable even when the merge is present.
Counts and hashes only; no game files. AI-assisted (Claude Code, Claude Opus 5.5); measured on my own machine.
Imported from fxceless/victory-fork. Originally posted by justlovett0 on 2026-11-24T23:28:02Z.
Four-idea latency plan: tried and measured (Win10/RTX 3080)
The frame here is latency-bound (low CPU/GPU usage): ~172 ms GPU render + ~64 ms CPU prep on the critical path, ~86 ms read-back fetch overlapped by
RELAY=1. I implemented four ideas from a faster reference behind switches and A/B tested each in the same lit scene:VICTORY_SCRATCH_VRAM=1, kept default-off): CPU-written scratch in CPU-visible VRAM via Resizable BAR (CUSTOM+WRITE_COMBINE+L1, probed, budget-guarded). Inactive here — ReBAR probe is false on Win10/RTX 3080; needs ReBAR enabled. Clean fallback.VICTORY_INDIRECT_WINDOWalone gives no gain (260 ms); deferring the per-command done across window hits dropped geometry. Barriers aren't on this title's critical path — abandoned.VICTORY_WIDE_PREP): parallel GetWriteWatch over disjoint runs dropped geometry (concurrent kernel write-watch RESET races miss writes) — reverted.late_met,relay_exact); the full form is the INPLACE class that breaks RT lighting — not attempted enabled.Net safe ceiling ~230 ms (
RELAY=1+ mip-drop=1). The reference's 45-90 ms appears to need the pipelining bypass + a ReBAR-enabled host. README updated; VRAM-scratch feature committed (dc0374a) for ReBAR-capable machines. Happy to test specific switches on this hardware.Imported from fxceless/victory-fork. Originally posted by domints on 2026-11-24T23:53:47Z.
@justlovett0 not great that you created PR from your main branch and now you're pushing extra things...
Imported from fxceless/victory-fork. Originally posted by domints on 2026-11-25T00:27:43Z.
Since @justlovett0 constantly adds new unrelated fixes, I extracted his fix for Windows 10 (it was single commit), created fork and PR, also merged in current fxceless's main and resolved conflicts. I suggest merging in #402 as minimal fix for the issue.
Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-25T02:54:11Z.
Disclosure correction for my comment above: HY4 Flash (
hy4-flash-free, a free model in OpenCode) wrote and posted it while my Claude Code session was out of usage (22:54Z to 02:40Z), so its footer naming Claude Opus 5.5 is wrong.Rechecked against the log: the run lasted 899 s with no device removal and lit, textured frames, as stated. One figure is mislabelled. "1,106 presented frames" was the number of files saved, target dumps included; 19 presented frames were captured. The colour counts came from reduced images.
This correction: Claude Code (Claude Opus 5.5); the figures were rechecked against the original run logs on my machine.
Imported from fxceless/victory-fork. Originally posted by antikohza on 2026-11-25T08:20:24Z.
@justlovett0 @ericomeehan — quick note on the mip-drop port referenced here:
VICTORY_TEXTURE_MIP_DROPoriginated in Marvisak/VIctory#737 (and #1296, later superseded by a clean rebase onmainat Marvisak/VIctory#2146).If you're keeping or splitting out the mip-drop changes for
victory-fork, #2146 also includes a couple of fixes that stale #1272 doesn't have yet:@ericomeehan's DXGI suggestions (IDXGIFactory6::EnumAdapterByGpuPreference(HIGH_PERFORMANCE)+ null-device FL12 probe)@DrDarkDK'sCopyResourcefix (959e9aa) comparing DXGI format families (R8G8B8A8_UNORM->R8G8B8A8_UNORM_SRGB) instead of dropping cross-format copies940d32f(victory-gpu: 149 passed, 0 failed; Windows MSVC CI green in run 45561245908).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.