port: keep VICTORY_PORT_CONSTANTS off by default across GPU generations #2923
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2923"
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 Maverick0351a on 2026-11-29T18:51:02Z.
Fixes #1223
What it changes
esolve_port_mode) to default to alse when VICTORY_PORT_CONSTANTS is unset, matching both its module documentation (VICTORY_PORT_CONSTANTS, off by default) and ictory_hle::modules::xmem::port_on().
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JSa25 on 2026-11-29T21:10:35Z.
RTX 5090 A/B,
VICTORY_PORT_CONSTANTS(supports defaulting it off)RTX 5090 32 GB (linked at PCIe 5.0 x8), Ryzen 9 9950X3D, 64 GB RAM. Series X profile, native 1440p, DLSS Quality, frame generation off,
VICTORY_WC_BAR=1,VICTORY_WINDOWS_BAR_MB=4096, release build atf72cec77. Same area of the open world, two runs a few minutes apart.Unset: the GPU half was on by default (non-Ampere) but xmem's
arrangewas off, so the 32-bit heap was refused asScatteredand copied as before. That mismatch is what this PR fixes.=1(185 MB in place)With the port on, the CPU saves ~7 ms, but GPU work nearly doubles from reading the heap in system memory. Even on Blackwell it's a net loss of ~40% fps here, so off by default looks right. One caveat: this card is at x8. At x16, the GPU-side cost should be lower.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by iwanttobelievethem on 2026-11-30T07:28:33Z.
Test report in support of this, from a second 5090, this one on a x16 link (PCIe 5.0 capable board).
Ryzen 9 9950X3D, RTX 5090, driver 621.24, Windows 11 (26300). Main at
41adb551, Series S, DLSS performance, frame generation off, 640x360 window. Fixed scene: prologue interior from a save, walking in a circle by a key script; averages of the 5-second fps lines once steady (about 4,600 draws/frame). One run each.VICTORY_PORT_CONSTANTSunset=1With
=1the port engaged (1 regions ... in place (185 MB), 8,940 fills a frame read out of it) and did what it promises on the CPU: refreshes 9.1 -> 4.5 ms, copies and fills 3.2 -> 1.4 ms. But the card's time for the same lists went up about seven times, even at 360p, so the frame is four times longer. So x16 does not rescue it here.Unset, the GPU half tries the heap, xmem has not arranged the pages, and every run logs
not one native-import-eligible stretch of a section: Scattered, as described above; this PR makes the two halves agree.(Both runs also had a few local opt-in switches on, the same in both. No crash in either; an automatic check of captures flagged nothing.)
AI-assisted (Claude Code); measured on my machine; no game data in this comment.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.