Export the Agility SDK so the build renders on Windows 10 #50

Closed
github-bot wants to merge 3 commits from github-bot/gh-50 into main AGit
Owner

@⁠ghnb90909 on GitHub · 2026-11-27 14:51 UTC · original
ghnb90909:agility-sdk-windows-10 → main · +47 −0 · 3 files · 3 commits · closed without merging

What this fixes

The published v2026.11.26 victory.exe cannot render on Windows 10. Its D3D12
runtime rejects the heap-indexed root signature flags, nothing is drawn, and the
title crashes about 19 seconds in:

WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01).   (x12)
WARN victory_gpu::pipeline::host: host root signature refused error=参数错误。 (0x80070057)
INFO victory_gpu::host: 126.8 fps, 7.9 ms/frame ..., 0 draws/frame
VIctory: unhandled exception 0xc0000005 at victory-image-...+0xb5a5f8 (read 0x68: nothing mapped there)

dumpbin /exports victory.exe shows no D3D12SDKVersion / D3D12SDKPath, so the
application-local Agility SDK is never loaded. Windows 11's in-box runtime
accepts those flags; Windows 10's (d3d12.dll 10.0.19041.5794 here) does not.

What the patch does

Three files, ~44 lines, no behaviour change unless VICTORY_AGILITY_SDK=1 is set
at build time:

  • apps/victory/build.rs (new): sets cfg(agility_sdk) and the two /EXPORT:...
    linker arguments for the victory binary.
  • apps/victory/src/agility.rs (new): exports D3D12SDKVersion = 620 and
    D3D12SDKPath = ".\\D3D12\\", and checks that D3D12\D3D12Core.dll sits beside
    the executable.
  • apps/victory/src/main.rs: #[cfg(agility_sdk)] mod agility; and one
    agility::check_runtime()? after the CLI is parsed.

Build and use:

$env:VICTORY_AGILITY_SDK = '1'
cargo build --release --locked -p victory
# copy D3D12Core.dll from Microsoft.Direct3D.D3D12 1.620.2 (x64) to target\release\D3D12\
.\target\release\victory.exe play <your dump>\game_scarlett_master.exe --series-s --dlss off

The same shape is used by other forks in this family, so the runtime behaviour is
not new; only the exports are.

What I measured after the patch

before after
root signature refusals 12 0
host pipeline refusals — 0
crash 0xC0000005 at +0xb5a5f8 after 19 s none
world never reached loads in 6–12 min

Environment: Windows 10 22H2 19045, i5-14600KF, 32 GiB, GTX 1080 Ti 11 GiB
(driver 32.0.15.8278, D3D12 feature level 12.0, no shader model 6.6, no mesh
shaders
).

On that adapter the world runs at 5–6 fps with 658 draws/frame, dropped 950 without a host pipeline (0 being made), GPU 145–178 ms a frame; the 195 merged
geometry stages that README-fxceless.md lists as a gap are among the
untranslated programs. That is a separate matter from this patch, but the
compile-time switch makes the Windows 10 path usable at all, which is what the
memory of this PR is about.

If you would rather not carry the switch, the README's requirement line could at
least say that Windows 10 needs a build with the Agility SDK exports and the
1.620.2 runtime beside the exe — the release notes currently tell Windows 10
users to just double-click it.

