Repository navigation
d3d12_xs: the releaser watchdog does not wrap to 2^64 - 1 ms (RT-RELEASER-STALL-WRAP) - #1944
Christopher-Sundeby wants to merge 1 commit into
Conversation
…ASER-STALL-WRAP) release_loop stores the start of a gate Signal as GetTickCount64() | 1 so that 0 can mean "not inside a Signal". On an even tick that start is 1 ms ahead of the clock, and watch_releaser reading it in the same millisecond computed GetTickCount64() - since = 2^64 - 1. It then logged "has been inside one gate Signal ... for 18446744073709551615 ms", counted a stall in release_stalls and set stall_logged_, so a real stall of that Signal was never reported. Clamp the elapsed time at 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
More evidence: the |
MSedgeMC
left a comment
There was a problem hiding this comment.
Verified against source: release_loop stores signal_since_ms_ = GetTickCount64() | 1 (line 636). On an even tick the stored value is the next millisecond, so watch_releaser's GetTickCount64() - since can wrap to 2^64-1 and trip the stall counter. The fix clamps to 0 when now <= since, which is the correct minimal handling and preserves normal timing. No game data, no GPU needed for the review.
|
Closing this one: the same fix is on |
Claimed in the coordination issue as: RT-RELEASER-STALL-WRAP
What and why
release_loopstores the start of a gate Signal asGetTickCount64() | 1, so that 0 can mean "not inside a Signal" (runtime/shims/d3d12_xs_list_values.h:636). On an even tick that start is 1 ms ahead of the clock. Whenwatch_releaserreads it in that same millisecond,GetTickCount64() - sincewraps to 2^64 - 1. The watchdog then:the releaser ... has been inside one gate Signal (value 1) for 18446744073709551615 msfor a Signal that has just started,release_stalls, andstall_logged_, so a real stall of that same Signal is never reported.This happened on a retail boot here (RTX 3060 Ti,
mainb0f3d39, run described in the finding). The fix clamps the elapsed time at 0. Nothing else readssignal_since_ms_as a time.Tested
gta6rtandxs_proxy_mock_testbuild. No new warnings come from the changed file.xs_proxy_mock_test: PASS, including section 14 (list memory writes and waits, the pump and the releaser).ListValuePump.GPUs tested: n/a (CPU-side change; the run that showed the message was on an RTX 3060 Ti, NVIDIA 621.24)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code