Windows 10 support (upstream #175 Agility SDK) + RTX 3080/Win10 verification #22
No reviewers
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!22
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@justlovett0 on GitHub · 2026-11-24 20:12 UTC · original
justlovett0:main→main· +3378 −166 · 27 files · 36 commits · openWindows 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.
Three translator gaps that dropped world shaders (46 programs of the retail pack; 0 that translated before stop now, by a whole-pack `translate --validate --list` against the previous commit): - A descriptor nothing uses as one, whose dwords the code reads all the same ("a descriptor read only as data", 35, and one "a descriptor's address or format read as data"): an 8-dword image picked from the heap by an index in a constant buffer, its width/height/base level turned into a texel size (PS_PuddleDetect, 34 pixel programs), or a 4-dword buffer tested for being empty by its record count (ShallowWaterSim:CS_MinTimestepReduce). New `unused_descriptor_kind` gives such loads a kind (image: a 2D texture, documented as a shortcut; buffer: a raw view) and `descriptor_data` rebuilds their size dwords from the host view as it does for used descriptors; the buffer's address dwords come from the host as before. Lane-copied descriptors and samplers keep their own handling (checked first). - The first half of an f16 interpolation pair whose register an f16 second half then writes the high half of ("the first half of an interpolation", 8, PS_DeferredTextured and mirror-reflection variants): the second half keeps the low half of the register, which the first half wrote and nothing reads. The first half of a pair now writes 0. - A 16-bit float wave sum where some lanes have left the program ("a wave sum of 16-bit floats where not every lane runs", 2, compute_graph_ops:CS_TransposeVecMatMul*): on a host wave of 64 lanes, `half_sum_present` follows the console's balanced tree, each lane reading its partner run's partial sum from the first lane of that run that is here (every lane of an aligned run holds the run's sum on the console, the ones outside EXEC included), +0 where none is. Two host waves of 32 still refuse it. Tests: a GPU test of the 16-bit sum with 64, 63, 40, 33, 32, 17, 5 and 1 lanes staying, bit for bit against the console's tree (RX 7900 XT). cargo test --workspace and clippy -D warnings pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>In its Series S mode the title renders at 1280x720 and calls the console's FidelityFX upscaler (`ffxDispatch` of amd_fidelityfx_loader_xbox.dll) to make the 1920x1080 output. The loader and upscaler are the title's own DLLs and run, but the upscaler's passes are compute pipelines in a container that is not translated ("falling back to NewBE" in the title's log), so the output was never written: the world was black behind the interface. The executable's import of `ffxDispatch` is now bound to ours. An upscale dispatch (type 0x10001, the public FidelityFX API's layout) is recorded as `victory_gpu::list::upscale_stretch` of its colour input into its output; any other dispatch, and an upscale that could not be stretched, goes to the title's DLL. The DLL is not registered as an HLE module: that kept the title's own from loading and left its other three entry points missing. Measured on an RTX 3050 8 GB, Windows 11, release build, on top of the R9G9B9E5 stand-in (#32): the Series S world renders (opening cutscene), 0.4 to 1.2 s a frame with peaks of 3 s, the card about a quarter busy, 7 GB of video memory, no host error in a five-minute run. Series X is not affected in the run made (it does not dispatch the upscaler). Not done: temporal accumulation, sharpening, use of the depth and motion inputs. No test yet. Only the opening cutscene was looked at.@justlovett0 on GitHub · 2026-11-24 20:38 UTC · original · edited 2026-11-24 20:39 UTC
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.
@justlovett0 on GitHub · 2026-11-24 22:08 UTC · original
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.
@justlovett0 on GitHub · 2026-11-24 22:10 UTC · original
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.@domints on GitHub · 2026-11-24 22:36 UTC · original
+1, fixes the startup problem and got me to menu and setup etc please merge
@ericomeehan on GitHub · 2026-11-24 23:18 UTC · original
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).
@Proudnoob4 on GitHub · 2026-11-24 23:23 UTC · original
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.
@justlovett0 on GitHub · 2026-11-24 23:28 UTC · original
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.@oz-stanislav-zhukov on GitHub · 2026-11-24 21:52 UTC · original · edited 2026-11-24 23:31 UTC
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).
@domints on GitHub · 2026-11-24 23:53 UTC · original
@justlovett0 not great that you created PR from your main branch and now you're pushing extra things...
@domints on GitHub · 2026-11-25 00:27 UTC · original
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.
@Proudnoob4 on GitHub · 2026-11-25 02:54 UTC · original
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.
@antikohza on GitHub · 2026-11-25 08:20 UTC · original
@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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.