**@⁠ghnb90909** on GitHub · 2026-11-27 14:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/50) `ghnb90909:agility-sdk-windows-10` → `main` · +47 −0 · 3 files · 3 commits · closed without merging ## What this fixes The published `v2026.11.26` `victory.exe` cannot render on Windows 10. Its D3D12 runtime rejects the heap-indexed root signature flags, nothing is drawn, and the title crashes about 19 seconds in: ``` WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01). (x12) WARN victory_gpu::pipeline::host: host root signature refused error=参数错误。 (0x80070057) INFO victory_gpu::host: 126.8 fps, 7.9 ms/frame ..., 0 draws/frame VIctory: unhandled exception 0xc0000005 at victory-image-...+0xb5a5f8 (read 0x68: nothing mapped there) ``` `dumpbin /exports victory.exe` shows no `D3D12SDKVersion` / `D3D12SDKPath`, so the application-local Agility SDK is never loaded. Windows 11's in-box runtime accepts those flags; Windows 10's (`d3d12.dll` 10.0.19041.5794 here) does not. ## What the patch does Three files, ~44 lines, no behaviour change unless `VICTORY_AGILITY_SDK=1` is set at build time: - `apps/victory/build.rs` (new): sets `cfg(agility_sdk)` and the two `/EXPORT:...` linker arguments for the `victory` binary. - `apps/victory/src/agility.rs` (new): exports `D3D12SDKVersion = 620` and `D3D12SDKPath = ".\\D3D12\\"`, and checks that `D3D12\D3D12Core.dll` sits beside the executable. - `apps/victory/src/main.rs`: `#[cfg(agility_sdk)] mod agility;` and one `agility::check_runtime()?` after the CLI is parsed. Build and use: ``` $env:VICTORY_AGILITY_SDK = '1' cargo build --release --locked -p victory # copy D3D12Core.dll from Microsoft.Direct3D.D3D12 1.620.2 (x64) to target\release\D3D12\ .\target\release\victory.exe play <your dump>\game_scarlett_master.exe --series-s --dlss off ``` The same shape is used by other forks in this family, so the runtime behaviour is not new; only the exports are. ## What I measured after the patch | | before | after | |---|---|---| | root signature refusals | 12 | **0** | | host pipeline refusals | — | **0** | | crash | `0xC0000005` at `+0xb5a5f8` after 19 s | none | | world | never reached | loads in 6–12 min | Environment: Windows 10 22H2 19045, i5-14600KF, 32 GiB, GTX 1080 Ti 11 GiB (driver 32.0.15.8278, D3D12 feature level 12.0, **no shader model 6.6, no mesh shaders**). On that adapter the world runs at 5–6 fps with `658 draws/frame, dropped 950 without a host pipeline (0 being made)`, GPU 145–178 ms a frame; the 195 merged geometry stages that `README-fxceless.md` lists as a gap are among the untranslated programs. That is a separate matter from this patch, but the compile-time switch makes the Windows 10 path usable at all, which is what the memory of this PR is about. If you would rather not carry the switch, the README's requirement line could at least say that Windows 10 needs a build with the Agility SDK exports and the 1.620.2 runtime beside the exe — the release notes currently tell Windows 10 users to just double-click it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 14:57:09 +00:00
Author
Owner

@⁠HocotateGuy15 on GitHub · 2026-11-27 15:43 UTC · original

Gameplay test on an RTX 3070 8 GB, NVIDIA driver 610.88, and Windows 10 22H2 (19045.7846). I used fork main at d12eb1b with equivalent local Agility exports and Microsoft Agility SDK 1.620.2. I did not build PR #50’s exact head. Series S mode, DLSS off, frame generation off.

Verified that the app-local D3D12Core.dll loaded. The menu reached 30 FPS and 3D gameplay rendered. I saw 14–15 FPS in gameplay and briefly saw 19 FPS. A later check showed 8 FPS, so performance varies by scene. At that check the run was still active, with zero root-signature rejections, device removals, or unhandled exceptions in the log.

An earlier run showed missing faces and ended with a separate title-side access violation. A local experimental crash guard was enabled for the current run and did not trigger, so this test does not verify a fix for that crash. AI-assisted build setup and log analysis.

**@⁠HocotateGuy15** on GitHub · 2026-11-27 15:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/50#issuecomment-7222413531) Gameplay test on an RTX 3070 8 GB, NVIDIA driver 610.88, and Windows 10 22H2 (19045.7846). I used fork `main` at `d12eb1b` with equivalent local Agility exports and Microsoft Agility SDK 1.620.2. I did not build PR #50’s exact head. Series S mode, DLSS off, frame generation off. Verified that the app-local `D3D12Core.dll` loaded. The menu reached 30 FPS and 3D gameplay rendered. I saw 14–15 FPS in gameplay and briefly saw 19 FPS. A later check showed 8 FPS, so performance varies by scene. At that check the run was still active, with zero root-signature rejections, device removals, or unhandled exceptions in the log. An earlier run showed missing faces and ended with a separate title-side access violation. A local experimental crash guard was enabled for the current run and did not trigger, so this test does not verify a fix for that crash. AI-assisted build setup and log analysis.
Author
Owner

