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

Manually merged
github merged 5 commits from github-bot/gh-372 into gh-pr/372/base 2026-11-27 20:35:53 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 20:17 UTC · original
TaynanGT:fix/head-map-first-dispatch → main · +257 −43 · 4 files · 5 commits · merged 2026-11-27 20:31 UTC

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.

**@⁠TaynanGT** on GitHub · 2026-11-27 20:17 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/372) `TaynanGT:fix/head-map-first-dispatch` → `main` · +257 −43 · 4 files · 5 commits · merged 2026-11-27 20:31 UTC 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).
Front-load the known head blend-shape map in the existing pipeline worker queue. Direct and indirect compute dispatches wait for the result of that pipeline outside the ordinary frame budget. Driver refusal and a caught compilation panic publish failure and wake the caller. Keep the prior behavior available for paired tests.

Related: https://github.com/avatarmanz/VIctory-7900XTX/pull/166
Keep the first dispatch timing in both test arms and avoid logging every character that uses the same compute pipeline. Test the production shader classification and dispatch policy with the real hash, including the ordinary frame-budget path when the wait is disabled.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:18:37 +00:00
Keep the pipeline at the front of the worker queue and share a two-second dispatch deadline across frames and copies. A timeout does not consume or overwrite the worker result. A driver refusal wakes the dispatch immediately, and failure to start a worker leaves the title thread free to continue.
# Conflicts:
#	crates/victory-gpu/src/pipeline/make.rs
github-bot changed target branch from main to gh-pr/372/base 2026-11-27 20:35:51 +00:00
github manually merged commit 3024609b18 into gh-pr/372/base 2026-11-27 20:35:53 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 20:31 UTC · original · edited 2026-11-27 20:33 UTC

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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 20:31 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/372#issuecomment-7227581437) · edited 2026-11-27 20:33 UTC <!-- 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>
This discussion has been locked. Commenting is limited to contributors.
No description provided.