From unknown Sat Jun 14 00:05:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34710 <34710@debbugs.gnu.org> To: bug#34710 <34710@debbugs.gnu.org> Subject: Status: the mode line flicks on set-window-vscroll Reply-To: bug#34710 <34710@debbugs.gnu.org> Date: Sat, 14 Jun 2025 07:05:06 +0000 retitle 34710 the mode line flicks on set-window-vscroll reassign 34710 emacs submitter 34710 Tak Kunihiro severity 34710 minor tag 34710 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 05:32:49 2019 Received: (at submit) by debbugs.gnu.org; 2 Mar 2019 10:32:49 +0000 Received: from localhost ([127.0.0.1]:56994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h01wn-0005l9-It for submit@debbugs.gnu.org; Sat, 02 Mar 2019 05:32:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h01wl-0005ko-8Q for submit@debbugs.gnu.org; Sat, 02 Mar 2019 05:32:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:38613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h01wY-0007nj-Ay for submit@debbugs.gnu.org; Sat, 02 Mar 2019 05:32:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h01wW-0002E3-2h for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 05:32:34 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h01pt-00018u-D2 for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 05:25:43 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:36944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h01pg-0000ey-Gp for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 05:25:32 -0500 Received: by mail-pf1-x429.google.com with SMTP id s22so172621pfh.4 for ; Sat, 02 Mar 2019 02:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; bh=9QXnEbbOIIETJaFx0V8UXU0cU3p3TvDcb+dj3SqcThU=; b=PImAK3T66lFa1FGwxfb2/eM2YDBaoIMo7T/oTLzDve59UGvlJCqoeo9B7CbqXd1g7v kx/tb33t84N87IdBhaDPg1n+eD+3fPpGvgZMsoye1HiWiL5erLQ0OPgpNzAmapWO+ost xfPHBSNRpVzBf05pYIDW1RBrBsQRPKcR5sPsvTEW2gOFH3vIoi15HJnVnIj6HuTDLgMN D64eSy/TEFdQJXkBk8J+De6FNhvmBv2XZPGL5UWva4vAJ4StRtY/0z5DtMcw0L8YHpSI d2OTZKoa4E7Vlcsy9YrhcQDS3vFawKsOYw3dxpCfwPKdmg9mp0C1NB1zqRe5oCOBh6wb LqYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:content-transfer-encoding :mime-version:subject:message-id:date:cc:to; bh=9QXnEbbOIIETJaFx0V8UXU0cU3p3TvDcb+dj3SqcThU=; b=eHJ2NgNP/uUkwkckZQ4ymWLdN0hkZKcn8AIoPnBsu2ux/AKAVtfD++rx5YGZrPwQ/R 8qnn/RkNXZzRnGnxd8QDfWIfletPy4XR7JL9tP/tmngLzx/PwA8NIHQFeLSAkT+kx2ZW 9HH2LwkPdzsqSfs6ccBY8/RiAtqtyYa5XBfp9whCSxaimaQIhyhyy3k978p+Z7hyAWdP aZR2+BXspmrH2ZlumjucPty7EQOXPtvwW0w4RMtDDZzDmvOUwjQ48rGCe3yFDL/U6AZ/ iFmt+xTY21T1xLjzIWaYBQlGiujBA37k4bdZM7yhZeEXAuk6WkjDLx1igWeVECLMbX6f /v8w== X-Gm-Message-State: AHQUAuYRphNeObXJkMo8BSXO5lCbW7zH7y+Sv6dAoGrW5H/lemlWWujc B0QDsjJ+Pi5tyKR6AQ9tH4K9ExKk X-Google-Smtp-Source: AHgI3Ibejckl7A/UhFT3ucdjLuaAPvFH39gQjc08slt1LXdztmYPVpl7Vl9/AuW7YqLMViQhkrsaSQ== X-Received: by 2002:a62:d281:: with SMTP id c123mr10141897pfg.210.1551522317418; Sat, 02 Mar 2019 02:25:17 -0800 (PST) Received: from [192.168.11.105] (p219005-ipngn200207tottori.tottori.ocn.ne.jp. [153.182.218.5]) by smtp.gmail.com with ESMTPSA id y14sm1258786pgc.17.2019.03.02.02.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 02:25:16 -0800 (PST) From: Tak Kunihiro Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: the mode line flicks on set-window-vscroll Message-Id: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> Date: Sat, 2 Mar 2019 19:25:13 +0900 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3445.102.3) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::429 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: =?utf-8?B?5Zu95bqD5Y2T5Lmf?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Emacs-26.1.92 build for macOS, I see the mode line flicks when I scroll-up using pixel-scroll-mode and mouse wheel. The mode line does not flick on scrolling-down. I do not see this problem in Emacs-26.1.92 build for Windows. macOS$ /Downloads/emacs-26.1.92/nextstep/Emacs.app/Contents/MacOS/Emacs -Q M-x pixel-scroll-mode M-: (pixel-scroll-up 1) ; => the mode line flicks M-: (pixel-scroll-down 1) ;=> no flick I narrow down the problem and notice that following two blocks response differently. #+begin_src emacs-lisp (dolist (vs (number-sequence 1 10)) (set-window-vscroll nil vs t) (sit-for 0)) ;; the mode line flicks #+end_src #+begin_src emacs-lisp (dolist (vs (number-sequence 1 10)) (set-window-vscroll nil vs t)) ;; no flick #+end_src Do you have idea? From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 15:10:59 2019 Received: (at 34710) by debbugs.gnu.org; 2 Mar 2019 20:10:59 +0000 Received: from localhost ([127.0.0.1]:57893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0AyI-0002af-M2 for submit@debbugs.gnu.org; Sat, 02 Mar 2019 15:10:58 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]:35130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0AyG-0002aS-OD for 34710@debbugs.gnu.org; Sat, 02 Mar 2019 15:10:57 -0500 Received: by mail-wm1-f53.google.com with SMTP id y15so1178842wma.0 for <34710@debbugs.gnu.org>; Sat, 02 Mar 2019 12:10:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=TKD2eJXjlzkNeR0acE01sz+WY2+Jsa3dgFqvzaNFLM4=; b=ChpNhdiswd9Fn9O/H+CCfhLjK8Vjz/dxHuLZO3fh37biHquVVts8isOE39LJIh/Tly 3qjUbdLZi0hrMKY+H2ATaX9SdBF3RPXcUru7AHLG+VEHAo1HaXlrkj8stgW9nU3Tdi1d RBrQR2LrptGi6uGd4/+/QV3Zaq72x5hQ1dB1zW5FCyhXVS2xgSFIHxdZ8Qo5jPXfi/UG pWPtUKf6Yqng/QDbnP9Nvw1cv8UijRBU00k83fGkRQIPdTa63Z8TaxKL/VeVpmOuFT3T Ju8knEyTp/hy/evMNJpCl8H0sSglkvMFZ7pzXdi9khp10Q/WhjL/HqpjQeTKBFuQ+Ifa /avg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=TKD2eJXjlzkNeR0acE01sz+WY2+Jsa3dgFqvzaNFLM4=; b=SnF8QTn9Ak1IuXmlFg4mNhO3URYa5W15pHKI2iFCirVcROPexPgdkrYtmSBq7RxGtr aV9zbRxi9Bz4k7L7lVAQKiKPlAYImwXh/Get+/X0eZmojX9bAIPy3R9oPnZ/KV3saWu/ 8yAbUSqwtV6PzM6m+mz9nPrpK1sAKw3Xkb7Zz1LLLBscAFETBJjXAnLMxQzGwdhSffxc sHgUNXvWtTu9mZvDDMQGbCgnm5HrTRAUWhvW8R+AuInTKprt8OUzQu3nRbmA1Rr9yk/b pcAutFeS9Yek+8kyDqH1sel5iQ8AVihp1jGQE1eROVpLehlBGH1Ww7Y3zUvFP5VGMZ0/ 7mFQ== X-Gm-Message-State: AHQUAubwqWqrYq2TX8nRjms92B+PZNtmEUrQdaUgFeShauqQ4uivKNk/ VGlE5KfNf+JXLIg/vAGmURRz4YCG X-Google-Smtp-Source: APXvYqwc3sw0AQuZpb6Cb6OVsV96KG/FxIlW5YbBU45gg8RvfExpNlBsO5lenuuRG5V6m6dxwormhg== X-Received: by 2002:a1c:2283:: with SMTP id i125mr6675918wmi.24.1551557450573; Sat, 02 Mar 2019 12:10:50 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-b45d-8a12-0e92-554b.holly.idiocy.org. [2001:8b0:3f8:8129:b45d:8a12:e92:554b]) by smtp.gmail.com with ESMTPSA id w10sm1448682wrn.32.2019.03.02.12.10.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 12:10:50 -0800 (PST) Date: Sat, 2 Mar 2019 20:10:48 +0000 From: Alan Third To: Tak Kunihiro Subject: Re: bug#34710: the mode line flicks on set-window-vscroll Message-ID: <20190302201048.GA20712@breton.holly.idiocy.org> References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> User-Agent: Mutt/1.11.2 (2019-01-07) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, Mar 02, 2019 at 07:25:13PM +0900, Tak Kunihiro wrote: > On Emacs-26.1.92 build for macOS, I see the mode line flicks when I > scroll-up using pixel-scroll-mode and mouse wheel. The mode line does > not flick on scrolling-down. I do not see this problem in > Emacs-26.1.92 build for Windows. > > macOS$ /Downloads/emacs-26.1.92/nextstep/Emacs.app/Contents/MacOS/Emacs -Q > M-x pixel-scroll-mode > M-: (pixel-scroll-up 1) ; => the mode line flicks > M-: (pixel-scroll-down 1) ;=> no flick > > I narrow down the problem and notice that following > two blocks response differently. > > #+begin_src emacs-lisp > (dolist (vs (number-sequence 1 10)) > (set-window-vscroll nil vs t) > (sit-for 0)) > ;; the mode line flicks > #+end_src > > #+begin_src emacs-lisp > (dolist (vs (number-sequence 1 10)) > (set-window-vscroll nil vs t)) > ;; no flick > #+end_src > > Do you have idea? I believe it’s a problem with running redisplay rapidly (sit-for) and the way we’re drawing in NS. We end up with macOS demanding a screen update, and Emacs unable to deliver due to there being another redisplay coming up. The patch attached to this discussion doesn’t have the problem: https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00354.html However Robert Pluim reported serious performance problems with it. I haven’t been able to replicate them. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 02 23:15:26 2019 Received: (at 34710) by debbugs.gnu.org; 3 Mar 2019 04:15:26 +0000 Received: from localhost ([127.0.0.1]:58051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0IX7-0007L2-RD for submit@debbugs.gnu.org; Sat, 02 Mar 2019 23:15:26 -0500 Received: from mail-pf1-f172.google.com ([209.85.210.172]:46404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0IX6-0007Kp-Ht for 34710@debbugs.gnu.org; Sat, 02 Mar 2019 23:15:25 -0500 Received: by mail-pf1-f172.google.com with SMTP id g6so832975pfh.13 for <34710@debbugs.gnu.org>; Sat, 02 Mar 2019 20:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YG1ofCOFx4EivAZRRdGykvuHlGgN7TKeHH++pMO4sGw=; b=aDJcg5hpNhMqNGU83NdQqomdJcq4yW/fy1MzWtzmV2z92Hp+uAutGWqIu8Q7U5jDyA 4Jb5qi2n18vpl/8FEUn+gkfLGSZSsG8QRLTmPIRfJIkBIB7rdEx91Pdx5JWNgN9tiMlT W0aGmjxBS4uRPhZ8b5tXcv4VXudX5Rz7suxYApWHUR/vGnjAt4frbJM4vEKtpqUPpnxY MuuytOGwOXPJ8jG1xkiigrmZiCBpfGuRqqsLecLFEBhc+z1ISe9W67ZK4xMLDhZ3MKoW KoNAsR8HAtqyR09Cz1iCEaaOyFdKOOcBlLswKnaxxFghNO3oJU2sa7z/FfJxGNazavO/ emwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:subject:from:in-reply-to :date:cc:content-transfer-encoding:message-id:references:to; bh=YG1ofCOFx4EivAZRRdGykvuHlGgN7TKeHH++pMO4sGw=; b=B3NgS/GvvnsLiAKLFUuaEmn6sHq77MW0+P7mARI+YHgU5phquIqswqi5si/zmXDHYr GxSsYffj71IDyknNPuecEC2dbcE5nlJQs4Ff/9PsmCoAtiyYvkQ+i+GAM2REpwj68RuH 3bGAcisn9IGOcjeJvzv6KTPB580sCu8hTG3rsODHYfjqwiQE53dImZZCv68KCd/QUnIF e8nOwzZEBSQDLmv+EA5OhT0Jtg2NWtghukWAHWNf6dcIWyZKIzckOFMsbgsHq/7Q6y3r 9cljby63yzLOaL6TRXinZgnKYPiH8sO0o/UKcCVVGKlYQep+YuMRl9PgSIAK+xoK+yn4 1TUQ== X-Gm-Message-State: APjAAAVi2qfpGaWwc2y45nP2ohaXra6X1lcPtibctj5CPfBorZI8zqYI phz7kIWt9/4NXYy/twiqquI= X-Google-Smtp-Source: APXvYqyIKgZfFXar7tlm/kMa1jPhP4KehibzQ66omloiQxNUu9VUrlo7KXQvt/3PkVUtHc36ey7lhQ== X-Received: by 2002:a63:ff59:: with SMTP id s25mr10109400pgk.117.1551586518388; Sat, 02 Mar 2019 20:15:18 -0800 (PST) Received: from [192.168.11.105] (p219005-ipngn200207tottori.tottori.ocn.ne.jp. [153.182.218.5]) by smtp.gmail.com with ESMTPSA id t185sm3872441pfd.165.2019.03.02.20.15.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 20:15:17 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: bug#34710: the mode line flicks on set-window-vscroll From: Tak Kunihiro In-Reply-To: <20190302201048.GA20712@breton.holly.idiocy.org> Date: Sun, 3 Mar 2019 13:15:14 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <8E139DAE-BE11-4FFA-9BFC-07F27C6CE508@misasa.okayama-u.ac.jp> References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> To: Alan Third X-Mailer: Apple Mail (2.3445.102.3) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: =?utf-8?B?5Zu95bqD5Y2T5Lmf?= , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The patch solved the problem. I also see that it takes more time to scroll a line using pixel-scroll-up and pixel-scroll-down. In principle, pixel-scroll-mode wants to scroll a line slowly. I am on MacBook Pro (Retina, 13-inch, Late 2012) with Mojave 10.14.3, and so far, I=E2=80=99m happy enough with the performance. > On Mar 3, 2019, at 5:10 AM, Alan Third wrote: >=20 > On Sat, Mar 02, 2019 at 07:25:13PM +0900, Tak Kunihiro wrote: >> On Emacs-26.1.92 build for macOS, I see the mode line flicks when I >> scroll-up using pixel-scroll-mode and mouse wheel. The mode line = does >> not flick on scrolling-down. I do not see this problem in >> Emacs-26.1.92 build for Windows. >>=20 >> macOS$ = /Downloads/emacs-26.1.92/nextstep/Emacs.app/Contents/MacOS/Emacs -Q >> M-x pixel-scroll-mode >> M-: (pixel-scroll-up 1) ; =3D> the mode line flicks >> M-: (pixel-scroll-down 1) ;=3D> no flick >>=20 >> I narrow down the problem and notice that following >> two blocks response differently. >>=20 >> #+begin_src emacs-lisp >> (dolist (vs (number-sequence 1 10)) >> (set-window-vscroll nil vs t) >> (sit-for 0)) >> ;; the mode line flicks >> #+end_src >>=20 >> #+begin_src emacs-lisp >> (dolist (vs (number-sequence 1 10)) >> (set-window-vscroll nil vs t)) >> ;; no flick >> #+end_src >>=20 >> Do you have idea? >=20 > I believe it=E2=80=99s a problem with running redisplay rapidly = (sit-for) and > the way we=E2=80=99re drawing in NS. We end up with macOS demanding a = screen > update, and Emacs unable to deliver due to there being another > redisplay coming up. >=20 > The patch attached to this discussion doesn=E2=80=99t have the = problem: >=20 > https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00354.html >=20 > However Robert Pluim reported serious performance problems with it. I > haven=E2=80=99t been able to replicate them. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 04:06:30 2019 Received: (at 34710) by debbugs.gnu.org; 4 Mar 2019 09:06:30 +0000 Received: from localhost ([127.0.0.1]:58943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0jYM-00018h-6D for submit@debbugs.gnu.org; Mon, 04 Mar 2019 04:06:30 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:34736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0jYK-00018I-Ax for 34710@debbugs.gnu.org; Mon, 04 Mar 2019 04:06:28 -0500 Received: by mail-wr1-f43.google.com with SMTP id f14so4606869wrg.1 for <34710@debbugs.gnu.org>; Mon, 04 Mar 2019 01:06:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=+AjYs14s7t9kUWMYe0NCXsbMbXCoC1KwXIrnZeVmuq4=; b=gcqDzHa5OXVNZRHTsOqMz2khl+gzDVqibwTkEunVBhQY/fhWH5TS733y7+6bYuvseC x0SPTtRlMDQrt1MqsldRMmrfwaYvEBs3ceCchpjztDshi1a9KX+sR1iOXp9rHNAKZyOA ryO7ncaEghFLF5eFUhuGySN60x9P8Q/EHO7kyyVJIpeZd9jW1eGi+iITOdU8guaHldn0 YKy8xCjQr2DGptbeiIM+v2Lf4z9zYxzCyKEVKU01gQQcXhBj+RESPd2f0fGHKSqOPoyZ /Dpr+Oaek6G2TFUuyXBXvtJqAdSz8mQPdcASOE5oTkohFO6ZUOhwvmrcWnoBrQi+adIi AFug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=+AjYs14s7t9kUWMYe0NCXsbMbXCoC1KwXIrnZeVmuq4=; b=Jy1WPoFDpSxXZcL/GEFKNXjKhal3dlMsfs3/07QksDTqGDGhQz1LvaHv6P6OJF0EIB XxKdpgQJu52dSf+q4o6xIvFgjiQ469iXMr3A5cfiTvMQM4zE/dbM3AA89W2ZRkAyL8ec 7Y9uX+lqUVrFu7E8VC6CoWPAA2ZtNjTJJzRuwVPc4PKJBqv4DzibkOlqo3YFfh2o1Yof ulAokt8AplN0XJjlAh8ReBoSkP7+3jcInT6vHmk0MuOr8cP/O/ksBKTt5wDb8l2/J9K3 Hb/NJGLwrt6cZ1fjQwJvKRCIAvpRsUtLg2fpjCjh3grdpJWGL/pL3YhvS5iIwmMwJZru MP6w== X-Gm-Message-State: APjAAAU4DorNu4jO4Ih9VMmM4b34llFTnP/DuZF6HrmqSxZhH+wi6BD1 Yb8kWWaG6BkxU1SZwRkVVMN/JUfJ X-Google-Smtp-Source: APXvYqxb1rzAn1ax1bNDAwSLficfhXMb2ONEm2x2ab4xjt6YRIg3PNUPqo+rtmCB4/fKm/CX8U7mhg== X-Received: by 2002:adf:efc2:: with SMTP id i2mr11804058wrp.44.1551690382050; Mon, 04 Mar 2019 01:06:22 -0800 (PST) Received: from rpluim-mac ([2a01:e34:ecfc:a860:a488:ec6d:43ee:43be]) by smtp.gmail.com with ESMTPSA id b197sm5830558wmd.23.2019.03.04.01.06.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 01:06:21 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34710: the mode line flicks on set-window-vscroll References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 04 Mar 2019 10:06:20 +0100 In-Reply-To: <20190302201048.GA20712@breton.holly.idiocy.org> (Alan Third's message of "Sat, 2 Mar 2019 20:10:48 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > I believe it=E2=80=99s a problem with running redisplay rapidly (sit-for)= and > the way we=E2=80=99re drawing in NS. We end up with macOS demanding a scr= een > update, and Emacs unable to deliver due to there being another > redisplay coming up. > > The patch attached to this discussion doesn=E2=80=99t have the problem: > > https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00354.html > > However Robert Pluim reported serious performance problems with it. I > haven=E2=80=99t been able to replicate them. I can try it again. Perhaps something in my configuration is causing this. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 14:26:01 2019 Received: (at 34710) by debbugs.gnu.org; 4 Mar 2019 19:26:02 +0000 Received: from localhost ([127.0.0.1]:60217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0tDt-0006EO-I4 for submit@debbugs.gnu.org; Mon, 04 Mar 2019 14:26:01 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:39459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0tDr-0006EA-8n for 34710@debbugs.gnu.org; Mon, 04 Mar 2019 14:25:59 -0500 Received: by mail-wr1-f48.google.com with SMTP id l5so6828106wrw.6 for <34710@debbugs.gnu.org>; Mon, 04 Mar 2019 11:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lYNF/EYKr/UEho/zYTmCsRuwTcYLdsQzDoDJrJ9nvYY=; b=N7Ri52SQ52rnh83MghZBcnXnIN5Z7O9oCEN8cojmQI/xlmUHWUACQypQuZUjXBMfD8 EA4T6J5YivNzf3sQ0wuFvoLaD6e8xHJ2So7RNrN5LA9r5L5P3AjHHFbFQnYrgVjZZU/k aZau1aRobgWAntv71Dpj9AdK7KOAa5HqLmRGFwLfeOAGnPS/68i8N73GomEeTLnEN9r/ eHjvsXa5E/p1RiIJADKBNJHEcW+dONrUDRa5bVxRAjA9Q9KhXY8C2wMJoQZjIbZ9ApcP 1ixDxyMZ+Mbn2uWxSeL1U4UiQAEZ8m92m5egpS9hNhHjxGI7ITXDFLsMNybuCNKUwQAM 2x7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=lYNF/EYKr/UEho/zYTmCsRuwTcYLdsQzDoDJrJ9nvYY=; b=GJcUcB0pDHfWWwgIySmll0MMDjSs4hDnjCBg9vn9tXWhEtOV2QxsXUM008qldD2yOS E9a2gMZr7XsOtJ92lZMsjjgC+9s3AEa/dPVMv+XiNx3feP1SPo+bCjYo5a5yCXNmN5PH mQS/RWvy347j6+5fwD6fMAma4Rn4n6IjMIPbMwKaxLwzpmyuDqMQZ/VFFdR35haGk9V4 uA2lFY4611gyM39eT2WPtY+344sRhqMfNQoRAabwUi/GD9xVCt3+c+6w47p+OIV/K1v9 lBxvaLvoN7gBOQJbCdw8X+CcZ9t20K2e3fSO0FmNo46sM7Fu5j151ftKLz1jShEOAnLE Hr6Q== X-Gm-Message-State: APjAAAX5OL1HSWIKCRPULOt/fXCllFztFQp8JSlawUvqcoNP1/JoV0nA MvxdMQpDIJLsGCxtKiUPQfM= X-Google-Smtp-Source: APXvYqwcyrwbp1eSlyz8GtBl9B5old23U3qEIOc72mEbJSR7R4PEvFutWkNJjCqoAlYTxCmZBIS9BA== X-Received: by 2002:adf:f343:: with SMTP id e3mr13035859wrp.205.1551727553173; Mon, 04 Mar 2019 11:25:53 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a434-efbf-3a29-731e.holly.idiocy.org. [2001:8b0:3f8:8129:a434:efbf:3a29:731e]) by smtp.gmail.com with ESMTPSA id s127sm7056365wmf.39.2019.03.04.11.25.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 11:25:52 -0800 (PST) Date: Mon, 4 Mar 2019 19:25:50 +0000 From: Alan Third To: Robert Pluim Subject: Re: bug#34710: the mode line flicks on set-window-vscroll Message-ID: <20190304192550.GB21727@breton.holly.idiocy.org> References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Mar 04, 2019 at 10:06:20AM +0100, Robert Pluim wrote: > Alan Third writes: > > > I believe it’s a problem with running redisplay rapidly (sit-for) and > > the way we’re drawing in NS. We end up with macOS demanding a screen > > update, and Emacs unable to deliver due to there being another > > redisplay coming up. > > > > The patch attached to this discussion doesn’t have the problem: > > > > https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00354.html > > > > However Robert Pluim reported serious performance problems with it. I > > haven’t been able to replicate them. > > I can try it again. Perhaps something in my configuration is causing > this. If you can try and track it down that would be very helpful. The only thing I can think of that could make it very slow is drawing the buffer to the screen, but that really shouldn’t be as slow as you’re experiencing, it is, after all, just drawing an image to the screen. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 16:07:36 2019 Received: (at 34710) by debbugs.gnu.org; 4 Mar 2019 21:07:36 +0000 Received: from localhost ([127.0.0.1]:60283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0uoC-0000Dc-Ah for submit@debbugs.gnu.org; Mon, 04 Mar 2019 16:07:36 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:51206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0uo9-0000DO-ML for 34710@debbugs.gnu.org; Mon, 04 Mar 2019 16:07:34 -0500 Received: by mail-wm1-f45.google.com with SMTP id n19so550693wmi.1 for <34710@debbugs.gnu.org>; Mon, 04 Mar 2019 13:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=TPXfpSxPnY5cQWI++Grv+UCalfmpyVgAPWBYqWiRsAo=; b=AxJ3RS4hzARzU41lkndBcp0aBT/8lU0stPz3atAR+OO2WqcqdvQqVzln66Q27Sq+Zc NpjIRvSlqHf7QWK4NxSiaBoFiWfye5dlvNgvUxwzTJFza+PZlAcdyZWM7iZCw/cwbnDX RQIWc62Chl+gb8tI4JaAOKQd4rJ5oZ8WUMGrAX6TVBpL8EfPlJqLAEGkEuXzHbXkoq1i TKf40aW0R+VpmNDnfpKtzsZYgVLJiLTilHeDtCadKLseUD48EcSL2YwkSGhsqYRgBR/8 DMCCHJOUFOg5h7zQE8UPVesDOlk5jOBXkFAVIOkvtEgf+N15N5YFXUdnDOWaofYwZ+hl lNfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=TPXfpSxPnY5cQWI++Grv+UCalfmpyVgAPWBYqWiRsAo=; b=E+EV1VQ7QPsb/IcM3r6conABwtIoyg8LZUur8cmzdsF4F7t7WOOZVB34Cy7r3gndaH jnqhbvTTmIffmgnsTfwiBsjcO6ZltukbOFaDMmkcT0hhY3Clcq4NXQW66eS15McbDHz2 JnU2QQpfA250vCnM3KMEgKfi0vIK6QaGe63S40bdoR3mBpVjLldtfw3VZHgvWcr/enc4 o0HSb3Y4FRMCpDBLcPGYY8rBYUnyakPd1RV13bBgDgcdwl2LxTFs1k0TiVHPEiq9mwzG vVqtol8drlJYGZVPMyt2apybDsWpR4uTYbFO07A+DowWHJq+W/8mliQRTl1HJsNYDvjc rwdQ== X-Gm-Message-State: APjAAAV7MRY49DcZISNvpzgS/65ANXB3+l8o9vefIGa7V/TcmkKBG1B4 jAzxdbjyg87q6yiY3+dSV5s8D0hN X-Google-Smtp-Source: APXvYqxfeUfFzTnRDP4OHgZbVNDcJdPdbKYBR7IlQnSWXV+okqFRW2e/kXXKft15pWIufBHM9KH7rw== X-Received: by 2002:a1c:670a:: with SMTP id b10mr645149wmc.82.1551733647325; Mon, 04 Mar 2019 13:07:27 -0800 (PST) Received: from rpluim-mac ([2a01:e34:ecfc:a860:3cf2:e5dc:fbbc:2d9e]) by smtp.gmail.com with ESMTPSA id a131sm3196694wmh.34.2019.03.04.13.07.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Mar 2019 13:07:26 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34710: the mode line flicks on set-window-vscroll References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> <20190304192550.GB21727@breton.holly.idiocy.org> Date: Mon, 04 Mar 2019 22:07:25 +0100 In-Reply-To: <20190304192550.GB21727@breton.holly.idiocy.org> (Alan Third's message of "Mon, 4 Mar 2019 19:25:50 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > On Mon, Mar 04, 2019 at 10:06:20AM +0100, Robert Pluim wrote: >> Alan Third writes: >>=20 >> > I believe it=E2=80=99s a problem with running redisplay rapidly (sit-f= or) and >> > the way we=E2=80=99re drawing in NS. We end up with macOS demanding a = screen >> > update, and Emacs unable to deliver due to there being another >> > redisplay coming up. >> > >> > The patch attached to this discussion doesn=E2=80=99t have the problem: >> > >> > https://lists.gnu.org/archive/html/emacs-devel/2019-02/msg00354.html >> > >> > However Robert Pluim reported serious performance problems with it. I >> > haven=E2=80=99t been able to replicate them. >>=20 >> I can try it again. Perhaps something in my configuration is causing >> this. > > If you can try and track it down that would be very helpful. > > The only thing I can think of that could make it very slow is drawing > the buffer to the screen, but that really shouldn=E2=80=99t be as slow as > you=E2=80=99re experiencing, it is, after all, just drawing an image to t= he > screen. To be clear: the slowness I experience does not seem wholly related to redisplay: if I move down in a file using 'C-n', without the buffer scrolling, the movement is very slow. Then when it does actually update the screen because I=CA=BCve moved point off the bottom, it is again slow (by a rough measurement, moving from the top to the bottom of my org file using C-v is approximately twice as slow). (this is all with 'emacs -Q') I=CA=BCve just run another test where I scroll my org file programmatically rather than interactively, and then your patch makes no discernable difference: (benchmark-run 1000 (goto-char (point-min)) (condition-case nil (while t (scroll-up-command)) (error nil))) =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 takes ~15 seconds in both vanilla emacs-26 and with your patch. Are there any other tests you'd like me to run? (I know nothing about macOS profiling tools) Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 04 17:46:03 2019 Received: (at 34710) by debbugs.gnu.org; 4 Mar 2019 22:46:03 +0000 Received: from localhost ([127.0.0.1]:60369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0wLT-0004bb-2l for submit@debbugs.gnu.org; Mon, 04 Mar 2019 17:46:03 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:38591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0wLR-0004at-QD for 34710@debbugs.gnu.org; Mon, 04 Mar 2019 17:46:02 -0500 Received: by mail-wr1-f51.google.com with SMTP id g12so7336260wrm.5 for <34710@debbugs.gnu.org>; Mon, 04 Mar 2019 14:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=/A9lkkYZprVZWSj5NAD67q2R2AX2IBFtSacFp/oQvt4=; b=lw1v/pbR3H8B01P4Z/tVMqFNzL0TtUJlwJbXmdJ/vojdyaWsQBbwRq8RFfbZrhTdQ9 5dYV3cDIdHLwkOn+W53FgywSY2J3zvMB6dSJkDz9pCUinDlNdmceuf/2egDfRFkCL/sJ cQmLE1qsHdByCpvWahBVu1tfz+toW1uvzpEuU2oPJWpEkr6HWM1u3q/qeXPbVyvofzJf 2giGBhd3vgFP9U4Bo7KJr7wMC7LM3XP0X11a12qPDWCzim1H9ceuAHylNL4pAUr2fjFu jG5o8RmoTk6OM41Fy07xbEaZwSePmNDtvJ3MibQru8lQvrqY64+uqdJBK6I16HuCqiVk OQqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=/A9lkkYZprVZWSj5NAD67q2R2AX2IBFtSacFp/oQvt4=; b=EPpjXG3AsJyPakhMFQMZu8O2D4vj7PbaSI0gcRs6E/rMUm3OzkfKOzFWhhz/X4/Jbp V4tnBzyaW8//Ji4IakS413pA+muVDDEr6UJ8R9we7u75h184dn6KZCN4P2zy2QgFwCpR 3NG8TdegQHCeZtVuaCz7aMJHpsv1SYT6D/MpQuxMSoePlY1nCRvz4FrFdKbRJsQRvevC YIQUafnGjeC7CV0LUhapgw6X28WOFsYqvtni0K4Faqk9DGfJVgwMNRavucCTOiUcpuGZ Y8hB2fEWfYb8jjvt5EH0hxmxU2cO1NNVBaRSn6XWhi5y3FQ+4W4OQZMDAKgb/uiDNCKU dOKQ== X-Gm-Message-State: APjAAAWXWut+ahgRECPHBVV1SA2lDOklaUsxOzRJwjv40QL6hsFPm3NN vDtsXoCnkcXtd8NFZPybSN0= X-Google-Smtp-Source: APXvYqw2CBoPL7peHju93A1pCI0s6iLF+aREVfs/ib9BQsBgFfrCNFGmTPqOtUzRhp0bzR9MZ3/JYQ== X-Received: by 2002:a5d:4711:: with SMTP id y17mr14957234wrq.141.1551739555825; Mon, 04 Mar 2019 14:45:55 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a434-efbf-3a29-731e.holly.idiocy.org. [2001:8b0:3f8:8129:a434:efbf:3a29:731e]) by smtp.gmail.com with ESMTPSA id b18sm5302770wro.80.2019.03.04.14.45.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 14:45:55 -0800 (PST) Date: Mon, 4 Mar 2019 22:45:53 +0000 From: Alan Third To: Robert Pluim Subject: Re: bug#34710: the mode line flicks on set-window-vscroll Message-ID: <20190304224553.GB22198@breton.holly.idiocy.org> References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> <20190304192550.GB21727@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, Mar 04, 2019 at 10:07:25PM +0100, Robert Pluim wrote: > To be clear: the slowness I experience does not seem wholly related to > redisplay: if I move down in a file using 'C-n', without the buffer > scrolling, the movement is very slow. Then when it does actually > update the screen because Iʼve moved point off the bottom, it is again > slow (by a rough measurement, moving from the top to the bottom of my > org file using C-v is approximately twice as slow). > > (this is all with 'emacs -Q') > > Iʼve just run another test where I scroll my org file programmatically > rather than interactively, and then your patch makes no discernable > difference: > > (benchmark-run 1000 > (goto-char (point-min)) > (condition-case nil > (while t > (scroll-up-command)) > (error nil))) > > takes ~15 seconds in both vanilla emacs-26 and with your patch. > > Are there any other tests you'd like me to run? (I know nothing about > macOS profiling tools) Thanks for trying. I can’t think of anything to test right now but I’ll have a think and get back to you. What sort of hardware are you running on? Are you running Emacs fullscreen on a 4k display or similar? -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 05 04:06:13 2019 Received: (at 34710) by debbugs.gnu.org; 5 Mar 2019 09:06:13 +0000 Received: from localhost ([127.0.0.1]:60555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h161d-0002mU-1D for submit@debbugs.gnu.org; Tue, 05 Mar 2019 04:06:13 -0500 Received: from mail-ed1-f49.google.com ([209.85.208.49]:44871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h161b-0002mH-8G for 34710@debbugs.gnu.org; Tue, 05 Mar 2019 04:06:12 -0500 Received: by mail-ed1-f49.google.com with SMTP id b20so6553755edw.11 for <34710@debbugs.gnu.org>; Tue, 05 Mar 2019 01:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=mYO0yXJcJ2e9BMgUddHZoXaA01eH1p2FHCkzlz98uLU=; b=uluoYA1Ejf2fgEOCj8YphcuPMLkMuB9n3OfJ+av0FontyktCs1cv8Hk6uMOvQQ9YXr SeJjIKDszAPplOmU/JDVuXveix13zxTSaDseGSojg1D5l0+UrUh5nEyw3JA2Ts5t4pqU PBUkqQo3CSoog7dz5eW2qSWL4JkUIWvl+jUObo4urrQwRWYkNIGlZdhXmPrAbvElBjRM cEplMjQNWuflh7oA2if0bdg2xafiq7SGrmpouiWZ60ZtVL+wpAWczGv51ZD213GiLLXX pTgq7XClD/KXV0y5Pj/a2yglgzAbon6up0NSe9U+c9RDAN8SmUDTJ5P9Uv42pq+uewom 7GWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=mYO0yXJcJ2e9BMgUddHZoXaA01eH1p2FHCkzlz98uLU=; b=IEQXRMtffjX35YxPsqe5kEEkVmXANX6Q5bIPImEnKSYRRTUpuNUyZx0Pp2f//KCr7c FijcGq40w+OJZ7ggUh0DWreWm0E3yxVjqd1rsQErbSGzPew6XGdG3CisyAhlFPHPQHue cnt+MD53nVkrx8I2m54CcxiQhtWXpLfzNcFWe5G1UViqEvmBdpcC9QTyyfLjLQbBLw1o OpDKoF+aPYFdNu0b+8gMSmENPwmND0OB1NDQonRlB4riQDuXAEn3haE++NVgcBAvRNcJ Kz2u3S/SLImFBhX5/RXstSlaH2Rk73hoyR9+szbM62cmNwxEymU5DANWqCjdkC2TgocI mF2g== X-Gm-Message-State: APjAAAWsRIHbFLT/hNpE+JRtQxw/YRqKvXDbJqKYWwGshMVpouQVmtmJ r/lHwQDFmIlPPY4VhnhmTZW/VnwQ X-Google-Smtp-Source: APXvYqwwXiKriOwe+uIimlN1A7y3JP0WqIvEXG5w4aNuEnMgTRoEoa3l49WmRiHn3ejrOeM5B7RqDA== X-Received: by 2002:a50:92fb:: with SMTP id l56mr18657311eda.114.1551776765013; Tue, 05 Mar 2019 01:06:05 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id u2sm2733602eds.53.2019.03.05.01.06.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 05 Mar 2019 01:06:03 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34710: the mode line flicks on set-window-vscroll References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> <20190304192550.GB21727@breton.holly.idiocy.org> <20190304224553.GB22198@breton.holly.idiocy.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 05 Mar 2019 10:06:02 +0100 In-Reply-To: <20190304224553.GB22198@breton.holly.idiocy.org> (Alan Third's message of "Mon, 4 Mar 2019 22:45:53 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > On Mon, Mar 04, 2019 at 10:07:25PM +0100, Robert Pluim wrote: >> takes ~15 seconds in both vanilla emacs-26 and with your patch. >>=20 >> Are there any other tests you'd like me to run? (I know nothing about >> macOS profiling tools) > > Thanks for trying. I can=E2=80=99t think of anything to test right now but > I=E2=80=99ll have a think and get back to you. > > What sort of hardware are you running on? Are you running Emacs > fullscreen on a 4k display or similar? It=CA=BCs a late 2018 macbook pro 13", i7 cpu. The external monitors are: (display-monitor-attributes-list) (((name . "Monitor1") (geometry 0 0 1920 1080) (workarea 0 23 1920 1057) (mm-size 594 334) (frames # #) (source . "NS")) ((name . "Monitor2") (geometry -1920 0 1920 1080) (workarea -1920 0 1920 1080) (mm-size 594 334) (frames) (source . "NS"))) so not 4k, and I normally run with multiple non-maximized frames (but my testing was with a single default frame). Robert From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 05 12:09:52 2019 Received: (at 34710) by debbugs.gnu.org; 5 Mar 2019 17:09:52 +0000 Received: from localhost ([127.0.0.1]:33390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1DZg-0001zT-Ct for submit@debbugs.gnu.org; Tue, 05 Mar 2019 12:09:52 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:37542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1DZe-0001zD-Lx for 34710@debbugs.gnu.org; Tue, 05 Mar 2019 12:09:51 -0500 Received: by mail-wm1-f49.google.com with SMTP id x10so3296525wmg.2 for <34710@debbugs.gnu.org>; Tue, 05 Mar 2019 09:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=mRrMoc6RNkF6Q3YxIR7bmS/Qhc22gkSO99UfsGYdKD8=; b=rdg/2104Ctn0WWr0qfbHCxvtsVCYCvXJoFD2zvwJ1GLNLIrKeMQ/FDbjjeTa+lLC+o xTkUzLixynMfupwLfHH68WnXUF32Nm+fVKoq8NvOSiJSQarFcGPt4Th2W+zHiADxYD4W ARvmuiaweSm9R5vSiysrtA6qMY0BvAMeItFCGacaqVT7ounECN2t2PYIKsVaWYuK9Ot9 liwFpgld9G9FxMeMcCyZdbR5RrGHAWS3P58wrjxVHCL978x7HYyqyt9xOPPLAzCoZ3NC giXKxoKzD9uyYh43nbFwV9OKKu9lLUu17Lrr7BbemeHw3cGVzXQqD/nBIs3ohFr4QMqt Gq9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=mRrMoc6RNkF6Q3YxIR7bmS/Qhc22gkSO99UfsGYdKD8=; b=fg7aiKBTsJMPDLzekXTF/tYj1EodylXll/U5kHCHEpQbWDHJjh7rxOnz/QHUE8QEfk IGmNSW/7ZPOQm8HH8VaiWLNdma4HHLKiIu8DtGSQP7JcZxaEV4apPoqAwvYscu0B6PUW FWdssAcF/mTl3/QA7rVISLlveacsgCGkJmzmb19psEsqqHcpY79RMmHG34AI82eyYnDf c7d2oAAhsZrKvzQM+aCXynlsw7HjYbabHKCjyl6QKfLdJlY9cITreDw8KwFYYMfssYgG WDLROznVDWWiRhAd3p08DkIjAqd5ShAsmhm/+jJbaab7zCfzTvxvhbCAmIvxm351vaT6 0sCQ== X-Gm-Message-State: APjAAAUqMtYcg+76LIkSCwZm3Giz9LZmIzOg11uwNBJwZKK5G3RUULAm +u603c+QdMmq3lXhV0s3Gr5pKrLL X-Google-Smtp-Source: APXvYqzWw0SmEk7Jgsi3s26GsoU3YKzIl1uSE6/3ahchalCjGLZ+CoIqIck9zU8dwhE/mkB1nvKwqQ== X-Received: by 2002:a1c:7903:: with SMTP id l3mr3596855wme.22.1551805784278; Tue, 05 Mar 2019 09:09:44 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id p68sm38635wme.45.2019.03.05.09.09.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Mar 2019 09:09:42 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34710: the mode line flicks on set-window-vscroll References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> <20190304192550.GB21727@breton.holly.idiocy.org> <20190304224553.GB22198@breton.holly.idiocy.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Tue, 05 Mar 2019 18:09:41 +0100 In-Reply-To: (Robert Pluim's message of "Tue, 05 Mar 2019 10:06:02 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Pluim writes: > so not 4k, and I normally run with multiple non-maximized frames (but > my testing was with a single default frame). So I=CA=BCve decided that this was all down to key-repeat rate. I had that set to maximum already, but I went into system preferences, set it lower, exited emacs, set it back, and now emacs with your patch is OK. 'Did you try rebooting it'ly yours :-) Robert From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 03:06:33 2019 Received: (at 34710) by debbugs.gnu.org; 6 Mar 2019 08:06:33 +0000 Received: from localhost ([127.0.0.1]:33704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1RZR-0003iN-Co for submit@debbugs.gnu.org; Wed, 06 Mar 2019 03:06:33 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:46495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1RZP-0003iB-FA for 34710@debbugs.gnu.org; Wed, 06 Mar 2019 03:06:31 -0500 Received: by mail-wr1-f43.google.com with SMTP id i16so12235236wrs.13 for <34710@debbugs.gnu.org>; Wed, 06 Mar 2019 00:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Bpq3snHWTj9bJ/N4DpUYxh3fYiUR/wq5pV7MbmLvLXg=; b=iAawvoeJEYLU6ThN8ZZ1Q33xbCLcQBn1+OFp8q/6idVUQJRthyeqK1eSxgfudZ0Rvp +LOspgaf3u9EWSETLc/kfueNV00onOhL0q8qS1VZ+UyghUGAWKQkSau813omWH0K+UFQ mxOHgNWA+l0hP2fg5J4pWDZR771ng8fT/FwIAA5KK1xHrJKEsG+7JRa79UTgfsJVtEGq XXOnTzykn4iajaRMhC/OWWJ4laEKIhuYae3s63fn2PeUj3cYq8sNSO4auIELNQ1lJKF8 KeD5cIPdlT98EE+rhIQZ0AEiMe8v9m4AQuUJQN22EmfKgcrZG1dIp03KcS+DjJb5SNGR kQ9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Bpq3snHWTj9bJ/N4DpUYxh3fYiUR/wq5pV7MbmLvLXg=; b=CKLGPz0lRqke3uIZlMPyX+zdF32PPD6NWLUvmh9C81P22QtwTrdO603aqPTSwDh7dm U39HSJV1tJHE/TyEoAryaVxw4ngEp05YsEfQ+JV4rzgqYI1DmlTwnmlBbmg2JTwMU7Ra DWKj7lAL+9wfJE9f6Os+ENu81AyvpkwP25IFI+rx5eYesaiz+RaoivoD+GSr1a6xJtyA mZRGYm1OX4MtVfQH6ThhV1zrTKrBK050bdQ8Eo+MROhhhuDMd4THaJDD1d0YodZVYAg3 /9VfLpZexnElCG38us4vriwXaCLCHCHrCpbac88dqrkWWYmxBmygrT2PMff7R0tYpJwo Z9Vg== X-Gm-Message-State: APjAAAUkX+eOXQ/GB/rwsMgc+BvrzJ1M0CHACo5ma9F1o0/JD/YDh/bF iAov5Yq7dIPbLV28/q337fA= X-Google-Smtp-Source: APXvYqwb+kfh+DndVe7oiyX7wJkjuX1gXVhOIIsRqQRqThad6bJLWA32DZBgbjWU81hD4p3hpTg3zQ== X-Received: by 2002:adf:e50e:: with SMTP id j14mr2026446wrm.262.1551859584807; Wed, 06 Mar 2019 00:06:24 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a434-efbf-3a29-731e.holly.idiocy.org. [2001:8b0:3f8:8129:a434:efbf:3a29:731e]) by smtp.gmail.com with ESMTPSA id p16sm2030456wro.25.2019.03.06.00.06.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 00:06:24 -0800 (PST) Date: Wed, 6 Mar 2019 08:06:22 +0000 From: Alan Third To: Robert Pluim Subject: Re: bug#34710: the mode line flicks on set-window-vscroll Message-ID: <20190306080622.GA22588@breton.holly.idiocy.org> References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> <20190304192550.GB21727@breton.holly.idiocy.org> <20190304224553.GB22198@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Tue, Mar 05, 2019 at 06:09:41PM +0100, Robert Pluim wrote: > Robert Pluim writes: > > > so not 4k, and I normally run with multiple non-maximized frames (but > > my testing was with a single default frame). > > So Iʼve decided that this was all down to key-repeat rate. I had that > set to maximum already, but I went into system preferences, set it > lower, exited emacs, set it back, and now emacs with your patch is OK. Good to know, but still sounds like performance could be improved. And I still can’t replicate it. Perhaps it’s a combination of multiple factors. Can you try this patch and see if it improves anything, please? modified src/nsterm.m @@ -1168,7 +1168,6 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen) #ifdef NS_IMPL_COCOA [NSGraphicsContext setCurrentContext:nil]; - [view display]; #else block_input (); It’s possible this will cause it to drop frames and make things worse. -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 04:13:32 2019 Received: (at 34710) by debbugs.gnu.org; 6 Mar 2019 09:13:32 +0000 Received: from localhost ([127.0.0.1]:33728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1ScG-0005E5-Ac for submit@debbugs.gnu.org; Wed, 06 Mar 2019 04:13:32 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]:40514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1ScD-0005Dq-PV for 34710@debbugs.gnu.org; Wed, 06 Mar 2019 04:13:30 -0500 Received: by mail-wm1-f53.google.com with SMTP id g20so5055432wmh.5 for <34710@debbugs.gnu.org>; Wed, 06 Mar 2019 01:13:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=1+cV7H5OvtmIHjtKR+K4rtFiQqgQAsHSm7XvmhJhcTw=; b=VYrYPcJqZo8D6d3zlQipQI+LY/eQw2TyFRvpBQwJ0xMUyvgkDKS8lS7fHrSgCukn0A 7UfKIzAaM4CnbT2ZDbwr+uWbxt56qInKrwzBOKgfLg0t0fdLm5ha7p1+ARkd/RlAPBTk fVk0S3g118pGDoPTV1XNPauUOo+fkTzSHDgH2SE+wWsbuqFrtQ7yUjr3QPpIvuI7ynzs ql0LKv47T8Ho4Q+IYPVQ2f+gVQKxsOGw0iCJ78jXyOpfHFHex3bCedTrJ6gLuw7/T4cW BSVnmnaAYPdVhBZKkVI7TQZfGgWPFFnfjnVDpcVG3a/Gt9PVtSDLBs5vw6tFZiR9LUCa fBqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=1+cV7H5OvtmIHjtKR+K4rtFiQqgQAsHSm7XvmhJhcTw=; b=fr4B0SgFcrsjYX88VA89m+vI75DhOHUSbf9a2vTmyicdcc0q6cTkYfmreZkoFldezW zVsqVVR+cwtHw5irSZMRmtdxAWs0Cpxp3u0uNdVfgY2x1HohQRbqDQHTN5MVhj3a5Avu F3KwbFSgeRlZFKCKSok8mqDkVmpWqXjwv2QeKsXpV+6hrvIlRQxyb+luU0H6K4c+zA/I GNCqgd5uA8h27HSjbLuS6cY6GnOycw82Jx34VDCbox9Itk0KMr1fF6JC2f+VVFP37tpl Gq4/NLkNiIgEgd9ckgMRVIBrmQfMj3o4zwhxJlxB++pgzDyrCrXAkwhpnJJmKICdYdws Supg== X-Gm-Message-State: APjAAAXCrZjKnrqv1FtCYh69AZTiIpINCL2xP60xJ9wzH/qFOFfnFUqd ar1atLMDWJaLvQG8ygKv2tlgAEvy X-Google-Smtp-Source: APXvYqweT4Arm/AxoDuXMHiqfeA3z4LoOudqvAoNwEne2cccUthQ/oSZXkKKo6T5ltPjkjRXRZNd0Q== X-Received: by 2002:a1c:63d4:: with SMTP id x203mr1722408wmb.128.1551863603275; Wed, 06 Mar 2019 01:13:23 -0800 (PST) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id f1sm1057926wmh.44.2019.03.06.01.13.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 06 Mar 2019 01:13:21 -0800 (PST) From: Robert Pluim To: Alan Third Subject: Re: bug#34710: the mode line flicks on set-window-vscroll References: <3D005746-B3FB-4915-A406-10DD0935C671@misasa.okayama-u.ac.jp> <20190302201048.GA20712@breton.holly.idiocy.org> <20190304192550.GB21727@breton.holly.idiocy.org> <20190304224553.GB22198@breton.holly.idiocy.org> <20190306080622.GA22588@breton.holly.idiocy.org> Date: Wed, 06 Mar 2019 10:13:21 +0100 In-Reply-To: <20190306080622.GA22588@breton.holly.idiocy.org> (Alan Third's message of "Wed, 6 Mar 2019 08:06:22 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 Cc: Tak Kunihiro , 34710@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > On Tue, Mar 05, 2019 at 06:09:41PM +0100, Robert Pluim wrote: >> Robert Pluim writes: >>=20 >> > so not 4k, and I normally run with multiple non-maximized frames (but >> > my testing was with a single default frame). >>=20 >> So I=CA=BCve decided that this was all down to key-repeat rate. I had th= at >> set to maximum already, but I went into system preferences, set it >> lower, exited emacs, set it back, and now emacs with your patch is OK. > > Good to know, but still sounds like performance could be improved. > > And I still can=E2=80=99t replicate it. Perhaps it=E2=80=99s a combinatio= n of multiple > factors. > > Can you try this patch and see if it improves anything, please? > > modified src/nsterm.m > @@ -1168,7 +1168,6 @@ static NSRect constrain_frame_rect(NSRect frameRect= , bool isFullscreen) >=20=20 > #ifdef NS_IMPL_COCOA > [NSGraphicsContext setCurrentContext:nil]; > - [view display]; > #else > block_input (); >=20=20 > It=E2=80=99s possible this will cause it to drop frames and make things w= orse. That makes no perceptible difference in my not-too-accurate test, which is scrolling my org-file using C-n from top to bottom: =E2=89=85 17 seconds in both cases. Robert From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 19:25:39 2019 Received: (at 34710) by debbugs.gnu.org; 7 Mar 2019 00:25:39 +0000 Received: from localhost ([127.0.0.1]:34808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1gqw-0001jJ-TC for submit@debbugs.gnu.org; Wed, 06 Mar 2019 19:25:39 -0500 Received: from mlsec.cc.okayama-u.ac.jp ([42.127.236.175]:14952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1gqu-0001j2-Go for 34710@debbugs.gnu.org; Wed, 06 Mar 2019 19:25:37 -0500 Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 6a70_12a3_6f61fb92_c307_4a2d_b8e6_07c841a03add; Thu, 07 Mar 2019 09:25:27 +0900 Received: from localhost (unknown [172.24.1.58]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 987FD4C0BCE for <34710@debbugs.gnu.org>; Thu, 7 Mar 2019 09:25:18 +0900 (JST) Date: Thu, 07 Mar 2019 09:25:18 +0900 (JST) Message-Id: <20190307.092518.571442864168442113.tkk@misasa.okayama-u.ac.jp> To: 34710@debbugs.gnu.org Subject: Re: bug#34710: the mode line flicks on set-window-vscroll From: Tak Kunihiro X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: base64 X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 4 Rules triggered EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6497=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6497> : inlines <7028> : streams <1814964> : uri <2808032> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34710 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) V2l0aCBteSBjYXN1YWwgdGVzdCwgdGhlIHBhdGNoIG1ha2VzIHBpeGVsLXdpc2Ugc2Nyb2xsIDUl IGZhc3Rlci4NCg0KDQo+IE9uIE1hciA2LCAyMDE5LCBhdCAxNzowNiAsIEFsYW4gVGhpcmQgPGFs YW5AaWRpb2N5Lm9yZz4gd3JvdGU6DQo+IA0KPiBPbiBUdWUsIE1hciAwNSwgMjAxOSBhdCAwNjow OTo0MVBNICswMTAwLCBSb2JlcnQgUGx1aW0gd3JvdGU6DQo+PiBSb2JlcnQgUGx1aW0gPHJwbHVp bUBnbWFpbC5jb20+IHdyaXRlczoNCj4+IA0KPj4+IHNvIG5vdCA0aywgYW5kIEkgbm9ybWFsbHkg cnVuIHdpdGggbXVsdGlwbGUgbm9uLW1heGltaXplZCBmcmFtZXMgKGJ1dA0KPj4+IG15IHRlc3Rp bmcgd2FzIHdpdGggYSBzaW5nbGUgZGVmYXVsdCBmcmFtZSkuDQo+PiANCj4+IFNvIEnKvHZlIGRl Y2lkZWQgdGhhdCB0aGlzIHdhcyBhbGwgZG93biB0byBrZXktcmVwZWF0IHJhdGUuIEkgaGFkIHRo YXQNCj4+IHNldCB0byBtYXhpbXVtIGFscmVhZHksIGJ1dCBJIHdlbnQgaW50byBzeXN0ZW0gcHJl ZmVyZW5jZXMsIHNldCBpdA0KPj4gbG93ZXIsIGV4aXRlZCBlbWFjcywgc2V0IGl0IGJhY2ssIGFu ZCBub3cgZW1hY3Mgd2l0aCB5b3VyIHBhdGNoIGlzIE9LLg0KPiANCj4gR29vZCB0byBrbm93LCBi dXQgc3RpbGwgc291bmRzIGxpa2UgcGVyZm9ybWFuY2UgY291bGQgYmUgaW1wcm92ZWQuDQo+IA0K PiBBbmQgSSBzdGlsbCBjYW7igJl0IHJlcGxpY2F0ZSBpdC4gUGVyaGFwcyBpdOKAmXMgYSBjb21i aW5hdGlvbiBvZiBtdWx0aXBsZQ0KPiBmYWN0b3JzLg0KPiANCj4gQ2FuIHlvdSB0cnkgdGhpcyBw YXRjaCBhbmQgc2VlIGlmIGl0IGltcHJvdmVzIGFueXRoaW5nLCBwbGVhc2U/DQo+IA0KPiBtb2Rp ZmllZCAgIHNyYy9uc3Rlcm0ubQ0KPiBAQCAtMTE2OCw3ICsxMTY4LDYgQEAgc3RhdGljIE5TUmVj dCBjb25zdHJhaW5fZnJhbWVfcmVjdChOU1JlY3QgZnJhbWVSZWN0LCBib29sIGlzRnVsbHNjcmVl bikNCj4gDQo+ICNpZmRlZiBOU19JTVBMX0NPQ09BDQo+ICAgW05TR3JhcGhpY3NDb250ZXh0IHNl dEN1cnJlbnRDb250ZXh0Om5pbF07DQo+IC0gIFt2aWV3IGRpc3BsYXldOw0KPiAjZWxzZQ0KPiAg IGJsb2NrX2lucHV0ICgpOw0KPiANCj4gSXTigJlzIHBvc3NpYmxlIHRoaXMgd2lsbCBjYXVzZSBp dCB0byBkcm9wIGZyYW1lcyBhbmQgbWFrZSB0aGluZ3Mgd29yc2UuDQo= From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 25 07:02:25 2020 Received: (at control) by debbugs.gnu.org; 25 Jan 2020 12:02:25 +0000 Received: from localhost ([127.0.0.1]:55054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivK8v-0006te-0q for submit@debbugs.gnu.org; Sat, 25 Jan 2020 07:02:25 -0500 Received: from mail-wr1-f41.google.com ([209.85.221.41]:45733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ivK8t-0006oq-6R for control@debbugs.gnu.org; Sat, 25 Jan 2020 07:02:23 -0500 Received: by mail-wr1-f41.google.com with SMTP id j42so5208347wrj.12 for ; Sat, 25 Jan 2020 04:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=1Kt2yv/W4Gx0id4J1+tXe4ywW+EwUDTuXhcRHno1hkg=; b=ZiljZub8Osbj5TWrCFBeYt/JjglNDQ0OHimsNAnT717aD+FCR5niff7bMBWjFyKtCx gp+ZqbJQ6DD4NWLimoArtk1uT3AxSfnJ1ABFhKFnjJgO4MfX88V7G5zR0RBoMtiJMgUj ZufiFRgwQ0qc3BWJ0aIa00LITHDA+K1XtwmeVVU3VWtSbN3a0/qMYtpOfSaNC0U4V8jR rhglKoebtWIuXUIR8e+cEr74XoRlahYQvg0Ws5IWclChT3885TeE+48SzuS0BWUenoh9 RD3SQ6vW5A18iBc2H9ruwz6TohTdGXdDarY9YRWWyCAmayCVrtp0no1LpruSKDO4rdIo wZvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=1Kt2yv/W4Gx0id4J1+tXe4ywW+EwUDTuXhcRHno1hkg=; b=BvPkIM4+94hlV3CVBTB93VtC/HMVvlNm0+DUc4s5FQyCC+T3Cr+xAd3D011iH0EW1x donADpIAgDLbVwMqWKltDtNqNbtvMfsS3IkxXdUQPpVk0i/FehY0E4XKJoBW4rRFjdWJ /k3XJ+mSLGwZwjk9kEK2lp+crVuqFTKyuLOhof0/xWzF3Ku0+fqKcJ1jYp/DtwapheLQ JKHLrC7psTcorHG1nW+MLAPIGJVxBQIIFQUnFFuP4LqfeAcGMqaHoKqAmdDoNl6Tnujc Z/GZupcDAFtcdEXByf1b54Tleeaz3B6wbitwtdky/dR4M0ALFTgqHak6jxUnVUrBmSCB vNCQ== X-Gm-Message-State: APjAAAVxjRQPzkwy0gHyDOY7GdrXoo0NHJFKG8Xtpn4/PQ4LDt/EQhUJ eha8x9nQAD18m7FJixaosn1LlpHB X-Google-Smtp-Source: APXvYqzDQjyNsBVscvCOoVFyrj/TzUn19cE3J8yRtoG/c4rvGk44ngfS6UyBn99fUGaywnDTWERoLg== X-Received: by 2002:a5d:5403:: with SMTP id g3mr10748707wrv.302.1579953737084; Sat, 25 Jan 2020 04:02:17 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-c952-042c-63d5-ffbd.holly.idiocy.org. [2001:8b0:3f8:8129:c952:42c:63d5:ffbd]) by smtp.gmail.com with ESMTPSA id 18sm9988916wmf.1.2020.01.25.04.02.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jan 2020 04:02:16 -0800 (PST) From: Alan Third To: control@debbugs.gnu.org Subject: control message for bug #34127 Date: Sat, 25 Jan 2020 12:02:15 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) severity 34127 minor severity 34710 minor severity 31904 minor merge 34127 32932 merge 34710 32932 merge 31904 32932 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 28 13:23:42 2020 Received: (at control) by debbugs.gnu.org; 28 Jan 2020 18:23:42 +0000 Received: from localhost ([127.0.0.1]:32864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwVWX-0007Bo-Pw for submit@debbugs.gnu.org; Tue, 28 Jan 2020 13:23:41 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:37648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwVWW-0007Ba-9A for control@debbugs.gnu.org; Tue, 28 Jan 2020 13:23:40 -0500 Received: by mail-wm1-f43.google.com with SMTP id f129so3663818wmf.2 for ; Tue, 28 Jan 2020 10:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:message-id:to:from:subject; bh=2s3BUyd7fD8wsGetTvKEYuhU4xVoUrGpbZhI+p/yD6A=; b=BUwl19Qqce+shEv5M25e7V0JtOJmg5aghwi7X3Z+wCrDc6yyo12dMQE3dwKPQwmx1H sEHOtAeVqqW6upruFxw3FSvIMhh8+HjP1Yc+6Y9UtDKYeVyKIHMZblOysUUFaqnv+w8T XvQ1va+0dBnv8DEX7zcvVqMJ5RSLKyYZ0aGeu4NfVZ4GNWOsd3rzrIwmf0oQG3NoGoJo ClLHil1/6+NxEbgjcWtQxXHGsdr+YYERviIjVRvxvqRy6MbKX3GKLqZsV+jP2/3HautX 27b3qpRBBW3xuHfeyWmt0L31O57WxJSyVbRtcfS7xQdJ0oSU7mgEjoOxLgQ17ksXvD8e 5Z3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=2s3BUyd7fD8wsGetTvKEYuhU4xVoUrGpbZhI+p/yD6A=; b=IUZVzVK5bfw8FVrn8qKy/dYk12XKR6mED4KHm1OlcmQsX2z1l4wRPd/bnU0vP12xyU tVGCCJzO4RxMVoFtvtDvNBmTrz/DVa5p7mIgXd2s2IkNoB1K2HiGBZkjcBAVKmqfLCOP GXr/CFbv1DfGAZrMdUhB8ZBuWOlF3yVtX/5AmiUDhhMcjThwVYjmKzqe5vLh6008kFRT kdJl104Duj69FT+EWC7WqE/DYvBG379pnSh4g5MP5Dq/zxzCoY6623bbyEd+a3b6b+kt 2D30tk5h3mFEmfpdxXrQF3AqK9B9oMHT79+lP9llZQeG7CFex1pumQWyBP2qICmfWmIw ucyg== X-Gm-Message-State: APjAAAUj3uFqdEaaNAIqHMaggoru0+Fw2SufWc/v722YDslbEzufsYUl nVRecdqhnQjqWDNWlZqVIMljoNrX X-Google-Smtp-Source: APXvYqxX8Y0R5GE6npk2Xa0YxTHqSA6qvwwIMY7/EuUJb+OpC4uLyKVyAi4vu+5CV0LuNpKRvMM3qA== X-Received: by 2002:a1c:a404:: with SMTP id n4mr6437430wme.186.1580235813424; Tue, 28 Jan 2020 10:23:33 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-796d-1d84-62c5-a5b9.holly.idiocy.org. [2001:8b0:3f8:8129:796d:1d84:62c5:a5b9]) by smtp.gmail.com with ESMTPSA id i204sm4266826wma.44.2020.01.28.10.23.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2020 10:23:32 -0800 (PST) Date: Tue, 28 Jan 2020 18:23:24 +0000 Message-Id: To: control@debbugs.gnu.org From: Alan Third Subject: control message for bug #32932 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 32932 fixed close 32932 28.1 quit From unknown Sat Jun 14 00:05:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Mar 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator