D3D12.X: re-fingerprint unwatched streamed textures at spaced frame milestones #2029
No reviewers
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!2029
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2029/head"
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?
@raylitebull on GitHub · 2026-11-25 01:16 UTC · original
raylitebull:feat/title-textures-streamed-recheck-v2→main· +350 −5 · 1 files · 1 commits · merged 2026-11-25 11:43 UTCAdds 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.@raylitebull on GitHub · 2026-11-25 02:13 UTC · original
Rebased
#2029cleanly ontoaaa0936in commitdea3552, resolving the adjacency conflict incrates/xcl/src/hle/d3d12x/title_textures.rsalongside#1986/#2024(BATCH_BYTES/BATCH_ITEMS).Pushed
dea3552for GitHub ActionsBuild and testand fresh verification.@Anon64 on GitHub · 2026-11-25 02:28 UTC · original
Regression run for this PR: head
dea3552, based onmainaaa0936. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, back to back with themainrun.main
aaa0936: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.
@JoaoPauluu on GitHub · 2026-11-25 02:33 UTC · original
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with
main(1386 here, 1357 and 1365 on the twomainruns). The PR'sstreamed unwatched re-uploads triggeredline does not appear in the log within 60 s, so the re-fingerprinting is not seen to fire here; this is a regression run only.Tested
x86_64-pc-windows-gnu.dea3552as it is (based onaaa0936) andmaincbc296a, no uncommitted changes. Retail title 1.0.2.1,scripts/linux/smoke.sh(#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main.Regression run
main (first run):
this PR:
The second
mainrun: 1365 frames,exit: 0x0, no device removal, no crash. Under Wine,peak commitreads 0 MB, so these blocks do not check memory.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 02:42 UTC · original
Empirical verification — PR #2029 (
dea3552119bf4403f42704166fbed400ddca1705)Tested clean detached PR head
dea3552119bf4403f42704166fbed400ddca1705on STOR-WINLAB.Environment
26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0,d3d12SDKLayers.dllabsent).rustc 1.100.0 (0ef1bc386 2026-11-09)(CARGO_INCREMENTAL=0, debug info 0). Standalone DXC/DXIL1.9.2609.5was prepended toPATH; XCL logged loading Windows SDK DXC/DXIL1.9.2602.17(21d28f72).Tested
cargo build --workspaceandcargo test --workspace --no-runexited 0 outside the GPU lock.cargo test -p xcl --lib hle::d3d12x::title_textures::tests::<name> -- --exact --nocapture): 3 passed, 0 failed, 0 ignored, 0 skipped:range_is_fully_watched_handles_gaps_and_adjacent_spanssample_fingerprint_detects_start_mid_and_end_changes_in_large_texturesstream_recheck_schedule_catches_late_writes_and_resets_milestones(verified +4 requeue, reset after mutation, GPU-written exclusion, retirement after +400 in the 4/12/40/120/400 schedule).cargo test --workspace --no-fail-fast -- --test-threads=4(underInvoke-ArcTest.ps1, exited 101): 1,126 passed, 28 failed, 46 ignored across 20 test binaries, with 24SKIPPEDlines across 14 tests (excluded from coverage; libtest pass counts include early returns).xcl --lib(pipeline creation0x80070057and shader output assertions) pluse2e::test_title_runs_and_game_folder_is_untouched(dynamic depth biasRSSetDepthBiasX#94 blue vs green). Unrelated to the title-texture milestone path (no same-runmainbaseline).Not tested
scripts/smoke.ps1main-vs-PR run,XCL_SAMPLE_*(unset), D3D12 debug layer, and non-Arc adapters.AI use
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr2029-suite.logand published this report.@DavidM1911 on GitHub · 2026-11-25 04:12 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@raylitebull on GitHub · 2026-11-25 10:38 UTC · original
Thanks @Anon64 for running and sharing the exact-head 60 s
scripts/smoke.ps1pair ondea3552(0 device removals, 0 crashes) — added to the PR description!@ivall on GitHub · 2026-11-25 11:43 UTC · original
Merged as
f45409c, thank you. This is the AMD run it was waiting for.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug:
ea088a5+ #2029 + #1782,cargo test --workspace --no-fail-fast -- --test-threads=4: 1248 passed, 2 failed, 46 ignored, 7 SKIPPED. The two failures arefuzz_validate_and_gpu_1and_3(#2115), onmaintoo.In the title (
426a5a7+ #2180 + #2029 + #1782 + the #2080 stack with a fix,XCL_DIRECT_DXIL=1 XCL_PSO_PRELOAD=0, release): one run of 421 s, 30 fps in the menus, then the world load with no present from about 70 s on (pipelines being built, as before). No device removal and no crash; closed by hand.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.
@DavidM1911 on GitHub · 2026-11-26 07:05 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin