Pipelines: VICTORY_HELD_FRAME_MS=<ms> stops pipeline waits once a frame has gone that long without a present, so a cold library never holds it to the title's 30 s watchdog #1124

Manually merged
github merged 4 commits from github-bot/gh-1124 into main 2026-11-29 08:21:27 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 13:43 UTC · original
101Leafy:nv/held-frame → main · +86 −19 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC

Problem

The title's GPU watchdog (the thread at image+0x2215a60) looks at the frame tick once a second and writes to address 0 after 30 looks with no new frame. Pipeline wait budgets are per title frame, so on a cold library a frame that is held can still wait a whole budget for each of several passes, plus the screen budget, and stay held past 30 s. The run then ends with the watchdog's write, and nothing in the log says pipeline waits held it.

Change

VICTORY_HELD_FRAME_MS=n notes the time of each present (Meter::frame calls pipeline::presented). Once n ms have gone by since the last present, wait returns at once until the next present, and the draw goes ahead without the pipeline the way it does past a spent budget. A wait that starts before the limit is cut to what is left of it. One warning per held frame gives the time held and how many pipelines are still being made. Unset or 0: off, as before.

Tested

Built. While the switch is unset, the only new work is reading it at each present and wait.

Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.

**@⁠101Leafy** on GitHub · 2026-11-28 13:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1124) `101Leafy:nv/held-frame` → `main` · +86 −19 · 12 files · 4 commits · merged 2026-11-29 08:16 UTC ### Problem The title's GPU watchdog (the thread at image+0x2215a60) looks at the frame tick once a second and writes to address 0 after 30 looks with no new frame. Pipeline wait budgets are per title frame, so on a cold library a frame that is held can still wait a whole budget for each of several passes, plus the screen budget, and stay held past 30 s. The run then ends with the watchdog's write, and nothing in the log says pipeline waits held it. ### Change `VICTORY_HELD_FRAME_MS=n` notes the time of each present (`Meter::frame` calls `pipeline::presented`). Once n ms have gone by since the last present, `wait` returns at once until the next present, and the draw goes ahead without the pipeline the way it does past a spent budget. A wait that starts before the limit is cut to what is left of it. One warning per held frame gives the time held and how many pipelines are still being made. Unset or 0: off, as before. ### Tested Built. While the switch is unset, the only new work is reading it at each present and wait. Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:33:49 +00:00
github-bot force-pushed github-bot/gh-1124 from 28f2891d2f to a6c1df1349 2026-11-28 21:13:40 +00:00 Compare
github-bot changed title from Pipelines: VICTORY_HELD_FRAME_MS=<ms> stops pipeline waits once a frame has gone that long without a present, so a cold library never holds it to the title's 30 s watchdog to [pr-fix, crash, startup] Pipelines: VICTORY_HELD_FRAME_MS=<ms> stops pipeline waits once a frame has gone that long without a present, so a cold library never holds it to the title's 30 s watchdog 2026-11-28 21:25:27 +00:00
github-bot changed title from [pr-fix, crash, startup] Pipelines: VICTORY_HELD_FRAME_MS=<ms> stops pipeline waits once a frame has gone that long without a present, so a cold library never holds it to the title's 30 s watchdog to Pipelines: VICTORY_HELD_FRAME_MS=<ms> stops pipeline waits once a frame has gone that long without a present, so a cold library never holds it to the title's 30 s watchdog 2026-11-28 21:37:44 +00:00
github-bot force-pushed github-bot/gh-1124 from a6c1df1349 to 62ddb99d9c 2026-11-29 01:46:37 +00:00 Compare
github manually merged commit 6c9ad7cc52 into main 2026-11-29 08:21:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!1124
No description provided.