GPU: index pending relay flight ranges without changing copyback semantics #448

Open
VlREX wants to merge 1 commit from upstream-pr/448 into main
VlREX commented 2026-11-25 00:58:16 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by VlREX on 2026-11-25T00:58:16Z.


Change

Replace the linear vector lookup for exact pending-flight range declarations and completions with BTreeMap entries. Preserve counts, last submission identifiers, overlapping-range independence and release order. No textures, shader instructions, draws, synchronization policy or copyback contents are omitted or changed.

Validation

Added a 65,536-operation Rust differential regression against the original vector implementation. Executed a separate JavaScript Map model against the vector: 131,072 operations, 196,552 range queries, zero disagreements; 52,449,991 linear comparisons in the old model, up to 519 live entries. This is semantic model validation, not a Rust benchmark or measured FPS gain. Small tables may incur worse allocation/locality costs. Native tests and identical-scene relay A/B pending.

Based on a803c87c. AI-assisted (ChatGPT).

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594651517 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/448). Originally posted by [VlREX](https://github.com/VlREX) on 2026-11-25T00:58:16Z. --- ## Change Replace the linear vector lookup for exact pending-flight range declarations and completions with BTreeMap entries. Preserve counts, last submission identifiers, overlapping-range independence and release order. No textures, shader instructions, draws, synchronization policy or copyback contents are omitted or changed. ## Validation Added a 65,536-operation Rust differential regression against the original vector implementation. Executed a separate JavaScript Map model against the vector: 131,072 operations, 196,552 range queries, zero disagreements; 52,449,991 linear comparisons in the old model, up to 519 live entries. This is semantic model validation, not a Rust benchmark or measured FPS gain. Small tables may incur worse allocation/locality costs. Native tests and identical-scene relay A/B pending. Based on a803c87c. AI-assisted (ChatGPT).
chatgpt-codex-connector[bot commented 2026-11-25 01:12:06 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:58:29Z.


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-25T01:00:12.697884Z a364beb 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:fxceless/victory-fork:comment:7149078700 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/448#issuecomment-7149078700). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T00:58:29Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"a364bebc9e5238678c11d8f22170a3b541ac62f5","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <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-25T01:00:12.697884Z">2026-11-25T01:00:12.697884Z</relative-time> | `a364beb` | 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>
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/448:upstream-pr/448'
git switch 'upstream-pr/448'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/448'
git switch 'upstream-pr/448'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/448'
git switch 'upstream-pr/448'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/448'
git switch 'main'
git merge --squash 'upstream-pr/448'
git switch 'main'
git merge --ff-only 'upstream-pr/448'
git switch 'main'
git merge 'upstream-pr/448'
git push origin 'main'
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
fxceless/victory-fork!448
No description provided.