@⁠xdominhd on GitHub · 2026-11-27 18:10 UTC · original

Could someone please upload files? I have the same problem but can't progamm,

**@⁠xdominhd** on GitHub · 2026-11-27 18:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/50#issuecomment-7225208472) Could someone please upload files? I have the same problem but can't progamm,
Author
Owner

@⁠vlad441 on GitHub · 2026-11-27 20:36 UTC · original · edited 2026-11-27 23:22 UTC

  • Using cmd.exe: set VICTORY_AGILITY_SDK=1 & cargo build --release --locked -p victory
  • After manual move target\release\D3D12\{D3D12Core.dll,d3d12SDKLayers.dll}
  • Runs from .\target\release\victory.exe play %GTA6_PATH%\game_scarlett_master.exe --series-s --dlss off
    • Windows title changed: Americas | Victory 517 fps 1.9 ms/frame 14 draws/frame

I was able to get the first visible frame.
On Windows 10 21H1 19043.782 | GPU: RTX A2000 | Driver Version: 595.71

  • UPD: After exiting the settings menu and trying to launch the game, it crashed about ~6 minutes into the loading process:
2026-11-27T22:04:02.357595Z  INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 91b10a73e48b2192]
2026-11-27T22:04:02.357640Z  INFO victory_gpu::pipeline: first bind pipeline=0x2b734370830 frame=951154 stage="pixel" size=3676 hash=2567ef6bc3625832
2026-11-27T22:04:02.357685Z  INFO victory_gpu::pipeline: first bind pipeline=0x2b71a1dfec0 frame=951154 stage="pixel" size=8508 hash=b0e293b1b8fa5a77
2026-11-27T22:04:02.357800Z  INFO victory_gpu::pipeline: first bind pipeline=0x2b78ae34000 frame=951154 stage="mesh" size=13852 hash=a6a6702e5c2a8ba9
2026-11-27T22:04:02.357932Z  WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304
2026-11-27T22:04:02.357959Z  INFO victory_gpu::pipeline: first bind pipeline=0x2b5e4738ad0 frame=951154 stage="compute" size=2752 hash=aff43dffcb37574e
2026-11-27T22:04:02.357568Z  INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 24317e785c8688e3]
2026-11-27T22:04:02.358059Z  INFO title: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_9' -- falling back to NewBE
memory allocation of 2026-11-27T22:04:02.358262Z  INFO victory_gpu::pipeline: first bind pipeline=0x2b734373000 frame=951154 stage="mesh" size=5452 hash=cf43bdbfc75c9296
557072 bytes failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2026-11-27T22:04:02.359083Z  WARN victory_gpu::pipeline::host: host pipeline refused error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) shaders=[compute 1f32b2302bce7ce4]
  • UPD: Attempt 2 to run:
