From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#46350: 28.0.50; touchpad-scrolling-eats-lots-of-cpu-samples Date: Sun, 7 Feb 2021 22:16:02 +0000 Message-ID: References: <83a6shnklg.fsf@gnu.org> <838s81nhoz.fsf@gnu.org> <8335y9neut.fsf@gnu.org> <83h7mnn4y6.fsf@gnu.org> <83czxbn2dy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29592"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46350@debbugs.gnu.org To: Andrey Orst Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 23:17:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8sMm-0007ae-H2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 23:17:16 +0100 Original-Received: from localhost ([::1]:56634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8sMl-0007bN-Hv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 17:17:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8sMY-0007aJ-5i for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 17:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8sMX-0000E0-OJ for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 17:17:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8sMX-00018x-Jx for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 17:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 22:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46350 X-GNU-PR-Package: emacs Original-Received: via spool by 46350-submit@debbugs.gnu.org id=B46350.16127361724335 (code B ref 46350); Sun, 07 Feb 2021 22:17:01 +0000 Original-Received: (at 46350) by debbugs.gnu.org; 7 Feb 2021 22:16:12 +0000 Original-Received: from localhost ([127.0.0.1]:49129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8sLk-00017q-3Z for submit@debbugs.gnu.org; Sun, 07 Feb 2021 17:16:12 -0500 Original-Received: from [217.169.17.33] (port=52943 helo=breton.holly.idiocy.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8sLi-00017c-56 for 46350@debbugs.gnu.org; Sun, 07 Feb 2021 17:16:11 -0500 Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id B5215202A3AB28; Sun, 7 Feb 2021 22:16:02 +0000 (GMT) Mail-Followup-To: Alan Third , Andrey Orst , Eli Zaretskii , 46350@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199578 Archived-At: On Sun, Feb 07, 2021 at 09:52:22PM +0300, Andrey Orst wrote: > > > > I didn't ask how much time it takes Emacs to process the inputs. I > > asked how much time did it take you to generate them by moving your > > finger on the touchpad. I very much doubt the answer to that is 15 > > sec. > > > > Yes I was talking about me inputting scrolling events for about ~15 secs. > I've rewatched the video and I'm continuously swiping over touchpad for > about ~10 seconds, and Emacs updates position ~5 seconds after I stopped. > > > There I was talking about progressive speed turned on, as it builds up > > > almost instantly with my touchpad producing 30 inputs per swipe. > > > > Sorry, I don't understand: what builds up? > > > > Scrolling speed. With progressive speed turned on it is impossible to use > touchpad because after single swipe the speed builds up so much resulting > in point immediately jumping to beginning/end of buffer. This all sounds awfully like the problems we had with the touchpads on macOS. On macOS the OS sends inputs with a number of pixels that it expects the application to scroll, this means it can send hundreds of touchpad events in a few seconds, but the application is only supposed to scroll, perhaps, a few tens of lines. What we do in the NS code is count up the number of pixels and only send the event to Emacs once it reaches some predetermined "line size". I didn't think X worked this way, though, so perhaps it is some libinput setting. Or are you using XWayland, which may behave differently than standard X? -- Alan Third