Announcement
Collapse
No announcement yet.
Libinput 1.16 Will Warn You If Your System Is Too Slow
Collapse
X
-
Originally posted by tildearrow View Post
Or if AmigaOS could do it on a single-core machine clocked in single-digit MHz!
Or even better, GEOS on a C64 running at decimal MHz!!
If they have to inform us that the system is too slow, then they are doing something too heavy in the input pipeline already.
The real reason that the older Amiga, Mac and C64s were so responsive is that responding happened as a result of hardware interrupts and the response consisted of a few machine instructions. To update the mouse in C64 GEOS, for example, was an interrupt, and changing the sprite position. The actual drawing of the sprite was done in the video hardware.
It's not physically possible for modern computers to do the same thing because the GPU is not accessed with a few machine instructions. The input is not a simple interrupt anymore either.
But we could get a lot closer than we do by running code immediately in response to kernel events instead of waiting for thread scheduling in the middle of heavy computation threads, or waiting for memory paging. And we have all the tools available in the Linux kernel to do that.
Linux real-time is quite good. It isn't perfect, which means you wouldn't trust your anti-lock brakes to it, but it is nearly perfect. We should be using it for GUIs.
- Likes 1
Comment
-
Originally posted by pal666 View Postwayland compositors replace x11 compositors in addition to server, and quite successfully
I mentioned XFree86 because this is about libinput, libinput can also be plugged into Xorg, Xorg is the direct-line descendant of XFree86, and the precursors/deprecated competitors to libinput had no need to display "Your system may be too slow" messages on hardware 10 to 100 times slower during the XFree86 era.
Now, if you want to argue that's because they didn't use compositors back then, I might be convinced to debate the inferiority of Wayland for not having an option to do un-composited drawing for people who want the performance and reliability of uncomposited, tear-prone Xorg.
(Seriously. Even when it's the video drivers' fault, using a composited desktop reminds me of the bad old days of when I was on Windows and had to restart the system at least once a week.)Last edited by ssokolow; 16 July 2020, 01:30 PM.
Comment
-
-
Originally posted by ssokolow View PostI never said anything about Wayland vs. X11.
I mentioned XFree86 because this is about libinput
Originally posted by ssokolow View PostNow, if you want to argue that's because they didn't use compositors back then, I might be convinced to debate the inferiority of Wayland for not having an option to do un-composited drawing for people who want the performance and reliability of uncomposited, tear-prone Xorg.
Originally posted by ssokolow View Post(Seriously. Even when it's the video drivers' fault, using a composited desktop reminds me of the bad old days of when I was on Windows and had to restart the system at least once a week.)
Comment
-
Originally posted by bug77 View PostWth, you mean to tell me after all these years, implementors still haven't learned you don't do stuff in the main thread/event loop? I find that hard to believe.
Comment
-
Originally posted by yariv View Post
It's not that easy to split - even the Xorg threaded input took a while to implement. I think that there is some ongoing work regarding that in mutter, however since there is a lot of other ongoing work as well, that could take a while.
Comment
Comment