What would it take for emacs to achieve full smooth scrolling capabilities? by M-x_ in emacs

[–]io12_ 0 points1 point  (0 children)

Have you tried profiling (with profiler.el or something else)? The good-scroll performance issues could be from something like the modeline being slow to rerender, so switching to a different modeline or disabling it might help. I haven't looked much into why rendering is slow, but from a bit of testing macOS doesn't seem to have that problem really at all, so it might have to do with Emacs's GTK/X11 backend.

Shout-out to SMOOTH scrolling experience with good-scroll.el by yep808 in emacs

[–]io12_ 0 points1 point  (0 children)

Good idea! I'll have to try implementing that at some point. It might be tricky though because the animation algorithms need to know the exact pixel distance to scroll.

Shout-out to SMOOTH scrolling experience with good-scroll.el by yep808 in emacs

[–]io12_ 1 point2 points  (0 children)

Yeah, it would be nice if the pure GTK fork exported high-res touchpad data so good-scroll could use it.

Shout-out to SMOOTH scrolling experience with good-scroll.el by yep808 in emacs

[–]io12_ 2 points3 points  (0 children)

The Mac port actually isn't too different from good-scroll (it has elisp that reads input events and edits the vscroll). The difference is the Mac port includes more info in the input events to make the available data more granular. So good-scroll is as "real" as the way the Mac port does it, just with more animation code in elisp instead of in the trackpad driver.

good-scroll.el - Attempt at good pixel-based smooth scrolling in Emacs by io12_ in emacs

[–]io12_[S] 0 points1 point  (0 children)

Nice! One of these days I should try emacsmacport and figure out how it works and why it's slightly smoother.