Repository navigation
Present egui's frame in step with embedded views below it on macOS - #8945
Merged
Merged
Conversation
|
Preview available at https://egui-pr-preview.github.io/pr/8945-emilkpresent-with-views-below View snapshot changes at kitdiff |
emilk
commented
Nov 25, 2026
emilk
commented
Nov 25, 2026
emilk
marked this pull request as ready for review
November 25, 2026 14:21
emilk
enabled auto-merge (squash)
November 25, 2026 14:23
auto-merge was automatically disabled
November 25, 2026 14:25
Pull Request is not mergeable
emilk
added a commit
to rerun-io/egui_crates
that referenced
this pull request
Nov 25, 2026
… transaction eframe now sets `presentsWithTransaction` itself (emilk/egui#8945), so the backend no longer touches egui's Metal layer. It returns an error if egui doesn't render with Metal.
emilk
force-pushed
the
emilk/present-with-views-below
branch
from
November 25, 2026 14:33
70c78c6 to
fd551ea
Compare
emilk
added a commit
to rerun-io/egui_crates
that referenced
this pull request
Nov 25, 2026
emilk
added a commit
to rerun-io/egui_crates
that referenced
this pull request
Nov 25, 2026
emilk
added a commit
to rerun-io/egui_crates
that referenced
this pull request
Nov 25, 2026
… transaction eframe now sets `presentsWithTransaction` itself (emilk/egui#8945), so the backend no longer touches egui's Metal layer. It returns an error if egui doesn't render with Metal.
emilk
added a commit
to rerun-io/egui_crates
that referenced
this pull request
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A native view below egui's surface (an
egui::EmbeddedView, e.g. aWKWebView) moves in a Core Animation transaction. egui's Metal frame was presented outside of it, so the frame that cleared the view's new rect could appear after the view had moved, and the window background showed through the old rect.This adds
egui_wgpu::winit::Painter::set_present_with_transaction, which setspresentsWithTransactionon the Metal layer. eframe turns it on for a viewport while that viewport shows a view below egui's surface, and off again when none is left. Until nowegui_webviewset the flag on egui's layer from the outside.It does nothing on other platforms, and it needs the existing
macos-window-resize-jitter-fixfeature.🤖 Generated with Claude Code