Keep pending texture changes when queues fill #137

Manually merged
github merged 1 commit from github-bot/gh-137 into main 2026-11-27 03:59:01 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 03:47 UTC · original
TaynanGT:fix/vi-br-texture-change-queue → main · +56 −28 · 2 files · 1 commits · merged 2026-11-27 03:55 UTC

The remap and page-write queues cleared their pending entries when they reached 32,768 ranges. That could leave an already uploaded texture using old bytes after its title memory changed.

Both queues now merge overlapping ranges and coalesce neighboring pairs as needed. Every change stays covered within the existing queue limit, and the diagnostics count the entries compacted.

I reproduced the issue with 32,771 disjoint changes. The updated test covers every one. All 429 enabled GPU unit tests and the graphics crate’s diagnostics Clippy check passed on Windows.

Adapted from edsuuu’s VI-BR-PORT change, which follows gomeaw’s original fix.

**@⁠TaynanGT** on GitHub · 2026-11-27 03:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/137) `TaynanGT:fix/vi-br-texture-change-queue` → `main` · +56 −28 · 2 files · 1 commits · merged 2026-11-27 03:55 UTC The remap and page-write queues cleared their pending entries when they reached 32,768 ranges. That could leave an already uploaded texture using old bytes after its title memory changed. Both queues now merge overlapping ranges and coalesce neighboring pairs as needed. Every change stays covered within the existing queue limit, and the diagnostics count the entries compacted. I reproduced the issue with 32,771 disjoint changes. The updated test covers every one. All 429 enabled GPU unit tests and the graphics crate’s diagnostics Clippy check passed on Windows. Adapted from [edsuuu’s VI-BR-PORT change](https://github.com/edsuuu/VI-BR-PORT/commit/87dc3075c735acf9032cc41629ea44bbc6f0d0c8), which follows [gomeaw’s original fix](https://github.com/fxceless/victory-fork/pull/896).
Coalesce full remap and page-write queues without losing coverage of
changed memory. Keep their existing bound and report compaction in the
diagnostics. Cover the overflow with a disjoint-range regression test.

Adapted from edsuuu/VI-BR-PORT commit 87dc3075c735acf9032cc41629ea44bbc6f0d0c8.
The source port follows fxceless/victory-fork #896.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:48:01 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 03:47 UTC · original · edited 2026-11-27 03:50 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-27T03:48:31.078384Z 53a1f16 PR opened
🔒 Security Review ✅ Completed 2026-11-27T03:50:00.273489Z 53a1f16 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 03:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/137#issuecomment-7209272914) · edited 2026-11-27 03:50 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"53a1f1628991de0dc514863b5d0c755e3e24b1f9","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"53a1f1628991de0dc514863b5d0c755e3e24b1f9","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"53a1f1628991de0dc514863b5d0c755e3e24b1f9","mergeGateEnabled":false,"pullRequestNumber":137,"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-27T03:48:31.078384Z">2026-11-27T03:48:31.078384Z</relative-time> | `53a1f16` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T03:50:00.273489Z">2026-11-27T03:50:00.273489Z</relative-time> | `53a1f16` | 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 e2ce77efab into main 2026-11-27 03:59:01 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.