loader: carry the watchdog hooks from upstream #454 (VICTORY_NO_WATCHDOG) #364

Open
meeyao wants to merge 1 commit from upstream-pr/364 into main
meeyao commented 2026-11-24 23:56:36 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by meeyao on 2026-11-24T23:56:36Z.


The title ends its own process when it decides the GPU has stopped making progress: a deliberate mov dword [0], imm32 at +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_WATCHDOG hooks 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:

  • @Peppacodes on Windows (RTX 5080): as published, the title killed itself during loading at +0x23cf683; with these hooks the first cold compile became a single 122 s frame and the lit opening scene rendered at ~310 ms/frame.
  • On Linux/Proton every run ended at +0x23cf683 after 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.rs records it.

Checked with cargo xwin check --all-targets -p victory-loader --target x86_64-pc-windows-msvc.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6593894101 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/364). Originally posted by [meeyao](https://github.com/meeyao) on 2026-11-24T23:56:36Z. --- The title ends its own process when it decides the GPU has stopped making progress: a deliberate `mov dword [0], imm32` at `+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_WATCHDOG` hooks 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: - @Peppacodes on Windows (RTX 5080): as published, the title killed itself during loading at `+0x23cf683`; with these hooks the first cold compile became a single 122 s frame and the lit opening scene rendered at ~310 ms/frame. - On Linux/Proton every run ended at `+0x23cf683` after 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.rs` records it. Checked with `cargo xwin check --all-targets -p victory-loader --target x86_64-pc-windows-msvc`.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/364:upstream-pr/364'
git switch 'upstream-pr/364'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/364'
git switch 'upstream-pr/364'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/364'
git switch 'upstream-pr/364'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/364'
git switch 'main'
git merge --squash 'upstream-pr/364'
git switch 'main'
git merge --ff-only 'upstream-pr/364'
git switch 'main'
git merge 'upstream-pr/364'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!364
No description provided.