Skip to content

Stop the iOS display link when destroying a window - #97

Open
tryk016 wants to merge 1 commit into
Try:masterfrom
tryk016:codex/pr-tempest-ios-window-destroy
Open

Stop the iOS display link when destroying a window#97
tryk016 wants to merge 1 commit into
Try:masterfrom
tryk016:codex/pr-tempest-ios-window-destroy

Conversation

@tryk016

@tryk016 tryk016 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

implDestroyWindow is currently empty on iOS, so its display link can remain registered after the Tempest window owner is destroyed. Pending input or resize data and active touch IDs can also survive until a later window is created.

Clear the owner and pending-frame flag first, invalidate the display link, destroy the queued event payload and clear the tracked touches. The event cleanup covers every event type currently queued by this backend.

Validation:

  • Release builds pass for iPhoneOS arm64 and iPhone Simulator arm64 at iOS 15.0
  • Clang static analysis reports no new issue
  • an integrated probe on an iPhone 15 Pro Max destroys the first window, creates a second one and renders it successfully

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