port: keep VICTORY_PORT_CONSTANTS off by default across GPU generations #2923
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2923
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Maverick0351a on GitHub · 2026-11-29 18:51 UTC · original
Maverick0351a:fix/port-constants-default-off→main· +15 −25 · 1 files · 1 commits · openFixes #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().
@JSa25 on GitHub · 2026-11-29 21:10 UTC · original
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.
@iwanttobelievethem on GitHub · 2026-11-30 07:28 UTC · original
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.