From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Orst Newsgroups: gmane.emacs.bugs Subject: bug#46350: 28.0.50; touchpad-scrolling-eats-lots-of-cpu-samples Date: Sat, 6 Feb 2021 22:47:55 +0300 Message-ID: References: <83a6shnklg.fsf@gnu.org> <838s81nhoz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000039b52505bab037b3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1205"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46350@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 06 20:49:10 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 1l8TZu-0000Cf-0V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 20:49:10 +0100 Original-Received: from localhost ([::1]:39114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8TZt-0004wA-3q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 14:49:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8TZl-0004vi-RN for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 14:49:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8TZl-00045T-Jx for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 14:49:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8TZl-0005mo-Ic for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2021 14:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Orst Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2021 19:49: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.161264089422184 (code B ref 46350); Sat, 06 Feb 2021 19:49:01 +0000 Original-Received: (at 46350) by debbugs.gnu.org; 6 Feb 2021 19:48:14 +0000 Original-Received: from localhost ([127.0.0.1]:46472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8TYz-0005lk-TQ for submit@debbugs.gnu.org; Sat, 06 Feb 2021 14:48:14 -0500 Original-Received: from mail-pj1-f45.google.com ([209.85.216.45]:55808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8TYy-0005lW-Q2 for 46350@debbugs.gnu.org; Sat, 06 Feb 2021 14:48:13 -0500 Original-Received: by mail-pj1-f45.google.com with SMTP id s24so5423662pjp.5 for <46350@debbugs.gnu.org>; Sat, 06 Feb 2021 11:48:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XLjZRgqKVaQKFbtlkWpuHJQGu2tMiX0zoFCRW96ee+Q=; b=vhj/kZwsubO/thXNEl30NDn7G0h16wLTzvhdMwesQ7tV0tFuSoohASyfnk72sZndAZ Z2WXuX6Sndgmty5Rf+kc0J8zHefI7+R8ufReDj0HOg933NCBvNjiI7OjPeDsfWGzDN6K jCVXWU09jrI61Sv0RPxJyXVT5Ao1wXFH9HFenR2KTk5zTX+ViUQUiRiBUegngdao0op6 bPgVa26ckkJojYHQJBG2+3x6PnZ8GR7sW56pKnlISUWgdxgHGsYml0pFu0HTasJ3UC24 MOEmJ2jU4ff8DsKmp63+Ca8P2zuPdCRbmqhIdLaXAst3BOvfoBJtIqkp7t9jWw2n2ry2 hq4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XLjZRgqKVaQKFbtlkWpuHJQGu2tMiX0zoFCRW96ee+Q=; b=kOEupsrx6Fw2FM1goRWBdn/0T3Teedo0LBU4PlfeQB3uUf7KKCqtUUHJOlAnkXuBaa 7P5GwnUFCwN+M3pJodSAqIGs6HZcPgwarpqBgJwXMCIhgMpWZZYj+nYoy8XXMBVLiSgN 5WtwxeVw8XeArTMLuPce1BCF9ePJTXoukutlEOTOo0Qta86ry7yt5QGf4P9Gj3xisYxZ rnFsQmN90wFOE6apC4zHTsLHr6oXX8AbKgrjiwg10An96l9dmkAX9c690KnlGdKR1fnP JcL7W9HZpGHLc+huDxMEiUIYns8IuMFoQZEWFQPXLlv9TWSEuPFpOqVojqxZbcoD2KVi W7cw== X-Gm-Message-State: AOAM531HCPfhL0ZMp4CqWgXwwF0Wta36bWCV2wIeIFrsNInD5Ux6mS3o 6XQ4a3iXPeXQhrmEfYY6oo3t0ejdniZGuEfsGn0= X-Google-Smtp-Source: ABdhPJyPnFH6tXRbSmB2i9esdQGsF22Tjp8mhrcczJU/kXmTxd3mxQixRmNyGksNxZXT588ktb5O+LmKuRlkWz/OiN0= X-Received: by 2002:a17:902:a60b:b029:df:ec2e:6a1d with SMTP id u11-20020a170902a60bb02900dfec2e6a1dmr9689124plq.27.1612640887091; Sat, 06 Feb 2021 11:48:07 -0800 (PST) In-Reply-To: <838s81nhoz.fsf@gnu.org> 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:199456 Archived-At: --00000000000039b52505bab037b3 Content-Type: text/plain; charset="UTF-8" > > Do you use a large frame and/or a small > font? In fact, yes, my screen is 2K, and system font scaling is set to 1.44, but this also happens on regular 1080p screen with regularly sized font. And how many mouse-wheel events Emacs receives in your > scenario, anyway? > Sorry, how can I check that? I do think that Emacs actually receives a metric ton of events, as scolling with mouse seems hardly lag at all, and scrolling in termux with touch events also not as laggy. Oh, and what happens if you raise gc-cons-threshold to a large value? > No difference. Note, that scrolling with scrollbars has no lag at all, so I don't think that GC is relevant here. I've also noticed that scrollin with scrollbar has (sit-for 0) in the body of the scroll function, and IIRC mwheel-scroll doesnt sit at all. maybe because of that it consumes too many inputs? I wonder if you could send tons of scrolling inputs via xdotool or smth like that on Linux? > --00000000000039b52505bab037b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Do you use a large frame and/or a small
font?=C2=A0

In fact, yes, my screen is 2K, and system font scaling is set to 1.4= 4, but this also happens on regular 1080p screen with regularly sized font.=

And how many mouse-wheel events Emacs receives in your scenario, anyway?

<= div dir=3D"auto">Sorry, how can I check that? I do think that Emacs actuall= y receives a metric ton of events, as scolling with mouse seems hardly lag = at all, and scrolling in termux with touch events also not as laggy.=C2=A0<= /div>

Oh, and what happens if you raise gc-cons= -threshold to a large value?
=
No difference. Note, that scrolling with scroll= bars has no lag at all, so I don't think that GC is relevant here.=C2= =A0

I've also notice= d that scrollin with scrollbar has (sit-for 0) in the body of the scroll fu= nction, and IIRC mwheel-scroll doesnt sit at all. maybe because of that it = consumes too many inputs?

I wonder if you could send tons of scrolling inputs via xdotool or smth l= ike that on Linux?
--00000000000039b52505bab037b3--