From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: macOS: Cursor leaving traces when scrolling Date: Sun, 7 Oct 2018 20:31:33 +0100 Message-ID: References: <2D30F998-9417-4B47-955E-702503BF191F@gmail.com> <20181004215834.GB15008@breton.holly.idiocy.org> <20181007111444.GA4777@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002310c40577a88eba" X-Trace: blaine.gmane.org 1538940628 26168 195.159.176.226 (7 Oct 2018 19:30:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2018 19:30:28 +0000 (UTC) Cc: Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 21:30:24 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9Ekx-0006hg-Ll for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2018 21:30:23 +0200 Original-Received: from localhost ([::1]:43300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9En3-0007Ob-Kx for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2018 15:32:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9EmN-0007OW-38 for emacs-devel@gnu.org; Sun, 07 Oct 2018 15:31:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9EmJ-0001AC-E8 for emacs-devel@gnu.org; Sun, 07 Oct 2018 15:31:51 -0400 Original-Received: from mail-it1-f173.google.com ([209.85.166.173]:50807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9EmJ-00018y-8H for emacs-devel@gnu.org; Sun, 07 Oct 2018 15:31:47 -0400 Original-Received: by mail-it1-f173.google.com with SMTP id j81-v6so8884474ite.0 for ; Sun, 07 Oct 2018 12:31:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ENz1eO2v9K1ye34EsROj1AvIWTSoUtt0pYmmhdFRp0M=; b=SpbbhXJjU8nzYWazNvv0IrO9S8chpjMUPu5Z6x36fp57Rkqms2m7AcgJX7G+6Y+lNJ Eq1KySe5y5pYBgSHADmlHYUVwE+/9ZBiLMIPJa2egHeKZZVh7cAC5Zz91oprIrHQbMXZ VR0vl6YoSEcTZCjvRJeu/X5wAM0LTOJd2H61szm42W5WOe4wLhxfbB6K/7+zPe26OiAD njbkkNAsfuAPXf4dvtB3V+e934AGzH/pCwpPXwDNcLzCGkZIp4CRATovSgu8KOEDB/q3 HYjYyirB04h2cFrCpYJBnMH7nf0dfCutabapNS3TURvvjqVT5I8aAkn6bO5Ds84iFjyW DibQ== X-Gm-Message-State: ABuFfogcb+ICLNJkV2dj4K6GOcUtkkvM1Zppp2SiYou7c++MdbyFtL3y ZXKhR+kp/viWNEF5nJWzgcFZtD6IXbF8Kzsyuzs= X-Google-Smtp-Source: ACcGV61gUt1VAcW5bXg1ebiatzVwR/k+U5aqf1kyXt5uMd4MgOFhRFprf8bjAMqdbMWZ4l6jIP6rRSp4zFXdS09bKn8= X-Received: by 2002:a02:9c5c:: with SMTP id h28-v6mr15980347jal.3.1538940706425; Sun, 07 Oct 2018 12:31:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.166.173 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230273 Archived-At: --0000000000002310c40577a88eba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 7 Oct 2018, 19:36 David Reitter, wrote: > On Oct 7, 2018, at 7:14 AM, Alan Third wrote: > > > The attached patch fixes it, but it marks the whole area dirty instead > > of copying it, so it will be redrawn at the next expose event. I can=E2= =80=99t > > see any difference in simple testing, but it may slow down scrolling > > on very complex buffers. > > Thank you. > I can=E2=80=99t see any obvious difference in speed either on a modern la= ptop. > > NSView scrollRect has been deprecated, so replacing it is a good thing al= l > other things being equal. Implementing true scrolling rather than redrawi= ng > would still be worth a try, as display doesn=E2=80=99t seem particularly = fast. > > I=E2=80=99ll apply it to my own branch and report back if users complain. > I did eventually find this was a fair bit slower if I made the frame quite large and zoomed the text out quite a lot, so I suppose it might affect people using sublimetext style "maps". I have come up with a possible work around continuing to use scrollRect, but I've not had time to try implementing it yet. As you say it would be better to use proper scrolling without scrollRect, but I don't see any obvious way to do it. I suspect I just don't have enough knowledge of the cocoa APIs. --0000000000002310c40577a88eba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



--0000000000002310c40577a88eba--