[Linux] SDL2 Wayland Support

Post Reply
User avatar
tkna
Posts: 16
Joined: Thu Mar 24, 2022 1:15 pm
Location: Tokyo, Japan

[Linux] SDL2 Wayland Support

Post by tkna »

I am currently using the sunvox_opengl version, which is low memory usage and light in my environment, so the following problem is not serious, but I am posting this in case it might be of some help.

- OS: Arch Linux 5.17.9-arch1-1
- Window Manager: sway
- sdl12-compat 1.2.52-2
- sdl2 2.0.22-2
- sdl2_image 2.0.5-2
- sdl_image 1.2.12-7
- smpeg 0.4.5-5

Currently(SunVox v2.0e (Mar 4 2022)), when running /usr/bin/sunvox in a Wayland environment, the screen display scale ratio is not updated and stretched when the window size is changed.

Image

This can be avoided by setting `SDL_VIDEODRIVER=x11 sunvox`, but we feel that there may be a disadvantage related to the fact that it is launched in Xwayland and not Wayland.
https://www.phoronix.com/scan.php?page= ... rs-Wayland

It seems to me that it would be good if those could be overcome by, for example, making the latest version of something like the SDL2 module that sunvox uses, but is there a risk of losing compatibility between operating systems?
What is your impression on this?
Post Reply