Frame clock: a 24 Hz frame interval (41,667 µs) is a valid one #3294

Merged
Foniass merged 1 commit from upstream-pr/3294 into main 2026-11-29 12:21:13 +00:00
Foniass commented 2026-11-29 06:18:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-11-29T06:18:54Z.


SetFrameIntervalX accepts only the intervals interval_valid knows: 60,
30, 20 and 15 Hz, and 120 / 40 Hz on a 120 Hz display, each within the
rounding a title may use. A title asking for 24 Hz (41,667 µs) got
E_INVALIDARG and kept its previous interval. 41,667 µs (within 42 µs,
like the others) is now valid.

Ported from amd-dev 48cf7139 (its frame.rs part), raylitebull.

What is in it

  • crates/xcl/src/hle/d3d12x/frame.rs: interval_valid accepts 41,667 µs (±42); test interval_valid_accepts_24hz

Tested

  • NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.2114), AMD Ryzen 7 7800X3D, Windows 11 build 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug tests, release smoke
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 036978af: 2605 passed, 4 failed, 49 ignored. The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (E_OUTOFMEMORY from CreateComputePipelineState, seeds 70 / 545 / 1019 / 1507), the same as on main on this machine; they pass on another RTX 5070 Ti. SKIPPED GPU tests: 44 notices, almost all no wave64.
  • Retail title: 60 s smoke run below (no device removal or crash, frames and peak commit within the limits).

Regression run

main:

xcl-smoke v1
commit: b10cc4c6766adc947c2054ada4a2af98be15108d
gpu: NVIDIA GeForce RTX 5070 Ti
title: 3cb1d8e0
seconds: 60
exit: 0x0
frames shown: 1565 (PresentX 1565)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16026 MB

this PR:

xcl-smoke v1
commit: 036978af7fa0263c2866efabd6561ad2c32d27d1
gpu: NVIDIA GeForce RTX 5070 Ti
title: 3cb1d8e0
seconds: 60
exit: 0x0
frames shown: 1677 (PresentX 1677)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 16757 MB

Not tested

  • a title that sets a 24 Hz interval (none known here; whether the console accepts 24 Hz comes from the amd-dev commit, not checked)
  • AMD GPUs

