Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wayland: Only dispatch frame events in Wayland_GLES_SwapWindow #4815

Merged
merged 1 commit into from Oct 7, 2021

Conversation

vainiovano
Copy link
Contributor

Dispatching all events in Wayland_GLES_SwapWindow leads to resizes being acked before the program has a chance to handle the resize. This change reduces jumping on fullscreen transition with apps that call SDL_PollEvent before issuing any render calls.

Existing Issue(s)

Related to #4563

Dispatching all events in Wayland_GLES_SwapWindow leads to resizes being
acked before the program has a chance to handle the resize. This change
reduces jumping on fullscreen transition with apps that call
SDL_PollEvent before issuing any render calls.
@flibitijibibo
Copy link
Collaborator

Will test this now, but at a glance I'm now realizing we shouldn't be dispatching the whole display anyway since that probably causes conflicts with other queues (would certainly explain why Transistor likes to hang so much). Even if the timing is still wrong, that part is probably worth applying anyway.

Copy link
Collaborator

@flibitijibibo flibitijibibo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work for me, sadly doesn't fix Transistor or #4571 like I hoped it would but this is still a good idea.

@flibitijibibo
Copy link
Collaborator

CC @dos1, does this fix the Weston error?

@dos1
Copy link
Contributor

dos1 commented Oct 7, 2021

It does not - and I don't see how it could given the wayland-egl behavior observed in #4563. However, this is not a reason to not accept this change ;)

@flibitijibibo flibitijibibo merged commit ad52057 into libsdl-org:main Oct 7, 2021
@vainiovano vainiovano deleted the dispatch-only-frame branch October 8, 2021 06:30
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.

None yet

3 participants