d3d12: make Agility SDK 1.621.0 an opt-in (D3D12-AGILITY-621) #3330
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
No due date set.
Reference
leonida/mandy!3330
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3330"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as D3D12-AGILITY-621.
What and why
Support Microsoft DirectX Agility SDK 1.621.0 through
d3d12\Get-D3D12.cmd -Version 1.621.0. The installer now chooses the package and DLL hashes together for the selected version, checks Microsoft's Authenticode signature, and stages each invocation's files separately. The default remains 1.614.1 while the reported frame-time improvement awaits an in-game comparison. Microsoft NuGet packageTested
mainatb053a1813, the new 1.621.0 cache test tried to download despite the matching DLL hash. Both installer tests pass with the patch.git diff --check.GPU tested was the default adapter on Windows 11 25H2 (26200.9974). The system has a Radeon RX 6800 and integrated Radeon graphics on AMD driver 32.0.21030.2001. The probe did not record which adapter Windows selected.
AI-assisted by GPT-6.2 Sol with two independent read-only GPT-6.2 Sol reviews. The second review confirmed the staging fix. Simultaneous installs can leave either package's license copy beside the final DLL. The two license copies differ only in list numbering.
Checklist
mainwhen prepared.I checked
57029effonb053a181. The two official NuGet archives match the pinned package SHA-256 values, and their extracted x64 DLLs match both pinned DLL hashes.The installer still treats some paths as PowerShell patterns. In PowerShell 7, with
-To ".../build [SDK]/D3D12", both versions skipped a matching cached DLL and tried the download. A fresh install using the official archive then failed at the package hash step. Without-To, a checkout whose name contains[SDK]failed earlier atResolve-Path. The 1.614.1-Tobehavior also reproduced on current main.A local change to use
-LiteralPathforResolve-Path,Test-Path,Get-FileHash,Get-AuthenticodeSignature, andGet-Itempassed the cache and fresh-install cases, including the default destination in a bracketed checkout. I used the actual package and DLL bytes with the downloader and signature response stubbed. In the simulated signature rejection, the installed DLL and license remained intact and the temporary files were removed. The Authenticode trust check itself was outside this PowerShell 7 test.AI-assisted (Codex).
RUN — RTX 3090 (24 GiB), Agility SDK compatibility, one 300 s gate per arm. 1.614.1 staged: PASS (inbox runtime actually loaded); 1.621.0 staged: FAIL (
present_gap, app-local runtime actually loaded).57029effa787b07ba00529c636c2f300d838d20balready contains mainb053a1813c8980c4357d51bbe6e69a35dc8c476c(local merge no-op). The only changes are installer, wrapper, README and installer test, so both arms used the same previously verified main renderer executable, SHA-2568ddb36f22fd4c0883f3d633cb9317f40c26d5b24c73302115939554a8895d576and identicaldiagnostics,dlss,mimallocstamp, verified before and after each arm.The 614 arm did not load the 1.614.1 app-local DLL: its observed System32 hash matched the inbox file. The 621 arm's observed module hash matched the explicitly installed 1.621.0 DLL and the runtime reported requesting SDK 1.621; the default 614 selection path is silent in code. Both reached the target stop, saved the cache, suspended the title and exited cleanly without killing; zero crashes, device-loss indicators or ERROR lines. Native placement occurred once each, but only 8/32 and 16/26 location samples were within 1 m, respectively; later placement was overwritten in both. Neither held the intended busy location for the full run. The 621 gate failed the documented >10 s present-gap limit, despite clean termination.
This verifies the opt-in actually selects the requested newer SDK on this host, but the single 621 gate did not pass. Ongoing pipeline activity and different workloads/placement make this an observation, not evidence that the SDK itself caused the gap or any speedup/slowdown. This is not a balanced ABBA measurement; a separately warmed, matched repeat would be needed to establish reproducibility or frame-time attribution.
AI-assisted: GPT-6.2 Sol, independently recomputed raw timings, module metadata and counts by a separate GPT-6.2 Sol parent agent.
RUN (in game), Agility SDK 1.621.0 vs Windows' own D3D12: no measurable fps gain on this card (MEASURED n=2, PROVISIONAL).
b053a1813…acb0657e2lineage, test head4412cca0a= origin/main + this PR (clean merge),leonida.exebuilt withbuild-nvidia.ps1(diag).-NoDlss -NoFrameGen -PrecompileUsed,LEONIDA_WINDOWS_BAR_MB=0,LEONIDA_TEXTURE_BUDGET_MB=1024, scripted walk, 300 s in the world, stats over the last 240 s. One warm-up run (not counted), then A B B A in one session, same exe and same data template.target\diag\D3D12\folder. B =Get-D3D12.cmd -Version 1.621.0(hash + signature checks passed).D3D12Core.dll, 10.0.26100.10068;target\diag\D3D12\D3D12Core.dll, 1.621.0.0.20261130.2.Reading:
Caveats:
AI-assisted (oreofr-agent, Claude Opus 5.5).
Updated with main: merged main
aaa651d19into the branch (head8282e49a8→eb008afe7, 166 commits behind before, no conflicts).After the merge (Windows 11):
tests/test_get_d3d12.pyOK,test_docs_linksOK,test_text_write_line_endingsOK.Earlier in-game A/B on an RTX 4070 Laptop (Series S, no DLSS/FG, ABBA 300 s): 1.621.0 vs Windows' own runtime +0.31 fps (+1.2 %), within noise, DLL verified loaded, no visual change. A test with DLSS on a desktop card is being asked for (image jumping with DLSS).
AI-assisted (Claude Code).
Local CI (run_ci_local.ps1): FAIL
eb008afe7merged into main0043b8d33Python tests (standard library): last lines
Rust tests: last lines
Run with
scripts/run_ci_local.ps1while the Forgejo has no runners; full logs stay on the machine that ran it.AI-assisted (oreofr-agent)
7a9f46b57into #3330 (tree tested by local CI) 81cee1b9f3Merged by OreoFR (agent). MoonEyes asked for it after his judge accepted it, as part of group A. The 1.621.0 hashes were checked independently by enlighted on an RTX 3090:
packageHash;560FB6B1…0141matches$package;D3D12Core.dllSHA-256156098A8…48DFmatches$core.Local CI (normal mode, whole workspace) on head
eb008afe7merged into main7a9f46b57: PASS.make_game.py --help.The forge refused the merge while the head was behind main.
main(7a9f46b57) was merged into the head as81cee1b9f, with the same tree the CI tested. Merged as96416aa3c.