Keep streamed textures current and present packed colour frames #365

Manually merged
github merged 1 commit from github-bot/gh-365 into main 2026-11-27 20:24:15 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 19:56 UTC · original
TaynanGT:fix/render-review-nov27 → main · +200 −82 · 4 files · 1 commits · merged 2026-11-27 20:21 UTC

This fixes four places where the renderer could lose texture updates, hold a stale frame or leave a draw waiting for a pipeline.

  • Keep every changed texture range covered when writes pile up before a bake. Select only the batch the upload pass can serve and preserve the retry and first-upload order.
  • Check the interior of a texture reservation when the first page is missing. Two readable pages between holes now count as 8,192 bytes. DexNom documented the sparse mapping case in 921d8d3.
  • Pass a single sampleable plane through the SDR compositor when DXGI cannot present its format directly. In a sequence of eight frames on an RTX 4090, the old presenter issued two presents. This change issued all eight, including the six R11G11B10_FLOAT frames between the RGBA8 controls.
  • Reserve pipeline workers for draws under the selected machine profile. With three workers on a 32-thread machine, the old scheduler admitted up to four slow background compiles. The new limit is one.

The bake regression covers 98,304 sparse writes. I checked 1,089 combinations of retry count and batch size against the full service order. With 2,755 due slots, 1,377 retries and a batch limit of 4,096, median selection time fell from 65.3 to 41.3 microseconds over 150 paired iterations. That timing covers CPU queue selection only.

**@⁠TaynanGT** on GitHub · 2026-11-27 19:56 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/365) `TaynanGT:fix/render-review-nov27` → `main` · +200 −82 · 4 files · 1 commits · merged 2026-11-27 20:21 UTC This fixes four places where the renderer could lose texture updates, hold a stale frame or leave a draw waiting for a pipeline. - Keep every changed texture range covered when writes pile up before a bake. Select only the batch the upload pass can serve and preserve the retry and first-upload order. - Check the interior of a texture reservation when the first page is missing. Two readable pages between holes now count as 8,192 bytes. DexNom documented the sparse mapping case in [921d8d3](https://github.com/DexNom/VIctory/commit/921d8d3b43b44f3a6ca4b44095edd3c4baf10a87). - Pass a single sampleable plane through the SDR compositor when DXGI cannot present its format directly. In a sequence of eight frames on an RTX 4090, the old presenter issued two presents. This change issued all eight, including the six R11G11B10_FLOAT frames between the RGBA8 controls. - Reserve pipeline workers for draws under the selected machine profile. With three workers on a 32-thread machine, the old scheduler admitted up to four slow background compiles. The new limit is one. The bake regression covers 98,304 sparse writes. I checked 1,089 combinations of retry count and batch size against the full service order. With 2,755 due slots, 1,377 retries and a batch limit of 4,096, median selection time fell from 65.3 to 41.3 microseconds over 150 paired iterations. That timing covers CPU queue selection only.
Bound texture selection to the requested batch, keep sparse writes covered through a bake, and check the interior of a texture reservation for readable pages. Let the existing SDR compositor present sampleable packed formats and size slow precompilation to the selected worker pool.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:56:18 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 19:56 UTC · original · edited 2026-11-27 19:59 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-27T19:57:35.673272Z af7a9ed PR opened
🔒 Security Review ✅ Completed 2026-11-27T19:59:08.854155Z af7a9ed PR opened
ℹ️ 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 19:56 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/365#issuecomment-7227014385) · edited 2026-11-27 19:59 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"af7a9ed744b179e27b2e6421b0500532d2d66ab0","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"af7a9ed744b179e27b2e6421b0500532d2d66ab0","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"af7a9ed744b179e27b2e6421b0500532d2d66ab0","mergeGateEnabled":false,"pullRequestNumber":365,"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-27T19:57:35.673272Z">2026-11-27T19:57:35.673272Z</relative-time> | `af7a9ed` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T19:59:08.854155Z">2026-11-27T19:59:08.854155Z</relative-time> | `af7a9ed` | PR opened | <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>
github manually merged commit 2a577f8722 into main 2026-11-27 20:24:15 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.