Skip to content

GPU: isolate pipeline completion wakeups and prevent stale frame budget resets - #398

Open
VlREX wants to merge 1 commit into
fxceless:mainfrom
VlREX:virex/pipeline-wait-isolation
Open

VlREX wants to merge 1 commit into
fxceless:mainfrom
VlREX:virex/pipeline-wait-isolation

Conversation

@VlREX

@VlREX VlREX commented Nov 25, 2026

Copy link
Copy Markdown

Summary

During startup and streaming, pending pipeline compilation uses a global completion condition variable, waking unrelated pipeline waiters on each completion. Use per-pipeline completion notifications with the same publication protocol. Also prevent delayed callers from older frames resetting the newer frame's pipeline wait budget. Retain configured wait limits, priority and draw fallback semantics.

Validation

Two Rust regression tests added for shared and nonshared budget transitions. An executed JS model checked 524,288 seeded reservation/completion events in shared mode against a separate active-reservation and completed-wait ledger with zero disagreements. Native Rust/Windows and startup frame-time tests pending; model results do not establish speedup. Per-pipeline memory overhead increases slightly. This is separate from intro texture flicker (#269/#343), not a verified visual fix. No game data or new dependencies. AI-assisted (ChatGPT).

@VlREX
VlREX marked this pull request as ready for review November 25, 2026 00:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
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-25T00:45:23.660082Z 4da507c Draft marked ready
ℹ️ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant