No game-specific code: watchdog patches still applied every run; write-sites and VICTORY_POKE are off and deletable #265

Open
opened 2026-12-02 19:27:23 +00:00 by github-bot · 4 comments
Owner

@⁠TheRifai on GitHub · 2026-12-02 18:46 UTC · original

Finding (new TASKS item "No game-specific code, patches or hacks", line ~991)

Seen on: main a58cd90 (code read) with a 75 s house run on 88d66ae (/home/shlong/Documents/VKtory-capture/regress88-A1/20261202-185031/).

Current state of the inventory, with local evidence:

  • Gone: pool-empty assert patches (#212) and port-2 descriptor-store patches (deleted on main after #201 was refused).
  • Applied in every run: victory-loader::windows logs title watchdog hooks applied=2 for the title executable (and 0 for each DLL) — the two hardcoded WATCHDOG offsets in hooks.rs are active on every start. Removing them still needs the cause of #16 fixed first, as TASKS says.
  • Off by default and unreachable in normal runs: VICTORY_WRITE_SITES (write_sites.rs, titlewrite.rs) and VICTORY_POKE (apps/victory/src/run.rs:284); a normal run has zero write-site lines. These are the smallest deletions in the inventory (~1,400 lines for the first pair, a few dozen for VICTORY_POKE).
  • Private-only copies: not testable here (public tree only); the task already lists which public equivalents exist.
  • console_insn rewrites: generic fault-driven emulation stays; the VICTORY_PATCH_WAITS/VICTORY_PATCH_CLZERO code rewrites need an Intel CPU to measure the emulation-only cost, which I do not have.

I am not pushing a deletion PR: the account's branch pushes are currently blocked (REST ref creation 404, GraphQL FORBIDDEN, OAuth token missing workflow scope, no SSH key), and I will not force-push or bypass it. This issue records the reachable/unreachable split so the two off-by-default groups can be deleted once pushes are restored; the watchdog group needs the #16 cause first.

**@⁠TheRifai** on GitHub · 2026-12-02 18:46 UTC · [original](https://github.com/vktory6/VKtory/issues/265) ## Finding (new TASKS item "No game-specific code, patches or hacks", line ~991) **Seen on:** main `a58cd90` (code read) with a 75 s house run on `88d66ae` (`/home/shlong/Documents/VKtory-capture/regress88-A1/20261202-185031/`). Current state of the inventory, with local evidence: - **Gone:** pool-empty assert patches (#212) and port-2 descriptor-store patches (deleted on main after #201 was refused). - **Applied in every run:** `victory-loader::windows` logs `title watchdog hooks applied=2` for the title executable (and `0` for each DLL) — the two hardcoded `WATCHDOG` offsets in `hooks.rs` are active on every start. Removing them still needs the cause of #16 fixed first, as TASKS says. - **Off by default and unreachable in normal runs:** `VICTORY_WRITE_SITES` (`write_sites.rs`, `titlewrite.rs`) and `VICTORY_POKE` (`apps/victory/src/run.rs:284`); a normal run has zero write-site lines. These are the smallest deletions in the inventory (~1,400 lines for the first pair, a few dozen for `VICTORY_POKE`). - **Private-only copies:** not testable here (public tree only); the task already lists which public equivalents exist. - **`console_insn` rewrites:** generic fault-driven emulation stays; the `VICTORY_PATCH_WAITS`/`VICTORY_PATCH_CLZERO` code rewrites need an Intel CPU to measure the emulation-only cost, which I do not have. I am not pushing a deletion PR: the account's branch pushes are currently blocked (REST ref creation 404, GraphQL FORBIDDEN, OAuth token missing `workflow` scope, no SSH key), and I will not force-push or bypass it. This issue records the reachable/unreachable split so the two off-by-default groups can be deleted once pushes are restored; the watchdog group needs the #16 cause first.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 19:27:23 +00:00
Author
Owner

@⁠TheRifai on GitHub · 2026-12-02 18:55 UTC · original

Smallest item from this inventory is prepared locally but cannot be pushed yet: removal of VICTORY_POKE (apps/victory/src/run.rs, 29 lines, no callers after the edit). tools/build.sh exit 0; cargo test -p vkback --test policy 6/6. A/B/B/A on main a58cd90 against the patched build, house rt3, 70 s, GE-Proton11-16: control 28.39/27.34 fps, patched 25.19/27.94 — inconsistent (the switch is off by default in both, so no behaviour change expected). Evidence /home/shlong/Documents/VKtory-capture/removepoke-{control,run,run2,control2}/. Branch remove-poke is ready at /home/shlong/Documents/VKtory-removepoke; pushes are still blocked by the account's missing workflow scope / ref-creation permission, so no PR is opened from here.

**@⁠TheRifai** on GitHub · 2026-12-02 18:55 UTC · [original](https://github.com/vktory6/VKtory/issues/265#issuecomment-7355355357) Smallest item from this inventory is prepared locally but cannot be pushed yet: removal of `VICTORY_POKE` (`apps/victory/src/run.rs`, 29 lines, no callers after the edit). `tools/build.sh` exit 0; `cargo test -p vkback --test policy` 6/6. A/B/B/A on main `a58cd90` against the patched build, house `rt3`, 70 s, GE-Proton11-16: control 28.39/27.34 fps, patched 25.19/27.94 — inconsistent (the switch is off by default in both, so no behaviour change expected). Evidence `/home/shlong/Documents/VKtory-capture/removepoke-{control,run,run2,control2}/`. Branch `remove-poke` is ready at `/home/shlong/Documents/VKtory-removepoke`; pushes are still blocked by the account's missing `workflow` scope / ref-creation permission, so no PR is opened from here.
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 19:19 UTC · original

Thanks for the inventory and the reachable/unreachable split. It matches what we found.

Already done: github.com/vktory6/VKtory@73304fd deletes write_sites, titlewrite (with its decoder and the guards' "beside" mechanism) and VICTORY_POKE, about 1,950 lines. That covers both of your "off by default" groups, so there's nothing to push for those.

What's left stays in the TASKS item "No game-specific code, patches or hacks", which tracks each piece:

  • Watchdog patches (hooks.rs WATCHDOG, applied on every start): they stay on purpose until the cause behind #16 is fixed (what the title's own hang check measures, and why our timing trips it). When that happens is an open decision on our side, so no date.
  • console_insn rewrites (VICTORY_PATCH_WAITS / VICTORY_PATCH_CLZERO): the emulation stays; whether the rewrite can go needs the emulation-only cost measured on an Intel CPU.
  • Private-only copies: on our side. Making them the public files is in the same item.

I'm keeping this issue open as the tracker for those.

**@⁠vktory6** on GitHub · 2026-12-02 19:19 UTC · [original](https://github.com/vktory6/VKtory/issues/265#issuecomment-7355983344) Thanks for the inventory and the reachable/unreachable split. It matches what we found. **Already done:** https://github.com/vktory6/VKtory/commit/73304fd deletes `write_sites`, `titlewrite` (with its decoder and the guards' "beside" mechanism) and `VICTORY_POKE`, about 1,950 lines. That covers both of your "off by default" groups, so there's nothing to push for those. **What's left** stays in the TASKS item "No game-specific code, patches or hacks", which tracks each piece: - **Watchdog patches** (`hooks.rs` `WATCHDOG`, applied on every start): they stay on purpose until the cause behind #16 is fixed (what the title's own hang check measures, and why our timing trips it). When that happens is an open decision on our side, so no date. - **`console_insn` rewrites** (`VICTORY_PATCH_WAITS` / `VICTORY_PATCH_CLZERO`): the emulation stays; whether the rewrite can go needs the emulation-only cost measured on an Intel CPU. - **Private-only copies:** on our side. Making them the public files is in the same item. I'm keeping this issue open as the tracker for those.
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 19:33 UTC · original

Related discussion: https://github.com/vktory6/VKtory/discussions/264 ("Our own runtime vs Wine") is where the Wine/Proton side of these items is being discussed.

**@⁠vktory6** on GitHub · 2026-12-02 19:33 UTC · [original](https://github.com/vktory6/VKtory/issues/265#issuecomment-7356375910) Related discussion: https://github.com/vktory6/VKtory/discussions/264 ("Our own runtime vs Wine") is where the Wine/Proton side of these items is being discussed.
Author
Owner

@⁠TheRifai on GitHub · 2026-12-02 19:55 UTC · original

Confirmed: I dropped my local VICTORY_POKE removal as duplicate work of 73304fd. Nothing to push for the off-by-default group. The remaining three pieces are correctly tracked here (watchdog needs the #16 cause; console_insn rewrites need an Intel CPU measurement; private-only copies are on your side).

**@⁠TheRifai** on GitHub · 2026-12-02 19:55 UTC · [original](https://github.com/vktory6/VKtory/issues/265#issuecomment-7356936375) Confirmed: I dropped my local VICTORY_POKE removal as duplicate work of 73304fd. Nothing to push for the off-by-default group. The remaining three pieces are correctly tracked here (watchdog needs the #16 cause; console_insn rewrites need an Intel CPU measurement; private-only copies are on your side).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#265
No description provided.