loader: carry the watchdog hooks from upstream #454 (VICTORY_NO_WATCHDOG) #364
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!364
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-364"
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?
@meeyao on GitHub · 2026-11-24 23:56 UTC · original
meeyao:linux-watchdog→main· +104 −0 · 3 files · 1 commits · openThe title ends its own process when it decides the GPU has stopped making progress: a deliberate
mov dword [0], imm32at+0x23cf683, called from+0x2215c35, about 6–8 minutes after the world starts (earlier during loading on a cold pipeline compile).This carries the opt-in
VICTORY_NO_WATCHDOGhooks from upstream Marvisak/VIctory #454. They check the build hash (b99f876b74d4a77f) and the exact bytes, jump over the call, and NOP the deliberate fault. Off unless the variable is set; if #454 lands upstream this can be dropped in its favour.Evidence:
+0x23cf683; with these hooks the first cold compile became a single 122 s frame and the lit opening scene rendered at ~310 ms/frame.+0x23cf683after 6–8 minutes; with the hooks the world kept running.Do not patch the watchdog thread's entry instead. That was tried: it stops the kills but the title then never draws (0 shaders translated, 0 frames). The comment in
hooks.rsrecords it.Checked with
cargo xwin check --all-targets -p victory-loader --target x86_64-pc-windows-msvc.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.