app,hle: fix Series X 1440p UI scaling and harden XMem failed remaps #78
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!78
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/78/head"
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?
@Androtim on GitHub · 2026-11-29 05:10 UTC · original
Androtim:feat/iter80-1440p-ui-scaling-and-xmem-harden→main· +244 −66 · 2 files · 1 commits · merged 2026-11-29 14:31 UTCSummary
Fix two correctness issues for Series X 1440p rendering and HLE virtual/physical memory remapping:
Rig Specs Tested On
Run Settings & Profile
8d89ba6\ -> $sha80)Measurements & Verification
@Androtim on GitHub · 2026-11-29 06:03 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingSummary
apps/victory/src/native_1440p.rs: Replaces the 1440p scanout-only pool sizing andUI_VIEWPORT_LOADpatch with enabling the title's legacy UI flag (LEGACY_UI_PRESETat0x01e0_fb69->mov al, 1; nop*4,LEGACY_UI_FLAG_STOREat0x0261_92f9->mov byte ptr [rsi+0x13c], 1) and sizingUI_POOL(0x0247_ad4a) for two 3840x2160 legacy UI surfaces plus two 2560x1440 targets (0x5E00000/ 94 MiB). Stock bytes are verified via BLAKE3 hashes before patching, and no retail bytes are committed.crates/victory-hle/src/modules/xmem.rs:map_pagesnow resolves and validates allpage_table()slices before callingunmap, leaving the destination intact on unknown page numbers.alias_asnow collects all source slices viaphysical.slice_atbefore callingunmap, preventing both partial-unmap holes on missing source pages and self-clobbering on overlapping ranges (to < from + len && from < to + len).map_aliasesadds amissing_sourcepre-check across all pages in the batch (accounting for earlier entries in the same call) and skipsSome(None)entries in the batch loop rather than unmapping destinations if a source disappears between groups.a_remap_that_cannot_be_served_changes_nothing,a_source_counts_as_the_entries_before_it_leave_it, andbatched_copies_that_cannot_be_served_change_nothing, and updates the existingalias_astest.Notes
title_memory_remapping->physical->page_table), and CI are all clean.map_aliases, whenside_by_side() <= 1, the fallbackranges.iter().all(|&(to, from, len)| alias(to, from, len))validates each range individually rather than pre-checking all ranges together asmissing_sourcedoes on the multi-threaded path.patches_the_retail_image_for_1440pis skipped in CI withoutVICTORY_DISPLAY_PROFILE_TEST_IMAGEand thenative_1440pchanges alter Series X UI render-target pool sizing (94 MiB) and UI scaling patches, a local real-GPU smoke test with the retail image is warranted before merging.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-29 06:58 UTC · original
Completed local retail-image patch test and live 75s Series X 1440p GPU verification on
e9a0e99(pr80-sx-native-1440p):patches_the_retail_image_for_1440p(run withVICTORY_DISPLAY_PROFILE_TEST_IMAGEset): 1 passed; 0 failed in0.16s.14windows, max13712draws), median FPS9.7 fps(103.3 ms)6152 MB/6923 MBbudget (over=0 MB)0/0| Shader translation:untranslated=1frame-9264.png,frame-9384.png, median luma104.08, edge energy7.8,0.0%near-black/magenta): 1440p HUD/minimap proportions and world rendering are clean.@Androtim on GitHub · 2026-11-29 14:31 UTC · original
Automated RTX 4060 Ti 8 GB Wave 3 A/B hardware verification passed (
playtest/wave3vsorigin/mainc7ed150— 5/5 A/B gates PASS):cargo test(RTX 4060 Ti):victory-gpu542 passed, 0 failed (36 ignored);victory-shader323 passed, 0 Wave 3 regressions (the 3 PSV0 validation failures inemit::rect::testsandemit::barycentric_testsalso fail identically onorigin/mainc7ed150).scripts/verify-world.ps1, DLSS Quality + golden autosave):10.25 fpsvs10.7 fpsbaseline (min FPS improved6.9vs4.2, preparing45.35 msvs50.3 ms)5948 MBvs6073 MB(-125 MB,0 MBover budget)final_waiting=5487vs7350(-1863);no room for new ones38vs43mapped_rate=20.95 ms/svs37.22 ms/s(-44%)frame-10645.png,frame-10669.png), luma82.77vs23.2, edge energy2.27vs1.81, magenta0.0%.