d3d12: hold the title watchdog off through waits and loads #621
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/621"
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 brcly/TuxBox. Originally posted by csj0oe on 2026-12-01T14:09:31Z.
Summary
ProjectScarlett's watchdog crashes the title on purpose when its heartbeat stops for 30 s. Pausing its bit while a title thread waits is not enough on this title:
This re-asserts the bit every 200 ms while a wait is held, and holds a pause whenever the title has not presented for 5 s. The keeper starts in the DLL attach initializer, so the pre-first-present boot gap is covered too; the first layer call and every present update the timestamp. It also pauses around
ExecuteCommandListsand the stand-inCreatePipelineState, where a driver compile can outlast the watchdog.Verification
cargo check --release -p tuxbox-d3d12 --testspasses.ConsoleMode=96) on an RX 7600: the 14.7 min intro crash is gone. The title passed its account picker and loaded the world for about 22 minutes (4,934 presents, 85 ten-second heartbeats) before the run was stopped for cleanup.src/tests/title_watchdog.rs.Trade-off
A title that truly never presents now keeps the pause held instead of being killed. That is deliberate for a load, but it means a genuine hang has to be found through the fence/stall survey rather than through the watchdog. A cap on the hold can be added separately if that becomes the preferred policy.
Imported from brcly/TuxBox. Originally posted by brcly on 2026-12-01T14:19:24Z.
I'm gonna hold on this just now.
In the past 12 hours, I've managed to massively decrease frame time, which has in turn increased FPS (from roughly 0.1-0.2fps to 2-2.5fps).
Which now doesn't present long stalls.
In the event that someone does break something, it's good to still have it so a user's PC doesn't lock up.
Imported from brcly/TuxBox. Originally posted by turboheadcrab on 2026-12-03T16:44:50Z.
RDNA 4 data point: RX 9070 XT, RADV from Mesa 26.3.1, kernel 7.3.5, GE-Proton, packaged profile. Build:
106120ca+ #667 + this PR (4d8e3b69), merged without conflicts. I started a new game from the intro, under the same conditions as a run of106120ca+ #667 alone just before it.exe+0x23CF683, exit 5 at 938 s[gfxhub] page fault, UTCL2 client TCP,PERMISSION_FAULTS 0x3, on avkd3d_queuethread). The kernel reset the gfx ring and the device was lost.TUXBOX_GPU_TIMING=1) reproduced it: intro again at about 9.2–9.5 fps, no watchdog, and the same page fault at 890 s.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.