Render egui surfaces immediately after Wayland configure - #4
Merged
Merged
Conversation
Contributor
Author
|
Hey @Ciantic, do you mind merging and releasing this one if its okay? I'd like to update centerpiece to this version :) |
Owner
|
@friedow okay, I merged it. Will test and publish to crates |
Owner
|
I published 0.3.2 |
Contributor
Author
|
Thank you :) |
friedow
added a commit
to friedow/centerpiece
that referenced
this pull request
Sep 22, 2026
Centerpiece could take about one second to become visible on external displays under Niri. The issue was caused by waiting for an initial Wayland frame callback before painting the first buffer. I've fixed this issue in wayapp and opened a [PR over there](Ciantic/wayapp#4). This PR depends on the wayapp change and is waiting for that to be merged.
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.
Problem
On external displays under niri, wayapp windows could take approximately one second to become visible. The initial Wayland frame callback was delayed by niri because wayapp committed an empty surface and waited for the callback before rendering the first buffer.
Specifically, I stumbled upon this issue with centerpiece having a noticeable delay while opening on external screens.
Solution
Render and present the first egui frame immediately after receiving the configure event. Frame callbacks are still requested afterward for subsequent frames.
Disclaimer: A LLM has been used in the creation of this PR.