Repository navigation
DirectStorage: report page-destination writes where the pages are mapped (missing cell walls) - #571
arminkhaleghirod wants to merge 1 commit into
Conversation
|
AI-assisted (Claude Code). Counts and observations only; no game data. A data point from a 32-lane card: RTX 5080 16 GB, Windows 11, diag build, Series X profile, Cell walls, by launch
So the same picture as on the 4080 and 4090: sky where the walls should be in most launches before, walls in every launch that reached the room with this. Two things I saw that I cannot tie to this PR either way
Frame time is unchanged (3.6-3.8 fps in the room). |
|
An independent port of c75fdba's page-write reporting (Marvisak/VIctory) looks the views up after the write and by slice, not by page number. That covers a view mapped while the pages are being filled, a page number freed meanwhile, and a write that fails half way. The first two are tested. I have not compared every detail with this PR. Synthetic tests: victory-hle 97, victory-gpu 113 pass on an RTX 5080, with the switch on and off. Limit: a title write through one of two views of a page is seen at that view only. Actual GTA VI gameplay has not been tested. AI-assisted (Claude Code, Claude Opus 5.5). No game data. |
|
AI-assisted (Claude Code). Counts only. A follow-up that may matter for where else these writes go unseen: with the copy-back settings from before Same card and build as above (RTX 5080,
I did not separate the five switches, so I cannot say which one it is. It reads to me as a second path by which the host copy keeps old bytes, one that the relay thread's copy-back happens to cover. With the defaults the PR does what it says here. |
|
Independent same-binary check on exact Two already-published indexed SRVs and the decoy warmed at |
…DirectStorage: report page-destination writes where the pages are mapped (missing cell walls) Upstream pull request 571, applied unchanged on c96b4f2 for this integration branch. All credit to its author. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I split out the card-buffer budget from the five copy-back settings above on an RTX 5080 / GE-Proton11-6, using a ZTRX-derived build with mapped-page write reporting. One run at each cap, same executable, shader-cache seed and menu inputs. The minimum buffer size stayed at 16 MiB, with card windows disabled.
The individual placement messages recorded the same ten buffer lengths in the same order. Both runs ended at the same title breakpoint with over 6 GiB of VRAM still free at the last active sample. Raising this cap alone did not change buffer placement on these runs. Neither run reached the cell, so this does not isolate what restored the walls on Windows. I then held the cap at 1024 MiB and changed only the minimum eligible buffer size from 16 to 1 MiB. Successful placements went from 10 to 100. At the Written By credit, CPU comparisons of shader-written buffer copies fell from 447.9 to 26.6 MiB/frame. At Character Art they fell from 339.7 to 26.9 MiB/frame. These counters measure bytes compared on the CPU. Page-query time increased at both credits, from 1107 to 1420 ms/frame and from 911 to 1098 ms/frame respectively. The 1 MiB run stopped during the opening credits. One run per setting, with the same credit visible but potentially different camera shots. We have no in-world FPS measurement for this comparison. AI-assisted with OpenAI Codex (gpt-6.2-astra). |
Fixes the missing cell walls, ceiling and floor from #62, and black blocks on textures that stay for the whole run.
DirectStorage requests with
PAGE_DESTINATIONare written through our own view of the physical pages (write_physical/ the page window). Unlike plain-address requests, they never calledkernel_will_write. So the title's own addresses for those pages never saw the write: no guard fault, no write-watch entry, no remap of index-picked textures. When the title maps the pages before the stream lands, the host copy keeps its old bytes for the rest of the run.xmemkeeps an index from each section page to the title addresses it's mapped at (updated inmap/unmap).shown_atlooks them up.dstoragereports it at every one of those addresses, for both the buffered and the in-place window path.VICTORY_DSTORAGE_SHOWN=0turns it off.Credit: @Yorivel found this cause on #62 (branch
fix/dstorage-page-destinations-notify, cell drawn 3 of 3 on an RTX 4090). Upstream VIctory fixed the same thing inc75fdba, insidexmem::write_physical. Taking that instead is fine too.Tested on an RTX 4080 (Series X): before, about 3 runs in 4 had sky where the cell walls should be, plus persistent black blocks on clothing. With this the walls are drawn.
victory-hlexmem/dstorage tests pass (26, one new), and clippy adds nothing new.