Keep pending texture changes when queues fill #137

Merged
TaynanGT merged 1 commit from upstream-pr/137 into main 2026-11-27 03:55:11 +00:00
TaynanGT commented 2026-11-27 03:47:05 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T03:47:05Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5520828353 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/137). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T03:47:05Z. --- 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).
chatgpt-codex-connector[bot] commented 2026-11-27 03:47:23 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T03:47:23Z.


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.

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