2 ms·
TBF, for the longest time XFree86/XOrg handled pointer events/updates in a signal handler. The only time you'd have pointer stutters in that epoch of X on Linu
by pengaru 3y ago
TBF, for the longest time XFree86/XOrg handled pointer events/updates in a signal handler. The only time you'd have pointer stutters in that epoch of X on Linux was because interrupts were disabled for too long (`hdparm -u` ring a bell for anyone?).
At some point this was moved to an input thread, probably around when glamour happened. You can't do complex junk like OpenGL calls from within a signal handler.
Some things were easier to do better when X implemented the full graphics stack.
Nowadays in a Wayland world the compositor is still hamstrung by what execution contexts it can call its underlying GPU-acceleration API from. So I doubt we'll see the same kind of lean and mean signal handler approach of ye olde X. The best you can probably do there is a dedicated high-priority thread.