-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Software renderer doesn't work properly under Wayland #52095
Comments
I was annoyed by this many weeks ago, and it is sad to see that this is still here. There are plenty of wayland-related bug in sdl2 (https://github.com/libsdl-org/SDL/issues?q=is%3Aissue+is%3Aopen+wayland), perhaps someone with good knowledge of sdl2 could figure out whether this problem belongs to CDDA or sdl2 itself. |
Well, there's a hack in the comment I posted if you want to use software renderer, I guess it could be Gladly opengl and opengles work fine in Wayland for me, I used to be an have a problem with cursor, but it seems to be gone now, so I'm glad. Alternatively, the game could detect running on Wayland and disallow or show a warning (or silently switch to xwayland) when trying to change to software, that at least would alleviate crashes by setting this option for whatever reason… 🤔 |
Thanks, opengles2 (it is the same as opengles in CDDA right?) works for me! Still have the same problem with opengl, perhaps the problem is from sdl2 side. I think the sdl2 starts in xwayland by default (libsdl-org/SDL#2710), which I also see this in the "Display" option. |
I run it with |
Great, #51053 fixes the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
Describe the bug
Follow up to #51053 (comment) – software renderer doesn't work without this hacky solution of rendering it twice.
Steps To Reproduce
echo $XDG_SESSION_TYPE
).SDL_VIDEODRIVER=wayland cataclysm-tiles
).Expected behavior
The game should not have issues with input.
Screenshots
No response
Versions and configuration
Dark Days Ahead [dda],
Wyłącz potrzeby NPC [no_npc_food]
]
Additional context
You can use fix from #51053 (comment) to get rid of the issue, despite at performance cost.
Unrelated, but software renderer doesn't seem to work on Android for me too, as per my comments in #51053 and on Discord, ideally the option should not appear there or fallback to a different renderer then.
The text was updated successfully, but these errors were encountered: