Repository navigation
D3D12.X: re-fingerprint unwatched streamed textures at spaced frame milestones - #2029
Conversation
…ilestones Textures backed by unwatched or mapped physical pages cannot be tracked by GetWriteWatch, so a texture first uploaded while still zeroed before streaming fills its pages remained zeroed unless its mirror source remapped. Record a bounded (<= 48 KiB start/mid/end, ReadProcessMemory-safe) fingerprint for active non-gpu_written textures not fully covered by write-watched spans and re-check them at frames 4, 12, 40, 120, and 400 after upload, re-queuing changed textures and resetting their schedule so subsequent higher-resolution mip streams are also uploaded. Controlled by XCL_TEXTURE_STREAM_RECHECK (default on).
216ef4c to
dea3552
Compare
|
Rebased Pushed |
|
Regression run for this PR: head main this PR: No device removals or crashes; 101 % of main's frames, 86 % of its peak commit. Not tested: the whole suite; world loading; whether the title reaches the changed code in these 60 s. Written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with Tested
Regression run main (first run): this PR: The second Not tested
AI use
|
Empirical verification — PR #2029 (
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
# Conflicts: # crates/xcl/src/hle/d3d12x/title_textures.rs
|
Thanks @Anon64 for running and sharing the exact-head 60 s |
|
Merged as Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug: In the title ( Not measured: the effect of this change on its own, and what the rechecks cost per submit. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this on the maintainer's behalf. |
Adds spaced frame-milestone re-fingerprinting (
frames [4, 12, 40, 120, 400], gated byXCL_TEXTURE_STREAM_RECHECK, default on) for active non-gpu_writtentextures backed by unwatched or mapped physical pages, ensuring textures initially uploaded zeroed are re-queued once streaming writes fill their pages and subsequent higher-resolution mip streams.Part of #1833.
What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs(+350 / -5): record a bounded (<= 48 KiBstart/mid/end,ReadProcessMemory-safe) fingerprint for active non-gpu_writtentextures not fully covered byGetWriteWatchspans, re-check at spaced frame milestones4,12,40,120, and400, reset the schedule when content changes, and addtitle_texturesunit tests.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13), rebased cleanly ontoaaa0936(dea3552).dea3552was rebased cleanly ontoaaa0936(preserving#1986/#2024'sBATCH_BYTES/BATCH_ITEMSconstants via pure git during a local test hold) and is queued for GitHub ActionsBuild and test+ reviewer verification.216ef4c(onto279d3ea) passedcargo check --workspace --tests,title_textures(5/5), andBuild and test (Windows, no GPU).scripts/smoke.ps1regression pair on NVIDIA GeForce RTX 3060 (@Anon64): passed (0 device removals, 0 crashes).Regression run
60 s
scripts/smoke.ps1pair on exact headdea3552vsmain(NVIDIA GeForce RTX 3060 12 GB, driver 581.80, Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s on a retail title), contributed by@Anon64:main:
this PR:
Not tested
cargo check/title_texturestests and 60 sscripts/smoke.ps1pair on rebased headdea3552, fullcargo test --workspacesuite, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton.AI use
aaa0936, and unit tests; the author reviewed the diff.