Repository navigation
Conversation
Small CPU-filled render targets in memory that write-watch does not cover (the GPU_UPLOAD part of the unified-memory window with XCL_UMA_DRIVER=mixed:<a>:<b>) are caught only by the unwatched re-check in title_textures.rs. It fingerprinted three 16 KiB slices (start, middle, end) at 4, 12, 40, 120 and 400 frames after the last whole upload and dropped the texture after five unchanged checks. A glyph cache the title fills letter by letter is written later than that and outside those slices, so new glyphs never reached the PC texture and a retail title's on-screen control hints showed only a few letters (4 of its 7 logged glyph-cache textures were in that range). A target of up to 4 MiB is no longer retired after the last milestone: it is checked every 16 frames while it lives, and a change resets it to the first milestone. Up to 512 KiB its fingerprint hashes the whole contents (stream_fingerprint, used for both baseline and check). Watched memory, paged textures and non-target textures are unchanged. Cost is bounded: the first steady check of a texture is moved by 0..15 frames from its address (steady_offset), so textures seeded on the same frame do not stay due together, and the steady checks of one frame read at most 4 MiB (STREAM_STEADY_BUDGET); checks over it wait for the next frame, oldest due first, and the first one of a frame is always made. The milestones (4, 12, 40, 120, 400) are not limited. Tests: stream_recheck_keeps_checking_small_targets_and_hashes_all_of_them fails on main; steady_rechecks_are_staggered_and_kept_to_a_byte_budget (300 targets of 256 KiB seeded on one frame: never over the budget in a frame, each checked again within 40 frames). Part of xcl-dev#1049. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ran the Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, DXC 1.9.2609.5, debug build, The description records 68 passed, 0 failed, 1 ignored for the first command; on this host it is 63/5/1 over the same 69 selected tests (the filter selects 66 on The first failure is the root: Run alone at Not tested: the full workspace suite, a title that fills a glyph cache letter by letter (the AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
@throny I tested the late texture refresh on my RTX 3080 (driver 616.92). I used the same
The watched control texture updated on both revisions. This confirms that the PR picks up a late write after stock has retired the texture. I used a whole-backing write, so localized glyph writes and visible text in the retail game remain untested. I used Codex GPT-6.2 Sol to adapt and run the fixture. A separate GPT-6.2 Sol agent reviewed the source and original GPU results. Codex GPT-6.2 Astra drafted this comment. I reviewed and approved this comment before posting. |
|
In-world check running: this PR's head AI use: Claude Code (Claude Opus 5.5). |
|
Update on the in-world check: the two runs of this PR were invalid on our side (our local input-timing patch was missing from the PR build, so the scripted presses never reached the game and it stayed in the account-select menu; the menu text there was complete). The base runs reached the world. Rerunning the PR build with the patch after the runs now on the GPU. @Gevroska thanks for your RTX 3080 report; I'll answer with the world result. AI use: Claude Code (Claude Opus 5.5). |
|
World result, and it is negative: this PR does not bring the missing letters back. RTX 4080 16 GB (621.40), this PR's head
Turning this into a draft. The glyphs are probably not CPU-filled small targets in unwatched memory, which is what this PR re-checks. @Gevroska, thanks for your RTX 3080 report above. AI use: Claude Code (Claude Opus 5.5) checked the frames; runs and frame sampling by Claude Sonnet 5.5 / Haiku 5.5 sub-agents. |
|
Correction to my earlier review: I misread the state transition. An eligible small target enters the steady schedule after its first unchanged milestone, including the +4 check after a change. The 280-frame delay I claimed does not occur; I withdraw that finding. There is a shorter, concrete deadline regression in that transition. Seed a 256 KiB target at frame 0 with an address whose Separately, the budget filter does quadratic ID searches on the submission thread. With 1,024 overdue 512 KiB targets, eight fit 4 MiB and 1,016 are deferred. AI use: Codex (GPT-6.2 Sol) rechecked the source and arithmetic; Codex (GPT-6.2 Astra) identified the state-transition misread and the backlog path. |
|
Review (head cd0a688, diff read, not a merge-check; draft, so not built or run):
Fine: a check pushed back by the budget keeps its state and goes first the next frame, a change sends the texture back to the first check, and GPU-written textures still leave the re-check. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Correction to my earlier #3537 review: the claimed 280-frame wait was wrong. I edited that comment to withdraw it and document the verified shorter deadline case and an independent quadratic backlog cost. Please use the corrected version. |
|
Closing: the world run above shows it does not fix the missing letters, which was its purpose. Branch kept on throny/xcl. AI use: Claude Code (Claude Opus 5.5). |
Small CPU-filled render targets in memory that write-watch does not cover (the GPU_UPLOAD part of the unified-memory window with
XCL_UMA_DRIVER=mixed:<a>:<b>) are caught only by the unwatched re-check intitle_textures.rs. That re-check fingerprints three 16 KiB slices (start, middle, end) at 4, 12, 40, 120 and 400 frames after the last whole upload, and drops the texture after five unchanged checks. A glyph cache that the title fills letter by letter is written later than that and outside those slices, so the new glyphs never reach the PC texture and the on-screen control hints in a retail title's world show only a few letters. In that run's log, 4 of the 7 logged glyph-cache textures were in that range and no "streamed unwatched re-uploads triggered" line appeared.Part of #1049 (letters missing from glyph text; that issue's RDNA4 flicker may have another cause).
What is in it
D3D12.X: keep re-checking small CPU-filled targets in unwatched memory, incrates/xcl/src/hle/d3d12x/title_textures.rs:Entry::target) of up to 4 MiB is no longer retired after the last milestone. After an unchanged check it is checked again every 16 frames for as long as it lives. A change still resets it to the first milestone.stream_fingerprint).steady_offset), so textures seeded on the same frame do not stay due together.STREAM_STEADY_BUDGET); a check over it waits for the next frame, oldest due first, and the first check of a frame is always made. The milestones (4, 12, 40, 120, 400) are not limited.stream_recheck_keeps_checking_small_targets_and_hashes_all_of_them(an unchanged target is still scheduled after 900 frames, and a write outside the three slices queues it; fails onmain),steady_recheck_is_only_for_small_targets,steady_rechecks_are_staggered_and_kept_to_a_byte_budget(300 targets of 256 KiB seeded on one frame: no frame over the budget, each checked again within 40 frames; pins the 16-frame interval).Tested
cargo test -p xcl --lib -j 8 -- title_textures --test-threads=2: 68 passed, 0 failed, 1 ignored.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 2888 passed, 1 failed, 51 ignored. The failure,gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, also fails onmain(9dfbe3e), run alone.SKIPPEDlines: 22no wave64(this GPU is wave32 only:gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole, thegpu::recomp::lower*andgpu::recomp::tests::*wave*tests),heap_window_out_of_memory_falls_back_to_the_switch_formandhle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap(no heap windows),shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache: Windows Developer Mode is required).Regression run (
scripts/smoke.ps1 -Game <title folder>, same title, 60 s)main (9dfbe3e):
this PR's head (cd0a688):
An earlier pair of runs was discarded because other GPU work ran at the same time.
Not tested
is_small_cpu_filled_targetstill rejects a 4096x64 R8 target (wider than 2048). That is a separate change and is not in this PR.AI use
main, ran the test suite and the smoke runs, and prepared this PR.🤖 Generated with Claude Code