Prepare the head blend-shape pipeline before its first dispatch #372

Merged
TaynanGT merged 5 commits from upstream-pr/372 into main 2026-11-27 20:31:14 +00:00
TaynanGT commented 2026-11-27 20:17:15 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T20:17:15Z.


The first dispatch that builds the head blend-shape map can arrive while its compute pipeline is still compiling. On an RTX 4090 with the Series S profile, I measured 29.83 seconds between the first bind and pipeline creation in a run with missing facial geometry.

Queue that pipeline at creation and give it priority on the existing workers. A direct or indirect dispatch can wait up to two seconds for it. A worker refusal wakes the caller. If the wait expires, subsequent dispatches poll for the result. The worker can still publish a usable pipeline later. Set VICTORY_HEAD_MAP_WAIT=0 for the normal queue order and frame budget.

In a local build with early scheduling, the pipeline was ready 48.55 seconds before the first bind. The first dispatch reported host_pipeline=true. A 3840×2160 capture taken before frame generation showed the passenger with complete facial geometry. An earlier build also rendered the face when compilation finished quickly. The local build included other changes. This PR isolates pipeline scheduling and readiness.

The Windows priority and worker-failure tests passed on the earlier local build. Tests in this revision cover the production shader hash, the control setting, timeout, refusal and late publication. The first-dispatch trace records readiness in either mode. This branch includes the slow-worker scheduling change from #365.

Prior work: avatarmanz/VIctory-7900XTX #166.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5532581931 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/372). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T20:17:15Z. --- The first dispatch that builds the head blend-shape map can arrive while its compute pipeline is still compiling. On an RTX 4090 with the Series S profile, I measured 29.83 seconds between the first bind and pipeline creation in a run with missing facial geometry. Queue that pipeline at creation and give it priority on the existing workers. A direct or indirect dispatch can wait up to two seconds for it. A worker refusal wakes the caller. If the wait expires, subsequent dispatches poll for the result. The worker can still publish a usable pipeline later. Set `VICTORY_HEAD_MAP_WAIT=0` for the normal queue order and frame budget. In a local build with early scheduling, the pipeline was ready 48.55 seconds before the first bind. The first dispatch reported `host_pipeline=true`. A 3840×2160 capture taken before frame generation showed the passenger with complete facial geometry. An earlier build also rendered the face when compilation finished quickly. The local build included other changes. This PR isolates pipeline scheduling and readiness. The Windows priority and worker-failure tests passed on the earlier local build. Tests in this revision cover the production shader hash, the control setting, timeout, refusal and late publication. The first-dispatch trace records readiness in either mode. This branch includes the slow-worker scheduling change from #365. Prior work: [avatarmanz/VIctory-7900XTX #166](https://github.com/avatarmanz/VIctory-7900XTX/pull/166).
chatgpt-codex-connector[bot] commented 2026-11-27 20:31:04 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T20:31:04Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T20:32:05.573080Z 3024609 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-27T20:33:53.111016Z 3024609 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7227581437 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/372#issuecomment-7227581437). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T20:31:04Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"3024609b188c6c6dfdb9bb230c9284f101d6584a","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"3024609b188c6c6dfdb9bb230c9284f101d6584a","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"3024609b188c6c6dfdb9bb230c9284f101d6584a","mergeGateEnabled":false,"pullRequestNumber":372,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T20:32:05.573080Z">2026-11-27T20:32:05.573080Z</relative-time> | `3024609` | Draft marked ready | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T20:33:53.111016Z">2026-11-27T20:33:53.111016Z</relative-time> | `3024609` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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
TaynanGT/Vice-Tay!372
No description provided.