Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11:
- Exporting Agility SDK symbols from
victory.exe(apps/victory/build.rs+main.rs) builds cleanly and passes allvictorytests. cargo test -p victory: 12/12 passed.cargo clippy -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 184 files ok.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Fifth Agility SDK PR — this one the cleanest mechanism: build.rs /EXPORT:D3D12SDKVersion,DATA + loading from .\D3D12. If the cluster converges, this export mechanism is the right core. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
|
The mechanism is the documented one (exe export table + app-local
|
…non-MSVC targets) Review of Marvisak#2460: GNU ld takes no /EXPORT:, so on x86_64-pc-windows-gnu the exports were silently left out. A Windows build for a non-MSVC target now warns that Windows' own D3D12 runtime will be used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018sSQTeDQ6Kc6DEkgPbAww8
|
Thanks. You're right about GNU: On #2429: agreed that the |
|
Automated triage for the maintainers. Needs the maintainer's decision. This adds For the maintainer to weigh: the SDK version is fixed at 620 and must match the DLL users copy in, and #2429 ( On your reply: thanks, the new README section answers the setup and version points. What remains is the maintainer's call on the build script, the external DLL, and this versus #2429. Generated by Claude Code |
victory.exe exports D3D12SDKVersion (620) and D3D12SDKPath (".\D3D12\"),
so Windows loads D3D12Core.dll from the Microsoft.Direct3D.D3D12 1.620.x
NuGet package (build\native\bin\x64\, with d3d12SDKLayers.dll) placed in
target\<profile>\D3D12\, instead of the System32 runtime. Rust does not
export statics from an executable, so build.rs adds the /EXPORT linker
arguments (MSVC targets). Without the folder Windows keeps its own
runtime.
On a Windows 10 machine (NVIDIA, wave32) the System32 runtime refused
root signatures with the directly indexed heap flags (0xC00) our
translated shaders need, so nothing drew; with the Agility SDK the menus
run at 30 fps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018sSQTeDQ6Kc6DEkgPbAww8
(cherry picked from commit 2959665e6d87306200277ecdda222cc71b35280d)
…non-MSVC targets) Review of Marvisak#2460: GNU ld takes no /EXPORT:, so on x86_64-pc-windows-gnu the exports were silently left out. A Windows build for a non-MSVC target now warns that Windows' own D3D12 runtime will be used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018sSQTeDQ6Kc6DEkgPbAww8
Review of Marvisak#2460: the setup was not documented. Where the DLLs come from, where they go, that the version must match D3D12SDKVersion (620), and that without the folder nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b4f5a8d to
ed3a251
Compare
|
Rebased onto current
|
Measured in the world on an RTX 2080 (1,000,000-view cap), `main` + Marvisak#2460 Marvisak#2461 Marvisak#2464 and local work, 10 minutes each from a save that loads into the world: with 65,533 dynamic slots the host ran out of them and dropped draws (512 and more, and root views); with this PR's layout before (721,469 title slots, 262,144 dynamic) none were dropped, and no draw read a title slot past the kept ones (523,715 left out, all for_draw=false). Back to that layout until a scene needs more title slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018sSQTfPXZpSkjMMNa7RB5G
|
Test report on Windows 10 Pro 19045, AMD RX 6600 (Adrenalin 32.0.21045), with the Agility SDK 1.620.2 from NuGet (
So the folder works as intended. But without it, the exe can no longer make any device. That contradicts "Without the folder, Windows keeps its own runtime" in the description and the code comment. It is the same loader behaviour found for the test binaries in #2878 (0x887E0003 on Windows 11), which #2878 fixed by exporting only when the runtime is staged. As it stands, this PR would break For comparison, #2429 (runtime chosen at first use through AI-assisted: yes (Claude Code) |
|
@lerapeurdu62280-debug, thank you, you're right. The #2429 picks the runtime at first use through AI-assisted (Claude Code). No game data. |
On Windows 10 the D3D12 runtime in System32 refuses root signatures with the directly indexed heap flags (
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED, 0xC00) that translated shaders need. On a Windows 10 22H2 machine (build 19045) with an NVIDIA card, every root signature was refused ("Unsupported bit-flag set (root signature flags c01)", 196 times), nothing drew, and the title crashed about 18 s in.victory.exenow exportsD3D12SDKVersion(620) andD3D12SDKPath(.\D3D12\). Windows then loadsD3D12Core.dllfromD3D12\next to the exe, instead of the System32 runtime. Rust does not export statics from an executable, soapps/victory/build.rsadds the/EXPORTlinker arguments (MSVC targets only).Without the folder, Windows keeps its own runtime, so machines where
mainalready runs are unaffected.Setup: take
build\native\bin\x64\from the Microsoft.Direct3D.D3D12 NuGet package, version 1.620.x (tested with 1.620.2). CopyD3D12Core.dll, plusd3d12SDKLayers.dllfor the debug layer, intotarget\<profile>\D3D12\. I haven't added the DLLs or a download step to the repository; tell me if you'd like either, or a README section.Checked on that machine: root signatures are taken, the title draws, and the D3D12 debug layer works through
d3d12SDKLayers.dll.🤖 Generated with Claude Code. The change was written by Claude Code (Claude Opus 5.5) in my session; the commit carries a
Co-Authored-By: Claudeline.