D3D12.X: adjust frame interval tolerances for 60 Hz, 15 Hz, and NTSC (#103) #1372
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!1372
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@slopgobblercobbler on GitHub · 2026-11-24 15:20 UTC · original
slopgobblercobbler:fix/frame-interval-tolerances→main· +53 −2 · 1 files · 1 commits · openAddresses #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.@futurepro62 on GitHub · 2026-11-24 15:24 UTC · original · edited 2026-11-24 15:27 UTC
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
@DavidM1911 on GitHub · 2026-11-24 16:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
@Toons29 on GitHub · 2026-11-25 03:26 UTC · original
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.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.