README: the switches for how a title runs #2314

Manually merged
github merged 1 commit from gh-pr/2314/head into gh-pr/2314/base 2026-11-26 05:27:02 +00:00
Owner

@⁠gefydev on GitHub · 2026-11-25 13:33 UTC · original
gefydev:readme-run-behaviour-switches → main · +16 −0 · 1 files · 1 commits · merged 2026-11-25 18:21 UTC

Five switches that change how a title runs (movies, speech, frame pacing, and the waits of D3D12.X) are explained only in code comments. Docs only.

What is in it

  • README.md: a "Switches for how a title runs" entry in the "Switches, caches, logs and the files XCL writes" block, with XCL_SKIP_BINK, XCL_MUTE_TTS, XCL_FRAME_INTERVAL_US, XCL_WAIT_TIMEOUT_MS and XCL_GPU_WAIT_TIMEOUT_MS: the accepted values and the default of each, read from hle/bink.rs, hle/xgameruntime/api.rs, hle/d3d12x/frame.rs and hle/d3d12x/list_x.rs.

Tested

  • Docs only: no code changed. Every statement was checked against the code that parses the variable, with the parse functions' own tests as a second source (parse_mode, parse_mute_tts, parse_interval_override).
  • Searched the README and docs/ for each name first: none of the five was there.

Not tested

  • The switches were read from the code, not run for this PR; cargo test and scripts/smoke.ps1 were not run, since no code changed. What a title does once a wait timeout expires is not described, because it was not checked.
  • Left out on purpose, because the code does not say enough to describe them right: XCL_SLEEP_HOLD and XCL_PRESENT_SYNC.
  • Other open README PRs (#741, #2218, #2190) touch nearby lines, so this one may need a rebase; the entry is a separate block, not an edit of theirs.

AI use

  • Claude Code, Claude Sonnet 5.5: read the code, wrote the entries and this description.
**@⁠gefydev** on GitHub · 2026-11-25 13:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/2314) `gefydev:readme-run-behaviour-switches` → `main` · +16 −0 · 1 files · 1 commits · merged 2026-11-25 18:21 UTC Five switches that change how a title runs (movies, speech, frame pacing, and the waits of D3D12.X) are explained only in code comments. Docs only. **What is in it** - `README.md`: a "Switches for how a title runs" entry in the "Switches, caches, logs and the files XCL writes" block, with `XCL_SKIP_BINK`, `XCL_MUTE_TTS`, `XCL_FRAME_INTERVAL_US`, `XCL_WAIT_TIMEOUT_MS` and `XCL_GPU_WAIT_TIMEOUT_MS`: the accepted values and the default of each, read from `hle/bink.rs`, `hle/xgameruntime/api.rs`, `hle/d3d12x/frame.rs` and `hle/d3d12x/list_x.rs`. **Tested** - Docs only: no code changed. Every statement was checked against the code that parses the variable, with the parse functions' own tests as a second source (`parse_mode`, `parse_mute_tts`, `parse_interval_override`). - Searched the README and `docs/` for each name first: none of the five was there. **Not tested** - The switches were read from the code, not run for this PR; `cargo test` and `scripts/smoke.ps1` were not run, since no code changed. What a title does once a wait timeout expires is not described, because it was not checked. - Left out on purpose, because the code does not say enough to describe them right: `XCL_SLEEP_HOLD` and `XCL_PRESENT_SYNC`. - Other open README PRs (#741, #2218, #2190) touch nearby lines, so this one may need a rebase; the entry is a separate block, not an edit of theirs. **AI use** - Claude Code, Claude Sonnet 5.5: read the code, wrote the entries and this description.
XCL_SKIP_BINK, XCL_MUTE_TTS, XCL_FRAME_INTERVAL_US, XCL_WAIT_TIMEOUT_MS and
XCL_GPU_WAIT_TIMEOUT_MS change how a title runs and were only described in code
comments. Each entry gives the values the code accepts and the default, as read
from bink.rs, xgameruntime/api.rs, d3d12x/frame.rs and d3d12x/list_x.rs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:27:01 +00:00
github manually merged commit 6bb40a6da7 into gh-pr/2314/base 2026-11-26 05:27:02 +00:00
Author
Owner

@⁠oni-swr on GitHub · 2026-11-25 13:46 UTC · original

Docs review of #2314 at head 6bb40a6da70a310623dd88409155b057a306e119, against origin/main afc5ee86ae3a9521c9f15d96505cd73fe72f2191 (PR based on 1a0bbe3; merges into current main cleanly; README.md on main has none of these variables yet).

