Emacs scrolling is lagging for me on Linux but not on macOS. I'm using Ubuntu 20 and also tried Solus but behavior is the same. Faster system helps but not enough. What so special about emacs build on macOS? Can I achieve this on Linux? I'm using touchpad with high scrolling speed.
Edit: Emacs version: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10)
With emacs -q there is no lag.
(setq fast-but-imprecise-scrolling t) difference is not noticeable.
Disabling highlight line mode helps.
Very strange that scrolling down is better than scrolling up.
Edit: I had to remove anything that operates during scrolling like highlight line, symbol under cursor and custom modeline. Emacs profiler helped to find those.