Keep streamed textures current and present packed colour frames #365

Merged
TaynanGT merged 1 commit from upstream-pr/365 into main 2026-11-27 20:21:28 +00:00
TaynanGT commented 2026-11-27 19:56:03 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T19:56:03Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5532354141 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/365). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T19:56:03Z. --- 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.
chatgpt-codex-connector[bot] commented 2026-11-27 19:56:12 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T19:56:12Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7227014385 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/365#issuecomment-7227014385). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T19:56:12Z. --- <!-- 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>
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!365
No description provided.