AI use

  • Claude Code with Claude Opus 5.5: ported this part of the amd-dev commit named above to main, wrote the commit message and this description, ran the tests and the smoke run.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5548211176 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3294). Originally posted by [Foniass](https://github.com/Foniass) on 2026-11-29T06:18:54Z. --- SetFrameIntervalX accepts only the intervals interval_valid knows: 60, 30, 20 and 15 Hz, and 120 / 40 Hz on a 120 Hz display, each within the rounding a title may use. A title asking for 24 Hz (41,667 µs) got E_INVALIDARG and kept its previous interval. 41,667 µs (within 42 µs, like the others) is now valid. Ported from amd-dev 48cf7139 (its frame.rs part), raylitebull. **What is in it** - `crates/xcl/src/hle/d3d12x/frame.rs`: `interval_valid` accepts 41,667 µs (±42); test `interval_valid_accepts_24hz` **Tested** - NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.2114), AMD Ryzen 7 7800X3D, Windows 11 build 26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug tests, release smoke - `cargo test --workspace --no-fail-fast -- --test-threads=4` on 036978af: 2605 passed, 4 failed, 49 ignored. The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (`E_OUTOFMEMORY` from `CreateComputePipelineState`, seeds 70 / 545 / 1019 / 1507), the same as on main on this machine; they pass on another RTX 5070 Ti. SKIPPED GPU tests: 44 notices, almost all `no wave64`. - Retail title: 60 s smoke run below (no device removal or crash, frames and peak commit within the limits). **Regression run** main: ``` xcl-smoke v1 commit: b10cc4c6766adc947c2054ada4a2af98be15108d gpu: NVIDIA GeForce RTX 5070 Ti title: 3cb1d8e0 seconds: 60 exit: 0x0 frames shown: 1565 (PresentX 1565) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16026 MB ``` this PR: ``` xcl-smoke v1 commit: 036978af7fa0263c2866efabd6561ad2c32d27d1 gpu: NVIDIA GeForce RTX 5070 Ti title: 3cb1d8e0 seconds: 60 exit: 0x0 frames shown: 1677 (PresentX 1677) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 16757 MB ``` **Not tested** - a title that sets a 24 Hz interval (none known here; whether the console accepts 24 Hz comes from the amd-dev commit, not checked) - AMD GPUs **AI use** - Claude Code with Claude Opus 5.5: ported this part of the amd-dev commit named above to main, wrote the commit message and this description, ran the tests and the smoke run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kalmarv commented 2026-11-29 07:54:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-29T07:54:02Z.


merge-check
base: fa204595
head: 036978af
verdict: safe to merge

Merged cleanly onto origin/main (fa204595) in a 5-PR batch (#3288, #3290, #3292, #3294, #3300) and verified on NVIDIA GeForce RTX 5070 Ti with DXC 1.9.2609.5:

  • Targeted hle::d3d12x::frame::tests (including 24 Hz frame interval): all passed.
  • gpu::: 853 passed, 0 failed, 24 ignored (10.45 s, including fuzz_validate_and_gpu_0..3).
  • hle::d3d12x:: (--test-threads=1, skipping 2 known main #3187 uma_driver mixed-window tests): 1144 passed, 0 failed, 3 ignored (30.21 s).
  • Remaining xcl --lib (--test-threads=1): 0 failed.
  • -p xcl --test e2e (after rebuilding xcl-testtitle): 5 passed, 0 failed (including D3D12 debug layer + DRED).
  • GitHub CI (Build and test (Windows, no GPU) and PR description): green.
<!-- greyfinch-sync:ivall/xcl:comment:7252759967 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3294#issuecomment-7252759967). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-29T07:54:02Z. --- merge-check base: fa204595 head: 036978af verdict: safe to merge Merged cleanly onto `origin/main` (`fa204595`) in a 5-PR batch (`#3288`, `#3290`, `#3292`, `#3294`, `#3300`) and verified on NVIDIA GeForce RTX 5070 Ti with DXC 1.9.2609.5: - Targeted `hle::d3d12x::frame::tests` (including 24 Hz frame interval): all passed. - `gpu::`: 853 passed, 0 failed, 24 ignored (10.45 s, including `fuzz_validate_and_gpu_0..3`). - `hle::d3d12x::` (`--test-threads=1`, skipping 2 known `main` `#3187` `uma_driver` mixed-window tests): 1144 passed, 0 failed, 3 ignored (30.21 s). - Remaining `xcl --lib` (`--test-threads=1`): 0 failed. - `-p xcl --test e2e` (after rebuilding `xcl-testtitle`): 5 passed, 0 failed (including D3D12 debug layer + DRED). - GitHub CI (`Build and test (Windows, no GPU)` and `PR description`): green.
throny commented 2026-11-29 09:21:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T09:21:22Z.


merge-check claim
head: 036978af7f

<!-- greyfinch-sync:ivall/xcl:comment:7253707543 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3294#issuecomment-7253707543). Originally posted by [throny](https://github.com/throny) on 2026-11-29T09:21:22Z. --- merge-check claim head: 036978af7fa0263c2866efabd6561ad2c32d27d1
throny commented 2026-11-29 09:36:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T09:36:12Z.


merge-check
base: d8bd9a38
head: 036978af7f
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at d8bd9a38: 2618 passed, 0 failed, 49 ignored.
review: no blocking finding. 41,667 µs is accepted as a frame interval; the range overlaps no existing one and the test fails on main. A question rather than a finding: at 60 Hz the existing list accepts only whole multiples of the period, and 25,000 µs (1.5 periods) only with high_refresh; 41,667 µs is 2.5 periods at 60 Hz, so by the same rule it would belong under high_refresh. On the PC the clock is a timer, so accepting it does no harm.
performance: none.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7253872877 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3294#issuecomment-7253872877). Originally posted by [throny](https://github.com/throny) on 2026-11-29T09:36:12Z. --- merge-check base: d8bd9a38 head: 036978af7fa0263c2866efabd6561ad2c32d27d1 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2619 passed, 0 failed, 49 ignored (27 SKIPPED lines). Base alone at d8bd9a38: 2618 passed, 0 failed, 49 ignored. review: no blocking finding. 41,667 µs is accepted as a frame interval; the range overlaps no existing one and the test fails on main. A question rather than a finding: at 60 Hz the existing list accepts only whole multiples of the period, and 25,000 µs (1.5 periods) only with `high_refresh`; 41,667 µs is 2.5 periods at 60 Hz, so by the same rule it would belong under `high_refresh`. On the PC the clock is a timer, so accepting it does no harm. performance: none. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3294
No description provided.