From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42406: Mouse-wheel scrolling can be flickering Date: Tue, 15 Dec 2020 22:05:04 +0200 Message-ID: <83im92al8v.fsf@gnu.org> References: <20200722201659.GA1541@breton.holly.idiocy.org> <969D8DEC-6837-4DD4-93E9-F359DADE1EAB@univie.ac.at> <20201010095100.GG60347@breton.holly.idiocy.org> <9849711D-8DBE-4030-8020-84D86E72505B@univie.ac.at> <83czzg3ge1.fsf@gnu.org> <83sg89cyrq.fsf@gnu.org> <0FD2AAC6-BA1C-483F-9967-3E18B4ADD4D3@univie.ac.at> <0d3c9f07-7783-3e41-bf85-24a034c02e5c@gmx.at> <01B63545-A435-48C5-AB62-441EAD24F24C@univie.ac.at> <8A9929A0-1C51-4CC7-9EB1-1555788465F0@univie.ac.at> <3FA2BD5E-5EAA-496E-AA2F-83810F62082C@univie.ac.at> <5945639e-0fe1-1308-e9e7-62ef44407e89@gmx.at> <8AF2FA71-E12D-414A-9224-31DCC5528BA9@univie.ac.at> <83k0tiam4s.fsf@gnu.org> <1216262E-053D-49BB-9D79-5F7FB3395FE9@univie.ac.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39292"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, 42406@debbugs.gnu.org To: Konrad Podczeck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 15 21:06:10 2020 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 1kpGaH-000A3n-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 21:06:09 +0100 Original-Received: from localhost ([::1]:34700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpGaG-0007d1-SB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 15:06:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpGaA-0007ci-5Y for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 15:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpGa9-0001sg-UE for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 15:06:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpGa9-00053n-Oj for bug-gnu-emacs@gnu.org; Tue, 15 Dec 2020 15:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Dec 2020 20:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42406 X-GNU-PR-Package: emacs Original-Received: via spool by 42406-submit@debbugs.gnu.org id=B42406.160806272219401 (code B ref 42406); Tue, 15 Dec 2020 20:06:01 +0000 Original-Received: (at 42406) by debbugs.gnu.org; 15 Dec 2020 20:05:22 +0000 Original-Received: from localhost ([127.0.0.1]:59185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpGZW-00052r-9o for submit@debbugs.gnu.org; Tue, 15 Dec 2020 15:05:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpGZU-00052a-6X for 42406@debbugs.gnu.org; Tue, 15 Dec 2020 15:05:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58399) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpGZM-0001e4-2j; Tue, 15 Dec 2020 15:05:12 -0500 Original-Received: from [176.228.60.248] (port=3513 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kpGZK-0007RP-S0; Tue, 15 Dec 2020 15:05:11 -0500 In-Reply-To: <1216262E-053D-49BB-9D79-5F7FB3395FE9@univie.ac.at> (message from Konrad Podczeck on Tue, 15 Dec 2020 20:52:25 +0100) 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:196183 Archived-At: > From: Konrad Podczeck > Date: Tue, 15 Dec 2020 20:52:25 +0100 > Cc: martin rudalics , > Alan Third , > 42406@debbugs.gnu.org > > Just using the mouse, moving the vertical scroll-bars up and down. As with mouse-wheel scrolling, performance decreases with the number of open frames, in the sense that scrolling becomes more and more sticky. As long as you invoke scrolling commands (and that's what the scroll bar eventually does in Emacs), you will always have the same problem: scrolling commands cause Emacs redraw all the frames. If the NS port does that inefficiently, you will see performance hit. The general assumption in the Emacs display engine is that the absolute majority of the frame's display will not actually be redrawn on the glass, because Emacs knows they don't need to. If the NS port violates this, or if it is too slow to redraw the frame decorations that Emacs cannot control directly (i.e. it cannot know whether they need to be redrawn), then the performance you see will be worse than expected. How many frames do you need to create before just dragging the scroll-bar thumb slows down enough to be tangible? 2? 5? 10? more?