launcher: use a local D3D12Core.dll of another Agility SDK version; VICTORY_AGILITY=0 #185
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/ReTerryDavis--ReVIctory!185
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-184"
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?
@SovietBearz0r on GitHub · 2026-12-05 22:28 UTC · original
SovietBearz0r:larp-agility→main· +212 −46 · 3 files · 1 commits · openSummary
Our D3D12 Agility SDK opt-in only ever asked Windows for the bundled 1.621 runtime. If a
D3D12\D3D12Core.dllof another version sits besidevictory.exe(a stale copy, or one from another tool), we fell back to the in-box runtime - and on Windows 10 that runtime refuses every translated pipeline (SM 6.6 directly indexed descriptor heaps), so the game fails with nothing pointing at the local file.1.600and up) is now asked for as its own version, so Windows loads it. The log names the version asked for (D3D12: local D3D12\D3D12Core.dll is Agility SDK 1.614 (this build ships 1.621); asking Windows for that version...).VICTORY_AGILITY=0(oroff/system) keeps Windows' own D3D12 runtime even when a local Agility SDK runtime is there - for bisecting device-removal (0x887A0005) problems that might be the runtime's.Ported from gamingwithhomie/larp PR #140 ("Agility SDK: delay-load d3d12.dll, writable D3D12SDKVersion, fall back to the OS runtime"), GPL-3.0-or-later, adapted to our exporter and launcher: our
D3D12SDKVersionis already an atomic andbuild.rsalready delay-loadsd3d12.dll, and the chosen runtime is logged throughtracingafterlogging::initinstead ofeprintln.Verification
cargo test --locked -p victory --bin victory agility: 6 passed (three new tests: another version is asked for as its own, missing/unusable keeps the OS runtime, the switch accepts only off values; existing launcher/agility tests unchanged).cargo clippy --locked -p victory --all-targets -- -D warnings: clean.cargo xtask policy: 442 files ok.D3D12Core.dlla machine happens to have); the normal-run log line now says which runtime was asked for, which makes it observable.Context
One of the items from the LARP borrow review; it is small, opt-in/observable, and independent from the audio port (#184).
@SovietBearz0r on GitHub · 2026-12-05 22:55 UTC · original
In-game smoke on this box (RX 9070 XT, diag build): PASS for the default path, INCONCLUSIVE for the multi-version path.
D3D12: Windows' own runtime (no local D3D12\D3D12Core.dll; the launcher offers to install Agility SDK 1.621)— the "no local D3D12Core" branch works as intended; no ERROR/device-removed, exit 0, normal pacing (47.6/43.4/41.5 fps).OtherVersion/Unusable/Enabledbranches cannot fire in this tree because noD3D12\D3D12Core.dllsits next to the testvictory.exe. To verify the actual multi-version path, drop a 1.600+D3D12Core.dllnext to the exe (or run the launcher's Agility install) and re-run; the new strings (is Agility SDK 1.…,asking Windows for that version) are in the binary. Log:data\logs\larp-agility.log.@SovietBearz0r on GitHub · 2026-12-05 23:44 UTC · original
Multi-version path now tested too — PASS. Downloaded
Microsoft.Direct3D.D3D121.615.1 from NuGet, extracted the x64D3D12Core.dll(file version1.615.1.0.20250213.1), placed it astarget\diag\D3D12\D3D12Core.dllnext to the testvictory.exe, and ran the bench once: 89.5 s, exit 0, 3 spots, 0 ERROR, 0 device-removed.Log line (L1):
D3D12: local D3D12\D3D12Core.dll is Agility SDK 1.615 (this build ships 1.621); asking Windows for that version … version=615 shipped=621, followed byhost D3D12 device readyand normal fps (47.6/41.3/39.8). A rejected version would have failed with0x887E0003.The
D3D12folder was removed afterwards (confirmed absent). So both the default "no local DLL" path and the "local DLL of another version" path work; theMismatch/Unusablebranches are unit-tested but not exercised in-game (would need a corrupt/unsupported DLL). Evidence:data\ingame-verify\larp\agility-local-other\RESULT.md,package-info.json,data\logs\larp-agility-other.log.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.