D3D12.X: Wait64BitValueX compares the whole value (retail title stood still after its first cinematic) #218
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!218
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/218/head"
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?
@Sr-0w on GitHub · 2026-11-23 21:14 UTC · original
Sr-0w:wait64-no-mask→main· +11 −6 · 1 files · 1 commits · closed without mergingWhat happened
Right after its first cinematic, the retail title dropped to 0 fps. The log showed one timeout per frame:
The counter was always ahead of what was asked for (GREATER_EQUAL), but
(memory & mask) >= valuenever held. The "mask" is not a mask: its low half is 1, and its upper half is whatever was left in the stack slot (0x231…,0x2ef…in another run). The title passes a 32-bit value there, so the argument is not a 64-bit mask, and a mask of 1 would not allow>= 2anyway.Change
wait64_xcompares the whole 64-bit value (masku64::MAX). The argument after the value is ignored.Testing
cargo test --release -p xcl --lib: 582 passed, 0 failed.🤖 Generated with Claude Code
@ivall on GitHub · 2026-11-23 21:24 UTC · original
Merged as a squash commit (
d4f17ca) with the game's name left out of the message and the comment - the repository does not name it. Thanks, a good find. Checked on an RX 9070 (RDNA4) with 11 PRs merged together on mainaf20b4b:cargo build --workspace && cargo test --workspace -- --test-threads=4- 605 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed; and the retail game still reaches its first menu at 30 fps (720 draws per 2 s).Pull request closed