PORT_CONSTANTS on Windows 11 23H2: ID3D12Device3 fallback, −18 ms CPU per frame #3938
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ntrglcrn on 2026-11-30T12:26:57Z.
Setup: RTX 3080 10 GB, i5-13400F (6P+4E), 32 GB, Windows 11 Pro 23H2 (build 22631), driver 621.24. Series X profile, DLSS Performance, no frame generation.
Problem: with
PORT_CONSTANTS=1the port never opens on 23H2. The heap is opened throughID3D12Device13, and that interface only exists on Windows 11 24H2 and later, so on older builds the game silently falls back to copying.What I changed locally: if
ID3D12Device13is not available, the game now falls back toID3D12Device3::OpenExistingHeapFromAddress. That older call needs the address to be the start of an allocation. The port opens the memory through its own mapping, and that mapping always starts at the beginning of the allocated block, so the requirement is met. Nothing else changed, and no shader code was touched.Test: I added a test on WARP that takes exactly the path without
Device13. In it, the GPU reads the game's bytes, the game sees the GPU's writes, and the game can unmap its views. The test passes.Results on my PC (4 sessions on v2026.11.29.01 + this change):
The same change also works on v2026.11.29.05 (I rebuilt it from source, 5/5 port tests pass). There the port opened again (185 MB) and the game starts with no crashes.
Note on .05:
PORT_CONSTANTSis on by default there but turned off on RTX 30 cards. On my RTX 3080 I turned it on explicitly and it has run without problems so far. If there is a known problem with it on RTX 30, what should I look for?Related: #1474, #2415. I can open a PR with the change and the test if that helps.
Checked with AI assistance (Claude Code). The numbers come from my PC's play logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T12:27:06Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T12:30:56Z.
@ntrglcrn, the Ampere default was changed in
e4860ebafter the paired RTX 3090 measurements in #1223. Enabling the port lowered CPU preparation from 28.4 to 19.3 ms, while waiting for the card rose from 2.4 to 27.7 ms and median frame time rose from 40.8 to 54.1 ms. The reported pictures matched in that comparison.I reran the mode-selection unit test at
41adb551. The default is off on recognized Ampere adapters, and an explicitVICTORY_PORT_CONSTANTS=1wins.Please open the fallback PR with your WARP test. The older API covers the whole allocation, so the test of the port's owned mapping is useful evidence for that path. A paired capture on your RTX 3080 with the same route and settings could also show whether the CPU saving there comes with more GPU wait. Keep the compatibility change and the Ampere default decision independently reviewable. Microsoft API documentation
AI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ntrglcrn on 2026-11-30T12:36:35Z.
No crash here, so there is no crash log. The game runs normally, and the issue is about the port not opening. GPU: RTX 3080 10 GB, driver 621.24. Windows 11 Pro 23H2 (build 22631).
The full play logs are a few MB each and contain local paths, so here are the relevant lines (Series X,
VICTORY_PORT_CONSTANTS=1).Before, stock v2026.11.29.01 (
victory-nvidia-play-20261129-210256-2228.log):(0x80004002 is E_NOINTERFACE: no
ID3D12Device13on 23H2.)After, v2026.11.29.05 with the fallback (
victory-nvidia-play-20261130-062115-9540.log):