D3D12.X: title textures keep per-page hashes and hash only written pages #2385
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-25T17:43:22Z.
Part of #2390.
When any page of a kept-in-step title texture comes back from the write watch,
upload_allreads and hashes the whole texture to see if it changed (content_hash(&title_bytes(va, size)),crates/xcl/src/hle/d3d12x/title_textures.rs:1099-1107onmain3f4495a). A 16 MiB texture with one written 4 KiB page is hashed in full. Most of the time the result is "unchanged". In my title's menus (RTX 2070 SUPER,main3f4495a), the "uploads left out" count reached 1,024 at 39 s, 2,048 at 43 s and 4,096 at 52 s. Each of those was a full-texture hash that changed nothing.Proposal: keep a hash per page for each texture (or per 64 KiB, to match the tiles), as
sparse.rsalready does for its chunks. Hash only the pages the write watch reported, compare them with the stored hashes, and record which pages really changed. #2396 uses that list.Test: writing a page with the same bytes does not upload; writing a different byte in one page uploads and updates only that page's hash. Remapping (#504) still forces an upload.
Found by code reading with Claude Code (Claude Opus 5.5).
xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2580title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1327