D3D12.X: Wait64BitValueX compares the whole value (retail title stood still after its first cinematic) #215
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/218"
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 Sr-0w on 2026-11-23T21:14:24Z.
What 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
upstream-sync referenced this pull request2026-11-24 06:57:54 +00:00
Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T21:24:29Z.
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