Checked against the source (all match; no inaccuracy or typo found):

  • XCL_SKIP_BINK (hle/bink.rs parse_mode): unset, empty, 0, off, false, no are off, all also skips looping movies, anything else skips non-looping; movies are taken to their last frame without decoding (fast_advance); only wraps a bink2*.dll.
  • XCL_MUTE_TTS (xgameruntime/api.rs): on for any value except empty, 0, off, false (any case); the XAccessibility object has closed captions and high contrast only.
  • XCL_FRAME_INTERVAL_US (d3d12x/frame.rs): unset keeps the title's interval; 0/off/uncapped uncaps; a number is an upper bound (min(requested, n), floor 1000). Unparseable values are ignored, as the PR implies. 8333 and 4167 as examples are right.
  • XCL_WAIT_TIMEOUT_MS / XCL_GPU_WAIT_TIMEOUT_MS (d3d12x/list_x.rs): defaults 2 s and 5 s, a non-number or 0 keeps the default.

Overlap

  • #2313 edits README.md elsewhere (no conflict). #2118 mentions XCL_SKIP_BINK only in its description (it changes D3D12.X dispatch code). No open PR documents these variables.

Not tested

  • Nothing was run: this is a docs-only diff checked by reading the source on origin/main. The full workspace suite, GPU tests and scripts/smoke.ps1 / any title run were not run either.

AI use

  • Review written by Claude Code (Claude Sonnet 5.5). I read the full diff and the code each statement refers to; nothing was changed or pushed.
**@⁠oni-swr** on GitHub · 2026-11-25 13:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/2314#issuecomment-7164261392) **Docs review of #2314** at head `6bb40a6da70a310623dd88409155b057a306e119`, against `origin/main` `afc5ee86ae3a9521c9f15d96505cd73fe72f2191` (PR based on `1a0bbe3`; merges into current `main` cleanly; `README.md` on `main` has none of these variables yet). **Checked against the source** (all match; no inaccuracy or typo found): - `XCL_SKIP_BINK` (`hle/bink.rs` `parse_mode`): unset, empty, `0`, `off`, `false`, `no` are off, `all` also skips looping movies, anything else skips non-looping; movies are taken to their last frame without decoding (`fast_advance`); only wraps a `bink2*.dll`. - `XCL_MUTE_TTS` (`xgameruntime/api.rs`): on for any value except empty, `0`, `off`, `false` (any case); the XAccessibility object has closed captions and high contrast only. - `XCL_FRAME_INTERVAL_US` (`d3d12x/frame.rs`): unset keeps the title's interval; `0`/`off`/`uncapped` uncaps; a number is an upper bound (`min(requested, n)`, floor 1000). Unparseable values are ignored, as the PR implies. 8333 and 4167 as examples are right. - `XCL_WAIT_TIMEOUT_MS` / `XCL_GPU_WAIT_TIMEOUT_MS` (`d3d12x/list_x.rs`): defaults 2 s and 5 s, a non-number or 0 keeps the default. **Overlap** - #2313 edits `README.md` elsewhere (no conflict). #2118 mentions `XCL_SKIP_BINK` only in its description (it changes D3D12.X dispatch code). No open PR documents these variables. **Not tested** - Nothing was run: this is a docs-only diff checked by reading the source on `origin/main`. The full workspace suite, GPU tests and `scripts/smoke.ps1` / any title run were not run either. **AI use** - Review written by Claude Code (Claude Sonnet 5.5). I read the full diff and the code each statement refers to; nothing was changed or pushed.
Author
Owner

@⁠gefydev on GitHub · 2026-11-25 13:48 UTC · original

@⁠oni-swr thank you for checking each entry of #2314 against bink.rs, xgameruntime/api.rs, d3d12x/frame.rs and d3d12x/list_x.rs: no inaccuracy found, and no other open PR documents these variables.

AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.

**@⁠gefydev** on GitHub · 2026-11-25 13:48 UTC · [original](https://github.com/xcl-dev/xcl/pull/2314#issuecomment-7164311801) @⁠oni-swr thank you for checking each entry of #2314 against `bink.rs`, `xgameruntime/api.rs`, `d3d12x/frame.rs` and `d3d12x/list_x.rs`: no inaccuracy found, and no other open PR documents these variables. AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 17:52 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!

**@⁠DavidM1911** on GitHub · 2026-11-25 17:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/2314#issuecomment-7170128269) 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!
Author
Owner

@⁠gefydev on GitHub · 2026-11-25 18:21 UTC · original

@⁠DavidM1911 thank you for the verification on #2314 (RTX 3060 Ti, Windows 11, branch merged with current main, cargo test -p xcl --lib all passed, 0 failed, about 26 ignored, with the intermittent abort under parallel scheduling tracked in #1978 clean on a single-threaded rerun). Noted.

AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.

**@⁠gefydev** on GitHub · 2026-11-25 18:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/2314#issuecomment-7170796495) @⁠DavidM1911 thank you for the verification on #2314 (RTX 3060 Ti, Windows 11, branch merged with current `main`, `cargo test -p xcl --lib` all passed, 0 failed, about 26 ignored, with the intermittent abort under parallel scheduling tracked in #1978 clean on a single-threaded rerun). Noted. AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @⁠gefydev.
This discussion has been locked. Commenting is limited to contributors.
No description provided.