From unknown Fri Jun 20 07:26:16 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#42834 <42834@debbugs.gnu.org> To: bug#42834 <42834@debbugs.gnu.org> Subject: Status: 28.0.50; macOS scroll and movement latency slows when display changes Reply-To: bug#42834 <42834@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:26:16 +0000 retitle 42834 28.0.50; macOS scroll and movement latency slows when display= changes reassign 42834 emacs submitter 42834 Doug Davis severity 42834 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 15:33:20 2020 Received: (at submit) by debbugs.gnu.org; 12 Aug 2020 19:33:20 +0000 Received: from localhost ([127.0.0.1]:45632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5wUw-0000Yb-Li for submit@debbugs.gnu.org; Wed, 12 Aug 2020 15:33:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:51134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5vnM-0007q4-Nu for submit@debbugs.gnu.org; Wed, 12 Aug 2020 14:48:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5vnM-0007kB-5m for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 14:48:16 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5vnJ-0004EG-QB for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 14:48:15 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 458865C00A4; Wed, 12 Aug 2020 14:48:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 12 Aug 2020 14:48:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=AGkYXJi7oFp1BxMRja8pSIuvNw 7UqWRU+p9z1HXo9zU=; b=nXjaM8cMxWKylAtRWnUgOG79veUbqeaHqJKW8n0iNU s8jy0MIZ+PdQ4zORuUncLQ2bVxa7A1OD4SxTQRCJrfaZ9gqnasnnTNcJYJKr6RqR V0HmXehUppdefKp/Ulw4d1+qQhClS1/My/o6OiVF4Jdop1xVUrhBWwyth/J3HJVd X61/+PzamqPWxEdKkZSUz4e7jjQ2/izHiwNSRizW/zsq3Z4XW77nLPqXjECz8QdE kNg490If7ZUec8pzD9YNMKbrA0rGiUysvxnf6NJYf/I+yDaTEG+WCT6SNkJFQjY8 Ig2KHfTALYp9ZvKwQgeqxZmC9qdrjgb5d9p7N4xVdycA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=AGkYXJ i7oFp1BxMRja8pSIuvNw7UqWRU+p9z1HXo9zU=; b=I3YFwhbG8E5OGP4E4YG6vM 841EbNJqaDrrNeC40eui583TMgaF+YtO6mZWB48Vc/GvccjB9Xku0jvUdM7b47EH u3MHJWogVWppGUHHDiz9IyItM3Mm5PHucO1Vb0fic8lNU9K0iSjsW8mvgYIC37Zv ciyRRxKh95oOFYgIWEGxtPVSCIUWbuJk0+V+DxK6gKWKNPC+bDSreinDDMaIKCn5 8WCQtQxH8BRMNAbpuEIoiBqqoDLEzJypQ85f6wJkYp5xdBCliPv//mhWjgI3x+Fl bzIOZSXHFbs1Qe+ECHSSnge5vH52U5AvxJ/3dCmP/zvRu6AZWyiX97rfNQYF0aFg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrledvgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttd dtjeenucfhrhhomhepffhouhhgucffrghvihhsuceouggurghvihhsseguuggrvhhishdr ihhoqeenucggtffrrghtthgvrhhnpefhheethfekteeigefggeeigeehveffkeeuveffud efffekudffleetudegvdehteenucfkphepvdegrdelkedrjeeirdektdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguuggrvhhishesuggurg hvihhsrdhioh X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 67FD130606E9; Wed, 12 Aug 2020 14:48:10 -0400 (EDT) From: Doug Davis To: bug-gnu-emacs@gnu.org Subject: 28.0.50; macOS scroll and movement latency slows when display changes Date: Wed, 12 Aug 2020 14:48:08 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.28; envelope-from=ddavis@ddavis.io; helo=out4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/12 14:48:11 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 12 Aug 2020 15:33:17 -0400 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: -2.6 (--) I'm observing this behavior on a MacBook Pro running macOS 10.15 initial condition: laptop is closed and plugged into an external display over thunderbolt; I start and use Emacs with expected performance. After unplugging the external display and opening the laptop to use by itself, Emacs (which was already running) cursor movement and scrolling latency shoots up (Emacs is just very "sluggish"). If I restart Emacs everything goes back to normal. I'm observing the same behavior with 'emacs -Q'. I don't see the same behavior from Emacs 27.1. In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60= Version 10.15.6 (Build 19G73)) of 2020-08-12 built on top.local Repository revision: a5a0a9c9ca0f0485db2c324a30109f655522800d Repository branch: master Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.6 Recent messages: =E2=80=98epa-file=E2=80=99 already enabled Waiting for git... [2 times] [yas] Prepared just-in-time loading of snippets successfully. Loading /Users/ddavis/.emacs.d/dot-emacs/email.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-ns --with-json --with-gnutls --with-xwidgets 'CFLAGS=3D-mtune=3Dnative -march=3Dnative -O3'' Configured features: JPEG TIFF GIF PNG NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS XWIDGETS JSON PDUMPER LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: company-mode: t rainbow-delimiters-mode: t gcmh-mode: t which-key-mode: t yas-global-mode: t yas-minor-mode: t projectile-mode: t helm-mode: t helm-ff-cache-mode: t helm--remap-mouse-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t show-paren-mode: t global-auto-revert-mode: t whitespace-mode: t override-global-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort flyspell ispell mail-extr emacsbug message rfc822 mml mml-sec gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils winner helm-command helm-elisp helm-eval edebug backtrace helm-info company-oddmuse company-keywords company-etags etags fileloop generator company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-cmake company-semantic company-template company-bbdb company-capf company rainbow-delimiters w3m mailcap doc-view jka-compr image-mode exif timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-favicon w3m-image tab-line w3m-proc w3m-util gcmh doom-gruvbox-theme doom-themes doom-themes-base which-key blacken pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util clang-format xml lsp-pyls lsp-mode lsp-protocol yasnippet-snippets yasnippet xref url-util tree-widget wid-edit spinner pcase network-stream puny nsm rmc markdown-mode color inline imenu ht f ewoc bindat flycheck rx rg rg-info-hack rg-menu transient rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header helm-projectile projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs helm-mode helm-files helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp helm-utils helm-help helm-types helm-config helm async-bytecomp helm-global-bindings helm-easymenu helm-source eieio-compat helm-multi-match helm-lib async pretty-hydra s dash-functional hydra lv visual-fill-column crux tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell parse-time iso8601 ls-lisp thingatpt exec-path-from-shell auto-package-update finder-inf dash paren dired dired-loaddefs vc vc-dispatcher epa-file epa derived epg epg-config autorevert filenotify whitespace project edmacro kmacro org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs server cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core display-line-numbers tex-site w3m-load info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 504153 435087) (symbols 48 40200 489) (strings 32 159414 63817) (string-bytes 1 4857806) (vectors 16 62970) (vector-slots 8 736507 420998) (floats 8 462 1264) (intervals 56 448 254) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 17:24:21 2020 Received: (at 42834) by debbugs.gnu.org; 12 Aug 2020 21:24:21 +0000 Received: from localhost ([127.0.0.1]:45678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5yEP-0003Fp-Fk for submit@debbugs.gnu.org; Wed, 12 Aug 2020 17:24:21 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:41806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5yEN-0003Fb-KZ for 42834@debbugs.gnu.org; Wed, 12 Aug 2020 17:24:20 -0400 Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 1F44D562; Wed, 12 Aug 2020 23:24:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1597267453; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=957; bh=sKqh1QO+aahSGZcfPdmKu9vV7G2mah3kWzrpi5kUsrA=; b=uAKLbQOSMCQHpAV0SW3qO4MKPyPnP6dEsVAs/HW+KKCAtpuuuEpccerFyLZRvuYr CljvDSO/q1+r6T43Wfp26hv4VqlpqnMX2aMyJhMIYC0N8EaI8cgD8T/0RVM5JF3Zn3G 6RClTaX+zoY1FBTmkBqMqW/+acWAbEb48xUnrydJT2C5yjpIeDRCRlOWNx9vK9xhW/b IQjfXWNPKFvPZkAWhy0GcbW4nHvfzAgQQVAs7kMdDEbHDljIT7bcfKqy39FMhnoWSkY mSu2dh6LNu1pDpeuMkmGbBpPZAkoLIc7sCDsdvEA8Dyyu13t0c9KndhuLs2ZmbUhToM 28Exkne43A== Received: by smtp.mailfence.com with ESMTPA ; Wed, 12 Aug 2020 23:24:08 +0200 (CEST) Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 338D120244A7FF; Wed, 12 Aug 2020 22:24:07 +0100 (BST) Date: Wed, 12 Aug 2020 23:24:10 +0200 (CEST) From: Alan Third To: Doug Davis Subject: Re: bug#42834: 28.0.50; macOS scroll and movement latency slows when display changes Message-ID: <20200812212407.GA42658@breton.holly.idiocy.org> Mail-Followup-To: Alan Third , Doug Davis , 42834@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Flag: NO X-Spam-Status: No, hits=-2.9 required=4.7 symbols=ALL_TRUSTED, BAYES_00 device=10.2.0.1 X-ContactOffice-Account: com:241649512 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42834 Cc: 42834@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.7 (-) On Wed, Aug 12, 2020 at 02:48:08PM -0400, Doug Davis wrote: > I'm observing this behavior on a MacBook Pro running macOS 10.15 > > initial condition: laptop is closed and plugged into an external display > over thunderbolt; I start and use Emacs with expected performance. After > unplugging the external display and opening the laptop to use by itself, > Emacs (which was already running) cursor movement and scrolling latency > shoots up (Emacs is just very "sluggish"). If I restart Emacs everything > goes back to normal. I'm observing the same behavior with 'emacs -Q'. I > don't see the same behavior from Emacs 27.1. Hi, Thanks for your report, I haven't seen this myself. Do you see the same thing going the other way? (laptop screen -> monitor) Is your monitor a retina screen? NS xwidgets were just added today, did you see this before? (or have you just tried Emacs 28 for the first time today?) Thanks! -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 18:59:49 2020 Received: (at 42834) by debbugs.gnu.org; 12 Aug 2020 22:59:49 +0000 Received: from localhost ([127.0.0.1]:45903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5zin-000485-Cy for submit@debbugs.gnu.org; Wed, 12 Aug 2020 18:59:49 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5ycE-0003ux-4S for 42834@debbugs.gnu.org; Wed, 12 Aug 2020 17:48:59 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BF9155C0102; Wed, 12 Aug 2020 17:48:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 12 Aug 2020 17:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=HQ923UTOh7FrnwboP6LZMDt0zd Lq+g8p7oMxEXxXBwU=; b=nDmNAFIKVnXrlcpOOVr0PNfLkI0JXULwZcg7PcSRS/ r9x2Bov03q4oa3641JXwR/4UKeLlvsX5xTZUCeNQOvYqdTyF4wOVKO/F068Ijfeg ILp9XMIP4PlmrVJnYYcURJuh8s4tPDg06haqH1ZZaA9KiRk+KezZy7VJZpD5p1i/ 5c05V2WKS529EF8A0ZWRKoYn2kiQjByDfMxvWKdF3/1rKawyw7QpQBIbyLZAQwfy UgEfmpcbFJT8Jzb16kgUm40+jbEcc8dkYW51USfcIVu4P0WPk/tGjuWluV3EhnKU u4Dh8OUGC4p0pmoTnrUTagYKhZQzGNV6OGYJdicVvYbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=HQ923U TOh7FrnwboP6LZMDt0zdLq+g8p7oMxEXxXBwU=; b=H6zeofW/uFeyo+aVY9+ZsZ ymNTynBrmRpNiG3Y0id+Y3JCPODItAsvI1XPqDw5ZxSbXAiq9Iyo35s5XZ+hCo1Q G4Xm2l8Rp4/X1dPYTL9wg+J4JlGDp7G5JCM3bEbUJ6ZDCt0/rMjpk2KIAssH/5JT CQHY5XR/EnngmurU6tY2LM3qEhUxWJa287nEUn5RT0nXAa+9y+9nfo716DZoQMoC jrJ4VGZCd7JsXhiT2uotCIltzzoju7tqQ6vJUb5Zm+1d8uOtIm6OlvM2sLjF7BxY 3jPAD1ZOVgfipBfaOzmwvgLhSfdhs3GZcUZKXMXz6ocz0sd6A/f6D46PPWsT0EWA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrleefgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhouhhgucff rghvihhsuceouggurghvihhsseguuggrvhhishdrihhoqeenucggtffrrghtthgvrhhnpe duffffvefftdffkefgveeugffhvdfgueehgfdugeevgeduieevjedvtdetjefgveenucfk phepvdegrdelkedrjeeirdektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpeguuggrvhhishesuggurghvihhsrdhioh X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 4971430600A3; Wed, 12 Aug 2020 17:48:52 -0400 (EDT) References: <20200812212407.GA42658@breton.holly.idiocy.org> User-agent: mu4e 1.4.10; emacs 28.0.50 From: Doug Davis To: Alan Third Subject: Re: bug#42834: 28.0.50; macOS scroll and movement latency slows when display changes In-reply-to: <20200812212407.GA42658@breton.holly.idiocy.org> Date: Wed, 12 Aug 2020 17:48:47 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42834 X-Mailman-Approved-At: Wed, 12 Aug 2020 18:59:47 -0400 Cc: 42834@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.7 (-) Hi Alan, Alan Third writes: > On Wed, Aug 12, 2020 at 02:48:08PM -0400, Doug Davis wrote: >> I'm observing this behavior on a MacBook Pro running macOS 10.15 >> >> initial condition: laptop is closed and plugged into an external display >> over thunderbolt; I start and use Emacs with expected performance. After >> unplugging the external display and opening the laptop to use by itself, >> Emacs (which was already running) cursor movement and scrolling latency >> shoots up (Emacs is just very "sluggish"). If I restart Emacs everything >> goes back to normal. I'm observing the same behavior with 'emacs -Q'. I >> don't see the same behavior from Emacs 27.1. > > Hi, Thanks for your report, I haven't seen this myself. > > Do you see the same thing going the other way? (laptop screen -> monitor) Ah yes, forgot to mention that- seeing it both ways. > Is your monitor a retina screen? Yeah the MacBook is retina and the external display is 4k. > NS xwidgets were just added today, did you see this before? (or have > you just tried Emacs 28 for the first time today?) After seeing the new xwidgets patches that went in today I recompiled the master branch to experiment a bit, but I first hit this issue a couple of months ago when I first experimented with Emacs 28- I should have reported the bug earlier, sorry about that (xwidgets actually brought me back to playing with 28 after staying with 27 recently). Cheers, Doug From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 11:00:41 2020 Received: (at 42834) by debbugs.gnu.org; 13 Aug 2020 15:00:41 +0000 Received: from localhost ([127.0.0.1]:50647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Eie-0007ap-VF for submit@debbugs.gnu.org; Thu, 13 Aug 2020 11:00:41 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:47306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Eia-0007aF-Tt for 42834@debbugs.gnu.org; Thu, 13 Aug 2020 11:00:37 -0400 Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 8D50A1D14; Thu, 13 Aug 2020 17:00:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1597330830; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=1535; bh=cXOy/lUtyANklG4SZs5dnVD/En2pElyAtDNLedDY7Iw=; b=pAVER1i/96P8H4tQwN8hglr+C/m5zb/VreLH59Ln04fAZxV1s+bgXas+cMvdDUmy e4JJOFGggVNySJruWU9hf+WOFa99ykcmN6uVVF5ngwwatieCVTOobtC4pOtk7gh9nAr SZvyqJ73kCozH30/fRBFKjRsjxzXytBZPitHN9AJLa8qXecs/MgjWCJysTaTfil1IQC FVuPQdXD+92wey811FhyxBsQeNqI6Jk1TOsWrtjuloL4C1r+rFOxLtFudvyvq1wuzA3 zxoNc9Wc0Iafpp0pQWQ+cOWuSrFBoAsYlvw1wFY+tfIP2djjcj+HIUZYEjL2hTi8VEd khOhG9W8QA== Received: by smtp.mailfence.com with ESMTPA ; Thu, 13 Aug 2020 17:00:26 +0200 (CEST) Received: by breton.holly.idiocy.org (Postfix, from userid 501) id DF05E20248161F; Thu, 13 Aug 2020 16:00:24 +0100 (BST) Date: Thu, 13 Aug 2020 17:00:27 +0200 (CEST) From: Alan Third To: Doug Davis Subject: Re: bug#42834: 28.0.50; macOS scroll and movement latency slows when display changes Message-ID: <20200813150024.GB26932@breton.holly.idiocy.org> Mail-Followup-To: Alan Third , Doug Davis , 42834@debbugs.gnu.org References: <20200812212407.GA42658@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Flag: NO X-Spam-Status: No, hits=-2.9 required=4.7 symbols=ALL_TRUSTED, BAYES_00 device=10.2.0.1 X-ContactOffice-Account: com:241649512 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42834 Cc: 42834@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.7 (-) On Wed, Aug 12, 2020 at 05:48:47PM -0400, Doug Davis wrote: > > Do you see the same thing going the other way? (laptop screen -> monitor) > > Ah yes, forgot to mention that- seeing it both ways. Excellent! > > Is your monitor a retina screen? > > Yeah the MacBook is retina and the external display is 4k. I think I know what's going on. If you don't use the exact same settings for the drawing buffer as for the screen then some very slow conversion processes kick in every time you flush the buffer to the screen. Odds are that the monitor and laptop screen have something slightly different, probably a colorspace or something, so when switching from one to the other the drawing buffer retains the settings for the old screen. Can you try the following change in nsterm.m? @@ -8431,18 +8431,10 @@ - (void)windowDidChangeBackingProperties:(NSNotification *)notification if (! [self wantsUpdateLayer]) return; - CGFloat old = [[[notification userInfo] - objectForKey:@"NSBackingPropertyOldScaleFactorKey"] - doubleValue]; - CGFloat new = [[self window] backingScaleFactor]; - - if (old != new) - { - NSRect frame = [self frame]; - [self createDrawingBuffer]; - ns_clear_frame (emacsframe); - expose_frame (emacsframe, 0, 0, NSWidth (frame), NSHeight (frame)); - } + NSRect frame = [self frame]; + [self createDrawingBuffer]; + ns_clear_frame (emacsframe); + expose_frame (emacsframe, 0, 0, NSWidth (frame), NSHeight (frame)); } #endif /* NS_DRAW_TO_BUFFER */ -- Alan Third From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 11:42:33 2020 Received: (at 42834) by debbugs.gnu.org; 13 Aug 2020 15:42:33 +0000 Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6FNB-0002OI-KN for submit@debbugs.gnu.org; Thu, 13 Aug 2020 11:42:33 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:38815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6FN8-0002O4-MT for 42834@debbugs.gnu.org; Thu, 13 Aug 2020 11:42:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BB8E96DB; Thu, 13 Aug 2020 11:42:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 13 Aug 2020 11:42:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddavis.io; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=cZ6ruRWKa+kCxpXsECxXmlEyhy lbHCm5JWuu2VDVsew=; b=xAYP1TWLDMDeR7kW0KgMXKgCu7co6YuqKxq6/6W/wX LxIDFgpu/1fow50GSVdJsr5gLV4ClLEoKaqEdXBCFrWL9KsLs31kMBvxvYolAzRV bL7cXFEsRDWLrjoJJcfJoP0mh0Bv8YnFCfSjgiATMXOR1bfXtefZhPamXBWA3vo3 uHyVKJ9VxFQjCDK1kvJCd3A2H7hiZhKTa+Uuh2nsHe/VpMZkKjdNgErUbTq3RGtB 5l7NUDL0oXC6Hhg/vs3lDKdWduOs1raDRG/8Z8dXc2chBzBTDWi/av6JYDpCu04Z 9oD6C1iN5WFNaoJWuvwHQYKZpFM6zmw+cE1+572h7wAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=cZ6ruR WKa+kCxpXsECxXmlEyhylbHCm5JWuu2VDVsew=; b=f2eE+6buhr1JVBZ3zuzPef inqngF3r3ubYSooBq/YrVsHjjubZbX+s+hZKBSFzxkTG9EeHqEHaIrWlIIIx32Td iTVeKUCQo+xCC4d9Tq9NWnAaJnyS178KZ1Z9oxBN6spyAi5vq6clNxQi/CKVjuUY Yr0f2NtB+1Q/CpJ5YspxdveqZk4pyx+UDTixHvFBlWI2OyXLpJs9CJIwnXjaKtRb U0PZfSxdqN6qXNPXHK+y1jPFiSqCwx80TqNd1615KObrd20XmCL2qFinYvJQa8gR I6bONdd6cbd+hFC14zM0qIV8VcolBIaB56TlKbODBV5J6pZvS0ODnoVy483EZkRA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrleehgdeijecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhouhhgucff rghvihhsuceouggurghvihhsseguuggrvhhishdrihhoqeenucggtffrrghtthgvrhhnpe duffffvefftdffkefgveeugffhvdfgueehgfdugeevgeduieevjedvtdetjefgveenucfk phepvdegrdelkedrjeeirdektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpeguuggrvhhishesuggurghvihhsrdhioh X-ME-Proxy: Received: from localhost (c-24-98-76-80.hsd1.ga.comcast.net [24.98.76.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 5142F328005D; Thu, 13 Aug 2020 11:42:23 -0400 (EDT) References: <20200812212407.GA42658@breton.holly.idiocy.org> <20200813150024.GB26932@breton.holly.idiocy.org> User-agent: mu4e 1.4.10; emacs 28.0.50 From: Doug Davis To: Alan Third Subject: Re: bug#42834: 28.0.50; macOS scroll and movement latency slows when display changes In-reply-to: <20200813150024.GB26932@breton.holly.idiocy.org> Date: Thu, 13 Aug 2020 11:42:21 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42834 Cc: 42834@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.7 (-) Alan Third writes: > On Wed, Aug 12, 2020 at 05:48:47PM -0400, Doug Davis wrote: >> > Do you see the same thing going the other way? (laptop screen -> monitor) >> >> Ah yes, forgot to mention that- seeing it both ways. > > Excellent! > >> > Is your monitor a retina screen? >> >> Yeah the MacBook is retina and the external display is 4k. > > I think I know what's going on. If you don't use the exact same > settings for the drawing buffer as for the screen then some very slow > conversion processes kick in every time you flush the buffer to the > screen. > > Odds are that the monitor and laptop screen have something slightly > different, probably a colorspace or something, so when switching from > one to the other the drawing buffer retains the settings for the old > screen. > > Can you try the following change in nsterm.m? > > @@ -8431,18 +8431,10 @@ - (void)windowDidChangeBackingProperties:(NSNotification *)notification > if (! [self wantsUpdateLayer]) > return; > > - CGFloat old = [[[notification userInfo] > - objectForKey:@"NSBackingPropertyOldScaleFactorKey"] > - doubleValue]; > - CGFloat new = [[self window] backingScaleFactor]; > - > - if (old != new) > - { > - NSRect frame = [self frame]; > - [self createDrawingBuffer]; > - ns_clear_frame (emacsframe); > - expose_frame (emacsframe, 0, 0, NSWidth (frame), NSHeight (frame)); > - } > + NSRect frame = [self frame]; > + [self createDrawingBuffer]; > + ns_clear_frame (emacsframe); > + expose_frame (emacsframe, 0, 0, NSWidth (frame), NSHeight (frame)); > } > #endif /* NS_DRAW_TO_BUFFER */ That patch does indeed appear to be the solution-- tested the exact same situation and now without the sluggishness issue. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 14:12:38 2020 Received: (at 42834-done) by debbugs.gnu.org; 13 Aug 2020 18:12:38 +0000 Received: from localhost ([127.0.0.1]:51025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6HiP-0004su-Gt for submit@debbugs.gnu.org; Thu, 13 Aug 2020 14:12:38 -0400 Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:54330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6HiM-0004se-U9 for 42834-done@debbugs.gnu.org; Thu, 13 Aug 2020 14:12:36 -0400 Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 6AE1318F2; Thu, 13 Aug 2020 20:12:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1597342348; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=249; bh=5UVWosEpVEvNdTM1pXhvauw7rTmclTqy7Zl7LAMyM20=; b=oIqKLjxU1sv3kZO/GAlJPs2Ie6h9tPX5g7ov2GRck9eZBZH+76s3v6fFdUG3375X FQoKmjHREnlJ3GNZer2ikB0BIVnelxzUDWt3JzdqCGZF3H5EOBOxIFh9wDdAXXXLsu0 EoR/1RMI+8EZ1dzlgcx+xughYWhJqCMX6FAkbYn8Xyn8+Q6Fiui84WQh4+EPXJjvQT+ x+luM8iQXYCPsFVjFJ3JO7UqDgwzjUc75w+Ix5/Jsa5fO0CTReap3J4uuKBFhtSpcOJ 49n1A2OXLV6kGb+xBgvfNv11EDWXLx7Dd4R725r2FQVcH/M8ZwnTXrPc8YrcFIk3URR +YjMSQ8Dcw== Received: by smtp.mailfence.com with ESMTPA ; Thu, 13 Aug 2020 20:12:25 +0200 (CEST) Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 20312202484E63; Thu, 13 Aug 2020 19:12:24 +0100 (BST) Date: Thu, 13 Aug 2020 20:12:26 +0200 (CEST) From: Alan Third To: Doug Davis Subject: Re: bug#42834: 28.0.50; macOS scroll and movement latency slows when display changes Message-ID: <20200813181224.GA27547@breton.holly.idiocy.org> Mail-Followup-To: Alan Third , Doug Davis , 42834-done@debbugs.gnu.org References: <20200812212407.GA42658@breton.holly.idiocy.org> <20200813150024.GB26932@breton.holly.idiocy.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Flag: NO X-Spam-Status: No, hits=-1.0 required=4.7 symbols=ALL_TRUSTED device=10.2.0.21 X-ContactOffice-Account: com:241649512 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42834-done Cc: 42834-done@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.7 (-) On Thu, Aug 13, 2020 at 11:42:21AM -0400, Doug Davis wrote: > > That patch does indeed appear to be the solution-- tested the exact same > situation and now without the sluggishness issue. I've pushed it to master. Thanks! -- Alan Third From unknown Fri Jun 20 07:26:16 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, 11 Sep 2020 11:24:06 +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