Repository navigation
D3D12.X: skip only successful uploads of unchanged title textures - #1
Merged
Merged
Conversation
… uploaded again The write watch is per page, and a title writes next to its textures and rewrites what it wrote: every texture with a written page was detiled and uploaded again before each submit. With a retail title's intro video that was about 25 MB a presented frame where about 3 MB had changed, and the title's submits spent their time in the refresh. The texture's memory is hashed first (four multiply-rotate lanes over 8-byte words, ~4.5 GB/s measured); the same hash as at the last upload of that texture object leaves it out. A texture that is released, or whose address is registered again, starts over. XCL_TEXTURE_SKIP_UNCHANGED=0 turns it off. Assisted-by: Claude Code (Claude Fable 5.2)
D3D12.X: a title texture whose memory is as at its last upload is not uploaded again
Sample successfully presented frames over at least one second using the existing window timer. Keep FPS visible alongside shader compilation progress and report zero when presentation stops. Cover irregular sampling, sample intervals, stalls and recovery with unit tests.
D3D12.X: show live FPS in the game window title
Hash and detile one CPU snapshot, and record its hash only after the upload succeeds. Invalidate it on remapping, source changes and GPU writes. Assisted-by: OpenCode (GPT-6.2 Sol)
frabous
marked this pull request as ready for review
November 24, 2026 01:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix the unchanged-texture upload cache from ivall#486 (related: ivall#504). Hash and detile one CPU snapshot, record the hash only after a successful upload, and invalidate it when the mapping or source changes or the GPU writes the texture.
What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: fix upload caching and cover identical rewrites, failed uploads, and remaps.README.md: document the toggle.2997c9a, so this branch also contains four already-merged upstream commits, including D3D12.X: a title texture whose memory is as at its last upload is not uploaded again ivall/xcl#486 and D3D12.X: show live FPS in the game window title ivall/xcl#516, through508a0c7.Tested
1c20a6f, debug build; Windows 11 build 26300, Intel Core i7-13650HX, RTX 5070 Laptop (driver 32.0.16.2124), Rust 1.99.1.cargo build --workspacesucceeded.cargo test --workspace -- --test-threads=4 --show-output: 678 passed, 0 failed, 41 ignored, 2 skipped at runtime (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
Not tested
AI use