D3D12.X: one written page makes a title texture hashed, detiled and uploaded whole #2390
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#2390
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
A title texture kept in step with the title's memory is handled whole whenever the write watch reports any page of it (
crates/xcl/src/hle/d3d12x/title_textures.rsonmain3f4495a):upload_allhashes the entire texture to see if it changed (:1099-1107), however few of its pages were written;:1116). The comment at:1095already measured this: "~25 MB a presented frame where ~3 MB had changed";refresh_oncewalks every registered texture under theTEXTURESlock on each submit with written pages (:791-815).Seen: in my title's menus (RTX 2070 SUPER, Ryzen 5 3600XT, Windows 11 26300,
main3f4495arelease), the "uploads left out" count (full-texture hashes that found nothing changed) reached 1,024 at 39 s, 2,048 at 43 s and 4,096 at 52 s.#486 skips uploads where nothing changed. #504 / #508 cover the skip hash's correctness, #1511 / #1513 the speed of detiling, and #449 the cost analysis. None of them makes the work proportional to what was written.
Parts:
Found by code reading with Claude Code (Claude Opus 5.5).
@KOLESNiii on GitHub · 2026-11-25 17:54 UTC · original
Measured: negligible in steady menus, large in two phases. In one, uploads of partly written textures take ~35 % of the submitting thread; in the other, first uploads are hashed for nothing.
Setup: my title;
main3f4495aplus local timers and counters (not committed); release; RTX 2070 SUPER (32.0.16.2140), Ryzen 5 3600XT, Windows 11 26300. Onescripts/smoke.ps1run of 120 s with the learned coherent window. Every 2 s I logged the refresh walk, the "unchanged" hashes, the written pages inside the textures picked for a hash against those textures' total pages, and the detile and upload times inupload_all. "Upload total" includes detiling.What this means for each part:
Not measured: the world (never reached), and how the written pages of the video-phase textures spread across their subresources (that needs a per-subresource count).
Measured and written with Claude Code (Claude Opus 5.5).