FS#72304 - [grafx2] 2.8-1 and before - mouse movement choppy on SDL2 backend
Attached to Project:
Community Packages
Opened by Pavle (pio) - Thursday, 30 September 2021, 17:11 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 12 October 2021, 11:39 GMT
Opened by Pavle (pio) - Thursday, 30 September 2021, 17:11 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 12 October 2021, 11:39 GMT
|
Details
Description:
For some time now, mouse movement in this program is very choppy when using certain tools, more noticeable fullscreen. The workaround is to use X11 backend instead of SDL2. I've attached the sample PKGBUILD - one additional change was needed to compile. The bug is reported upstream here: https://pulkomandy.tk/projects/GrafX2/ticket/136 Steps to reproduce: Maximize the window, start any tool with crosshair cursor (e.g. 'b' key). |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Tuesday, 12 October 2021, 11:39 GMT
Reason for closing: Upstream
Additional comments about closing: grafx2+SDL2+Wayland is ok, an upstream issue has been created for grafx2+SDL2+X.
Tuesday, 12 October 2021, 11:39 GMT
Reason for closing: Upstream
Additional comments about closing: grafx2+SDL2+Wayland is ok, an upstream issue has been created for grafx2+SDL2+X.
Is it just the combination of X and SDL2 that results in choppy behavior, or is it also choppy under Wayland and SDL2 (like in Sway, for instance)?
As I see it, Wayland is slowly becoming more important than X (if it isn't already), so if it is choppy under X but fine under Wayland, then a package that targets X and is in AUR could be a good solution.
Also, most SDL2 applications are not choppy, neither using the X protocol nor using the Wayland protocol. Perhaps upstream will fix this.
Grafx2-SDL2 in Wayland: fine if somewhat slow in general
Grafx2-SDL2 in X: very choppy when using crosshair and big brushes
Grafx2-X11 in X: bigger brushes displayed incorrectly when zooming in
Grafx2-SDL1.2 in Wayland: doesn't run
Grafx2-SDL1.2 in Wayland with xorg-xwayland installed: fine if somewhat slow in general
Grafx2-SDL1.2 in X: everything seems OK
So I can conclude that SDL2 backend works fine on Wayland, but it's subtly broken in X11. The solution to this bug upstream was postponed to a distant milestone. SDL1.2 backend is optimal in X, but requires xorg-xwayland to run in Wayland. X11 backend shouldn't be used because of a different bug: brush getting cropped. I see now there is no optimal solution, so it's best perhaps to keep it as it is, with additional SDL1.2 package in AUR for users of X.
Thanks for testing!