Reduce CPU work when returning GPU readbacks #166

Manually merged
github merged 2 commits from github-bot/gh-166 into main 2026-11-27 05:29:10 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 05:23 UTC · original
TaynanGT:perf/readback-cpu → main · +221 −68 · 4 files · 2 commits · merged 2026-11-27 05:28 UTC

Build one sorted set of protected ranges per readback and reuse it for all the fetched pieces. The landing workers no longer allocate a vector of addresses for each run, and shadow updates reuse the storage from the first changed page.

Texture readbacks reuse pixel storage and tiling plans on the landing worker. The plan key describes the swizzle and the subresource geometry. The tests check tiled bytes against their expected offsets, compare the new merge with a piece-by-piece merge, and verify that a closed recording keeps its own readback lease.

Both Clippy configurations and 25 focused tests passed locally.

**@⁠TaynanGT** on GitHub · 2026-11-27 05:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/166) `TaynanGT:perf/readback-cpu` → `main` · +221 −68 · 4 files · 2 commits · merged 2026-11-27 05:28 UTC Build one sorted set of protected ranges per readback and reuse it for all the fetched pieces. The landing workers no longer allocate a vector of addresses for each run, and shadow updates reuse the storage from the first changed page. Texture readbacks reuse pixel storage and tiling plans on the landing worker. The plan key describes the swizzle and the subresource geometry. The tests check tiled bytes against their expected offsets, compare the new merge with a piece-by-piece merge, and verify that a closed recording keeps its own readback lease. Both Clippy configurations and 25 focused tests passed locally.
Retain the tiling geometry and pixel storage for repeated readbacks on the same worker. Build a single index of protected ranges for the fetched pieces and keep the separate texture and buffer timings.
Compact joined spans in their original allocation. Translate the first page of title writes in place and move its range storage into the batch for the later pages.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 05:24:01 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 05:23 UTC · original · edited 2026-11-27 05:27 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-27T05:25:19.961668Z 876a02f PR opened
🔒 Security Review ✅ Completed 2026-11-27T05:27:36.303041Z 876a02f 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 05:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/166#issuecomment-7210599922) · edited 2026-11-27 05:27 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"876a02f8caec4be576818d3682e565428965db2b","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"876a02f8caec4be576818d3682e565428965db2b","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"876a02f8caec4be576818d3682e565428965db2b","mergeGateEnabled":false,"pullRequestNumber":166,"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-27T05:25:19.961668Z">2026-11-27T05:25:19.961668Z</relative-time> | `876a02f` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T05:27:36.303041Z">2026-11-27T05:27:36.303041Z</relative-time> | `876a02f` | 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 a9612459bb into main 2026-11-27 05:29:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.