XMem: a page mapping that already shows the same pages is not made again #1598
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!1598
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1598"
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?
@mizzied on GitHub · 2026-11-28 22:11 UTC · original
mizzied:up/xmem-same-pages→main· +123 −5 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCWhat it does.
XMemMapPhysicalPages(and with it the scatter form) and the page-mapping copy (map_alias) now leave the views alone when every page asked for is already shown at its address. The bytes are the same and the views' guards stay valid, so mapping them again only cost time. The counts go to the log (the first, then every 4,096th).VICTORY_REMAP_SAME=0maps them again as before.How it was tested. RTX 5070, Windows 11.
cargo test --workspacepasses apart fromrepository_passes_policy, which already fails onmain:lower.rsis over the 640 KiB file-size limit there (#1493 raises it). Clippy reports only the 16 findings already onmain, none on lines this PR changes.github-bot referenced this pull request2026-11-29 23:38:22 +00:00