D3D12.X: adjust frame interval tolerances for 60 Hz, 15 Hz, and NTSC (#103) #1362
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1372"
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?
Imported from ivall/xcl. Originally posted by slopgobblercobbler on 2026-11-24T15:20:30Z.
Addresses #103 Item 4 (Frame pacing interval validation tolerances):
In
crates/xcl/src/hle/d3d12x/frame.rs,interval_validpreviously used narrow tolerance spans that rejected common frame pacing intervals:near(16667, 16)rejected16666 µs(1_000_000 / 60).near(66667, 67)rejected66666 µs(1_000_000 / 15).near(50000, 49)rejected NTSC 19.98 Hz (50050 µs) by 1 µs.What is in it
crates/xcl/src/hle/d3d12x/frame.rs:near()tolerance spans: 16667 µs span expanded to 17 µs (accepts 16666 µs, rounding down to 16650 µs, and NTSC 59.94 Hz up to 16684 µs), 50000 µs span to 50 µs (accepts 50050 µs), and 66667 µs span to 68 µs (accepts 66666 µs and 14.985 Hz).console_intervals_accept_ntsc_and_rounding_and_reject_invalid_jittercovering 120, 60, 40, 30, 20, 15 Hz, NTSC variations, and jitter bounds.Tested
cargo test -p xcl -- frame(10 passed, 0 failed).cargo test --workspace(707 passed, 0 failed).upstream/main(930e8b4).Not tested
AI use
author-frame-timing,verify-frame-timing). Verified and reviewed independently.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T15:24:26Z.
Full-suite run, since this PR has no test report yet. Tested exact head
5fab29a(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.console_intervals_accept_ntsc_and_rounding_and_reject_invalid_jitter.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T16:41:52Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:26:25Z.
Regression run of
5fab29aaon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-25 11:07:09 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:45Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T08:38:28Z.
Tested
Exact
5fab29aa94327e22c3e32d99f0ceb42e6ee527e5on Windows 11 x64 build 26200.9974, Ryzen 7 3800X, Rust 1.100.1 MSVC debug. I verified the 221 original Git blobs, reconstructed the single private test insertion in memory, and reran the pinned libtest without rebuilding.I ran
<libtest.exe> <filter> --exact --nocapture --test-threads=1separately for two CPU tests underhle::d3d12x::frame::tests.setter_accepts_interval_edges_and_retains_state_on_rejectionverified that XCL'sSetFrameIntervalXreturnedS_FALSEfor 16,650, 16,684, 49,950, 50,050, 66,599 and 66,735 µs, advancing the generation once each time. The adjacent values 16,649, 16,685, 49,949, 50,051, 66,598 and 66,736 µs returnedE_INVALIDARGand preserved both the interval and generation. A zero-length reset returnedS_FALSEand left the snapshot at(0, 7).console_intervals_accept_ntsc_and_rounding_and_reject_invalid_jitterpassed.2 passed, 0 failed, 0 ignored, 0 runtime skips. Both native processes exited 0, with 729 tests filtered out per invocation.
Not tested
Xbox hardware behavior, clock-thread timing, display rates, the base revision, retail smoke, and the full suite. Xbox support for 50,050 µs remains unconfirmed per the maintainer. Issue #103
AI use
T3 Code through the Codex harness (
gpt-6.2-sol) verified the source and executable, reran the tests, and wrote this report.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:33:03Z.
Triage (#1607) – head
5fab29aNo open or merged PR changes these tolerances (#317 and #786 are other #103 items).
Main already accepts 16683 (NTSC 59.94 Hz), 33367 and 66733/66734, so the change only adds 16650/16684, 49950/50050 and 66599/66735. The description gives no title or measurement that passes those lengths. Main has since added
near(41667, 42)to the same line, so the branch conflicts.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.