Skip to content

README: document XCL_TEXTURE_STREAM_RECHECK - #3749

Draft
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/texture-stream-recheck-readme-17
Draft

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/texture-stream-recheck-readme-17

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

Documents XCL_TEXTURE_STREAM_RECHECK, which is read in crates/xcl/src/hle/d3d12x/title_textures.rs but was not mentioned in the README switches list.

What is in it

  • README.md: add an XCL_TEXTURE_STREAM_RECHECK=0 bullet to the "Switches for how a title runs" sub-list, after the XCL_WAIT_TIMEOUT_MS bullet.

Tested

  • Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only.
  • Verified against main at 078358a: stream_recheck_enabled() keeps the recheck on unless the trimmed value is 0; unwatched textures are re-fingerprinted 4, 12, 40, 120 and 400 frames after their last upload or detected change, and a changed one is queued for upload again. In that tree the variable appears only in title_textures.rs; the README on main and on amd-dev has no mention of it.

Regression run

  • Not applicable: README-only change; no runtime code changed.

Not tested

  • Windows build, GPU test suite, and title runs were not run for this docs-only change.

AI use

  • Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.

@Foniass

Foniass commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Review of 08526e91 (code reading only, not a merge-check; draft) · 1 medium

In short: The PR adds an XCL_TEXTURE_STREAM_RECHECK=0 bullet to the README. The milestones and the switch match hle/d3d12x/title_textures.rs on main, but the example it gives is the one case main leaves out of the recheck.

Medium

  1. Physical-page views are not rechecked on main. The bullet says the recheck covers "textures the write-watch cannot track (for example physical-page views)". On main, seed_stream_recheck skips a texture read through its pages (d.pages.is_some(), title_textures.rs ~2388), and the recheck prunes it (e.paged). Those are textures mapped with the page-mapping method. Only D3D12.X: streamed textures read through their pages are rechecked there #3725, still open, puts them on the schedule. Fix: give an example that is rechecked today, such as a sampled texture in memory no write-watch covers, or drop the example until D3D12.X: streamed textures read through their pages are rechecked there #3725 lands.
Checked and fine
  • stream_recheck_enabled (~2322) turns the recheck off only for 0 (after trimming), so "=0: turns off ... On by default" is right.
  • STREAM_RECHECK_MILESTONES is [4, 12, 40, 120, 400] (~2304), counted from the frame of the last whole upload. A texture whose fingerprint changed is queued for a whole upload and seeded again.
  • One commit with a README: subject. The indentation matches the bullets around it. No other open PR documents this variable.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants