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

TIC-80 doesn't work when forced to run under Wayland #2660

Open
aliceisjustplaying opened this issue Aug 25, 2024 · 3 comments
Open

TIC-80 doesn't work when forced to run under Wayland #2660

aliceisjustplaying opened this issue Aug 25, 2024 · 3 comments
Labels
bug library: sdl2 Issues related to SDL2. platform: linux For issues affecting TIC80 on Linux

Comments

@aliceisjustplaying
Copy link
Collaborator

SDL2 apps run under X11/Xwayland by default. If I force TIC-80 to run under Wayland with SDL_VIDEODRIVER=wayland (which should work (?)), it launches but I see no UI whatsoever (do get audio though).

Found while working on #2657.

@aliceisjustplaying aliceisjustplaying added platform: linux For issues affecting TIC80 on Linux bug library: sdl2 Issues related to SDL2. labels Aug 25, 2024
@nesbox
Copy link
Owner

nesbox commented Aug 26, 2024

Maybe we need to play with these options in SDL2 cmake
https://github.com/libsdl-org/SDL/blob/f070c83a6059c604cbd098680ddaee391b0a7341/CMakeLists.txt#L490
image

@aliceisjustplaying
Copy link
Collaborator Author

Ok, sdl-gpu breaks under Wayland, haven't gone too deep why, it's an old library the first place. if I compile TIC-80 without it, I can run it on Wayland but it does not handle scaling well (this is on a retina display with scaling set to 200%) which is the next thing I'll look into.

Screenshot 2024-08-26 at 11 43 36 PM

@aliceisjustplaying
Copy link
Collaborator Author

I do wonder how much work would it be to remove the sdl-gpu dependency and code the CRT feature without it, may look into that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug library: sdl2 Issues related to SDL2. platform: linux For issues affecting TIC80 on Linux
Projects
None yet
Development

No branches or pull requests

2 participants