3 ms·
Amusingly it is thanks to Wayland i can use Linux on my GPD Win 1 handheld[0] - apparently there is a bug in the video driver that when changing video modes can
by badsectoracula 4y ago
Amusingly it is thanks to Wayland i can use Linux on my GPD Win 1 handheld[0] - apparently there is a bug in the video driver that when changing video modes can cause the entire screen to shift several lines (probably some memory offset issue, sometimes it even causes colors to go haywire) that needs a reboot to fix.
However since Wayland (or at last KDE's Wayland implementation) doesn't provide any functionality for changing video modes, the bug isn't triggered when running KDE with Wayland as the latter forces games to use whatever video mode the desktop uses.
Of course that means that games that do not support 1280x720 wont work at all, but that's minor details, about as important as using a lower resolution to get better framerates from the Atom iGPU the device has :-P
(ok, actually might be possible by using gamescope[1], which runs its own Wayland+XWayland compositor inside an SDL window that you can also force to use a specific resolution - again no resolution changes are supported and that uses wlroots - that can be scaled to arbitrary outputs and if the SDL you're using has a Wayland backend to avoid going through the desktop's Wayland compositor's XWayland layer then you may not get that much lag at all - though not sure if there'd be enough memory left for the game after all that :-P)
[0] https://en.wikipedia.org/wiki/GPD_Win https://en.wikipedia.org/wiki/GPD_Win
[1] https://github.com/Plagman/gamescope https://github.com/Plagman/gamescope
- vetinari 4y ago> Of course that means that games that do not support 1280x720 wont work at all, On capable hardware (which your's probably isn't, not sure of Intel HD 405 capabilities), it is not a problem. The compositor can allocate a surface that corresponds to a given resolution (higher or lower than physical one, doesn't matter), the application renders its output at its preferred resolution and then compositor scales that buffer (using the output encoder's scaler, not GPU!) to physical output, effectively emulating that resolution. Well, at least Mutter is capable of doing this, not sure of wlroots.