-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Improve UX when falling back between Display Servers #91780
Conversation
2d1aff9
to
3b28455
Compare
All right I implemented all the suggestions and added an extra |
d10ce06
to
fd00dbf
Compare
Before it was a bit unclear on what was happening, since a display server has to fail to fall back and so the user would be left with an error _and_ a (hopefully) running game. Should make the experience more pleasant on Linux/BSD now that we have two display servers.
Before, they would always complain even if there was no attempt at initializing them (e.g. because there's no X11 display). While we're at it, this patch also adds a specific message for OpenGL ES and rewords "OpenGLES" to "OpenGL ES" in an error, for consistency (AFAIK we either say "GLES" or "OpenGL ES").
fd00dbf
to
33e414c
Compare
This brings it to parity with the X11 backend.
Rebased! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine.
Handling fallbacks and messages seems to be a bit different in the different platforms, it probably should be unified at some point.
Thanks! |
The current UX for DS fallbacks is a bit confusing, as there's quite a bit of (possibly unrelated) errors and then a working game:
Example log from X11 to Wayland
This patchset1 aims to improve the situation where possible, without introducing any big change yet:
From core, we display a warning whenever a fallback is being attempted;
From X11, we alert the user about a failed rendering driver initialization only if it was actually attempted;
From Wayland we actually implement the aforementioned alerts, as they were missing (oops).
New log when falling back from X11 to Wayland
It's not perfect by any means (the DRI_PRIME stuff is especially annoying), but those were some fairly low-hanging fruits and so this will do in the meantime.
Footnotes
Yes, sorry for making three commits but they feel all equally sensitive and unrelated. Please tell me if a single squashed commit is preferred. ↩