WickedEngine icon indicating copy to clipboard operation
WickedEngine copied to clipboard

No fractional scaling on Linux (Wayland)

Open ShalokShalom opened this issue 8 months ago • 5 comments

There is currently no support for fractional scaling.

This issue is to track the development of that.

I am running: Arch KDE, Wayland and Vega 8 (amdgpu and radv)

ShalokShalom avatar Apr 10 '25 20:04 ShalokShalom

No, thats not the same issue. In my instance, the scaling doesnt apply at all, and the mouse cursor (and everything else) is exactly the same.

ShalokShalom avatar Apr 12 '25 12:04 ShalokShalom

Ah, I see. Is this Wayland only or X11 as well?

brakhane avatar Apr 12 '25 12:04 brakhane

I run only Wayland, and usually are fractional scaling issues exclusive to each graphic server, in my experience. 🙂

ShalokShalom avatar Apr 12 '25 13:04 ShalokShalom

Temporary fix: It should work if you force it to run through XWayland by exporting SDL_VIDEODRIVER=x11 before launching the editor.

export SDL_VIDEODRIVER=x11
./path/to/WickedEngineEditor

PAMinerva avatar Apr 12 '25 14:04 PAMinerva

Anyway, the root of the problem seems to be SDL2. If you want to test it yourself, try cloning WickedEngine, switch to the SDL3 branch, rebase it onto master, and resolve the conflicts. Fractional scaling works as expected on Wayland (just tested on both arch and fedora).

Maybe it’s time to consider fully porting the engine to SDL3 — it seems like a more future-proof choice at this point. SDL3 will also be officially available on Ubuntu starting April 17th, with the release of version 25.04.

PAMinerva avatar Apr 12 '25 15:04 PAMinerva