Originally posted by duby229
View Post
Originally posted by duby229
View Post
The basics of wayland input is part of the wayland protocol already.
The compositor looks through its scenegraph to determine which window should receive the event.
The facts
1) Wayland protocol defines proper input handling.
2) X11 does not define proper input handling.
Yes lack of proper input handling has some serous downsides.
Disabling scenegraph search can in fact be done wayland compositor side yes application using any one of the following options :
1) unstable sections of the wayland protocol can already allow applications request this.
2) Wayland compositor can choose to be embedded for 1 application/have a single application mode so in this mode don't do scenegraph processing before passing input on to applications.
3) Wayland compositor can have a game mode that reduces complexity of scenegraph search while game is like a window. So still be lighter than most desktop targeted wayland implementations while maintaining the security of doing proper input handling..
Try again duby229 this time read what the wayland protocol and X11 protocol are doing.
Due to the fact input handling is in the wayland protocol there is nothing to fix in the wayland protocol. There are implementation choices wayland compositor side causing input problems.
Current desktop wayland compositors not implementing game mode/single application mode this is not wayland protocol fault. The wayland items used in car dashboards does implement single application mode way lower latency when you play with those. In fact less than X11 because you don't have the X11 server checking if a compositor has been added or going to the compositor every input event..
Also the ability for applications to measure how bad the input lag is happens to be missing so able to adjust. Yes adding a compositor to X11 server can see input be processed though a scenegraph as well .
Basically a wayland compositor designed for games is going to have lower latency than X11. Yes even with xwayland loaded there is less code to run before input gets to application than x.org straight without wayland or a x11 compositor.
Leave a comment: