Send: VICTORY_SEND_PASS_AWAY=1 makes the pass for changed words off the submitting thread, copies meanwhile #1123

Merged
101Leafy merged 4 commits from upstream-pr/1123 into main 2026-11-29 08:16:57 +00:00
101Leafy commented 2026-11-28 13:43:04 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T13:43:04Z.


Problem

The pass that sends changed words to the card is made on the submitting thread at its first use. When that happens while pipeline workers are compiling, the driver's create can wait on its shader cache lock for a long time. The title's present waits on the submitting thread, so a slow create there can run past the title's 30 s watchdog.

Change

VICTORY_SEND_PASS_AWAY=1 makes the pass on a thread of its own (victory-send-pass) at first use. Until it is made, pass() returns None and the changed words go up as copies, the same path as VICTORY_SEND_OWN=0. The time taken is logged once. If the thread cannot start, the pass is made in place as before. The create moved into make_pass unchanged. Off by default.

Tested

Built. It only changes anything when set.

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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540725735 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1123). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T13:43:04Z. --- ### Problem The pass that sends changed words to the card is made on the submitting thread at its first use. When that happens while pipeline workers are compiling, the driver's create can wait on its shader cache lock for a long time. The title's present waits on the submitting thread, so a slow create there can run past the title's 30 s watchdog. ### Change `VICTORY_SEND_PASS_AWAY=1` makes the pass on a thread of its own (`victory-send-pass`) at first use. Until it is made, `pass()` returns `None` and the changed words go up as copies, the same path as `VICTORY_SEND_OWN=0`. The time taken is logged once. If the thread cannot start, the pass is made in place as before. The create moved into `make_pass` unchanged. Off by default. ### Tested Built. It only changes anything when set. Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.
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
trustno1-coder/VIctory-NVIDIA!1123
No description provided.