2026-11-27T23:12:47.559472Z  WARN victory_gpu::pipeline::host: host mesh pipeline refused error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) shaders=[mesh 093c64546c55554e, pixel 1b76b94a7050f184]
2026-11-27T23:12:47.560741Z  WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=8388608
2026-11-27T23:12:47.561225Z  INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x91ed24ec0 len=2048
2026-11-27T23:12:47.561660Z  WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304
2026-11-27T23:12:47.563277Z  INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x91ed257d0 len=2048
2026-11-27T23:12:47.563878Z  WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304
2026-11-27T23:12:47.565317Z  INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x9920b0800 len=98304
2026-11-27T23:12:47.566094Z  WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304
2026-11-27T23:12:47.567363Z  INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x9920cc800 len=16384
2026-11-27T23:12:47.568385Z  INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x98c687560 len=4
LLVM ERROR: out of memory
Buffer allocation failed
**@⁠vlad441** on GitHub · 2026-11-27 20:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/50#issuecomment-7227661765) · edited 2026-11-27 23:22 UTC * Using `cmd.exe`: `set VICTORY_AGILITY_SDK=1` & `cargo build --release --locked -p victory` * After manual move `target\release\D3D12\{D3D12Core.dll,d3d12SDKLayers.dll}` * Runs from `.\target\release\victory.exe play %GTA6_PATH%\game_scarlett_master.exe --series-s --dlss off` * * Windows title changed: `Americas | Victory 517 fps 1.9 ms/frame 14 draws/frame` I was able to get the first visible frame. On Windows 10 21H1 19043.782 | GPU: RTX A2000 | Driver Version: 595.71 * UPD: After exiting the settings menu and trying to launch the game, it crashed about ~6 minutes into the loading process: ```batch 2026-11-27T22:04:02.357595Z INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 91b10a73e48b2192] 2026-11-27T22:04:02.357640Z INFO victory_gpu::pipeline: first bind pipeline=0x2b734370830 frame=951154 stage="pixel" size=3676 hash=2567ef6bc3625832 2026-11-27T22:04:02.357685Z INFO victory_gpu::pipeline: first bind pipeline=0x2b71a1dfec0 frame=951154 stage="pixel" size=8508 hash=b0e293b1b8fa5a77 2026-11-27T22:04:02.357800Z INFO victory_gpu::pipeline: first bind pipeline=0x2b78ae34000 frame=951154 stage="mesh" size=13852 hash=a6a6702e5c2a8ba9 2026-11-27T22:04:02.357932Z WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304 2026-11-27T22:04:02.357959Z INFO victory_gpu::pipeline: first bind pipeline=0x2b5e4738ad0 frame=951154 stage="compute" size=2752 hash=aff43dffcb37574e 2026-11-27T22:04:02.357568Z INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 24317e785c8688e3] 2026-11-27T22:04:02.358059Z INFO title: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_9' -- falling back to NewBE memory allocation of 2026-11-27T22:04:02.358262Z INFO victory_gpu::pipeline: first bind pipeline=0x2b734373000 frame=951154 stage="mesh" size=5452 hash=cf43bdbfc75c9296 557072 bytes failed note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 2026-11-27T22:04:02.359083Z WARN victory_gpu::pipeline::host: host pipeline refused error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) shaders=[compute 1f32b2302bce7ce4] ``` * UPD: Attempt 2 to run: ``` 2026-11-27T23:12:47.559472Z WARN victory_gpu::pipeline::host: host mesh pipeline refused error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) shaders=[mesh 093c64546c55554e, pixel 1b76b94a7050f184] 2026-11-27T23:12:47.560741Z WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=8388608 2026-11-27T23:12:47.561225Z INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x91ed24ec0 len=2048 2026-11-27T23:12:47.561660Z WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304 2026-11-27T23:12:47.563277Z INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x91ed257d0 len=2048 2026-11-27T23:12:47.563878Z WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304 2026-11-27T23:12:47.565317Z INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x9920b0800 len=98304 2026-11-27T23:12:47.566094Z WARN victory_gpu::host: no shared buffer error=Недостаточно ресурсов памяти для завершения операции. (0x8007000E) size=4194304 2026-11-27T23:12:47.567363Z INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x9920cc800 len=16384 2026-11-27T23:12:47.568385Z INFO victory_gpu::shadow: a buffer's host copy is in the card's memory start=0x98c687560 len=4 LLVM ERROR: out of memory Buffer allocation failed ```
github-bot closed this pull request 2026-11-28 18:29:21 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 18:27 UTC · original

Thanks for this. I'm closing it without merging: main handles this a different way now. victory.exe asks Windows for the version of the D3D12 folder beside it (or Windows' own), and victory play offers Microsoft's Agility SDK where it's needed, so a build-time export isn't used. It also conflicts with main.

**@⁠trustno1-coder** on GitHub · 2026-11-28 18:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/50#issuecomment-7243800315) Thanks for this. I'm closing it without merging: main handles this a different way now. victory.exe asks Windows for the version of the D3D12 folder beside it (or Windows' own), and `victory play` offers Microsoft's Agility SDK where it's needed, so a build-time export isn't used. It also conflicts with main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!50
No description provided.