D3D12.X: title textures keep per-page hashes and hash only written pages #2395
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2395
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?
@KOLESNiii on GitHub · 2026-11-25 17:43 UTC · original
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).
github-bot referenced this issue2026-11-26 05:31:49 +00:00