GNU bug report logs -
#46350
28.0.50; touchpad-scrolling-eats-lots-of-cpu-samples
Previous Next
Full log
View this message in rfc822 format
On Sat, Feb 6, 2021 at 11:03 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > And how many mouse-wheel events Emacs receives in your
> > scenario, anyway?
> >
> > Sorry, how can I check that?
>
> Add a call to 'message' to mwheel-scroll, and have it show a counter
> that counts up?
I've did as you've suggested. When scrolling buffer of 1405 lines from
bottom to the top (while emacs is unresponsive) mwheel-scroll function
seems to be called about ~1351 times. Single fast flick over touchpad
produces ~40 calls to mwheel-scroll.
Adding (sit-for 0) at the start of the function doesn't have any effect.
> What is the size of the buffer that it scrolls almost instantly to
> BOB? How many lines?
1405 lines. I'm testing this on bundled lisp-mode.el
--
Best regards,
Andrey Listopadov
This bug report was last modified 4 years and 132 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.