Repository navigation
PE loader: render_resolution below a mode rewrites every larger mode - #1
adriadam10 wants to merge 1 commit into
Conversation
The title takes the largest mode in its table: with only the 3840x2160 entry rewritten to 854x480, it picked 2560x1440 instead. Every mode larger than the render size on either side becomes it too. Co-Authored-By: Claude <noreply@anthropic.com>
|
Independent CPU-only 1280x720 verification of Goal: verify the existing fix rather than propose a competing low-VRAM/title-specific patch. Host: Linux x86_64, Rust 1.96.0; title: retail Xbox 1.0.2.1. No game or GPU workload in this check. Method: fetched Observed at 1280x720:
Not verified: full-crate/loader integration, actual target allocation or presentation at 720p, UI layout, VRAM reduction, performance, or gameplay. No title bytes changed on disk. Our recent desktop-presented Wine trial caused a host GPU hang; therefore this evidence is deliberately offline, not a claim of a safe runtime configuration. AI assistance: OpenAI coding assistant authored the verification harness and report; results above came from commands executed on this machine. Additional bounded runtime check (Linux/Wine, RTX 4060 Laptop 8 GB)Local integration of the resolution changes plus this follow-up; not the exact full PR stack. The only monitor adaptation is a primary-monitor query in place of xcl-dev#734's selected-monitor helper; requested
This establishes that the in-memory mode fix reaches 720p source presentation on this Wine integration. It does not establish correct nonblack rendering, UI layout, 30fps gameplay, long-run stability, or memory savings. |
A fix for xcl-dev#735 at render sizes below 3840x2160, on top of
0c43a53; tested merged ontomain568e7db.Tested
XCL_RENDER_RES=854x480, the retail title, 120 s smoke runProblem
All three patches are applied (
arena check … no longer breaks,5 loads,largest display mode … is now 854x480), but the title then allocates its display targets at 2560x1440: it takes the largest mode in the table, and with only the last entry rewritten, 2560x1440 is now the largest. The same happens for any size below 2560x1440 (below 1920x1080, 1664x936, …).Fix (one commit,
2dfece0; the same change as6dc0d6ain adriadam10/xcl, where it was tested):patchalso rewrites every mode larger than the render size on either side; sizes above 3840x2160 ("screen") change only the last entry as before. Unit testpatch_below_a_mode_rewrites_every_larger_modeadded;cargo test --release -p xcl --lib widescreenon that commit: 5 passed, 0 failed, 0 ignored. The run below was made before the commit, on the same file uncommitted (hence "uncommitted changes" in its block).With it, the display targets are 854x480 and the first frame is 854x480:
Peak commit falls from 15.0 GB (native) to 12.1 GB, and the loading screen runs at 16.8 fps instead of 6.8 — useful for testing on small GPUs.
Not tested: menus and UI layout at 854x480 (only the loading screen), sizes below 854x480, AMD.
AI use