From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kai Ma Newsgroups: gmane.emacs.bugs Subject: bug#63187: 30.0.50; Tail of longer lines painted after end of nearby lines on macOS Date: Thu, 8 Jun 2023 21:42:46 +0800 Message-ID: References: <83pm7knpzi.fsf@gnu.org> <83jzxiawsp.fsf@gnu.org> <83r0rk9w1r.fsf@gnu.org> <831qjdx4to.fsf@gnu.org> <50104E0C-A861-4762-8081-55F2CF2390AD@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="918"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 63187@debbugs.gnu.org, Eli Zaretskii , Aaron Jensen To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 08 15:44:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q7Fw7-000AWG-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jun 2023 15:44:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7Fvo-0006fb-Uw; Thu, 08 Jun 2023 09:44:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7Fvn-0006da-5p for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 09:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7Fvm-0001E5-TS for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 09:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7Fvm-0008I3-Hv for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 09:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kai Ma Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2023 13:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63187 X-GNU-PR-Package: emacs Original-Received: via spool by 63187-submit@debbugs.gnu.org id=B63187.168623179031790 (code B ref 63187); Thu, 08 Jun 2023 13:44:02 +0000 Original-Received: (at 63187) by debbugs.gnu.org; 8 Jun 2023 13:43:10 +0000 Original-Received: from localhost ([127.0.0.1]:55862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7Fuw-0008Gg-3E for submit@debbugs.gnu.org; Thu, 08 Jun 2023 09:43:10 -0400 Original-Received: from mail-pf1-f193.google.com ([209.85.210.193]:57352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7Fus-0008G7-3p for 63187@debbugs.gnu.org; Thu, 08 Jun 2023 09:43:09 -0400 Original-Received: by mail-pf1-f193.google.com with SMTP id d2e1a72fcca58-653436fcc1bso375615b3a.2 for <63187@debbugs.gnu.org>; Thu, 08 Jun 2023 06:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686231780; x=1688823780; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cdX+mo6PPRzHw+ArxwL4TnaawijVVjbnb4dqP4levHU=; b=lTf4HJ+cw51LkpiCQefqITGrEbm56GXRPjD8mTF1RSprHUJaPYtphkBLQvC2/MAcCm GtkVSsty2O/HPVV/fmzqTn5PPtELHvXZOqZLPgeOO/M+sDgMVHyXKSBUg9LqPl5gcHxG vuQxlgOtKVPFsUFaX1mQEaMmmVRnfYVAM5+v8+/Y92PN3fYSk5iu21J20SZkbPAKijwa RsyTFMqjmPPUsdJ7j6dAc6sHtyQ+zk5wTlIm9Qoz4+JxvYZggCXOOuaMIRuK8u5uHM+J d2kgm9jonYvTXzmsd8rDXdPniqMcq24/1SXGSfEV8r5ghkswmHk+eM0ZkwYOmcmUBDHx fWSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686231780; x=1688823780; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cdX+mo6PPRzHw+ArxwL4TnaawijVVjbnb4dqP4levHU=; b=bEKK1AUz0pA1TpMZygRz9u4R+5Wz0gBgzsRm2pd8naMcMaI9L7AxBSqg5vAskoMoo4 54gCF4gscejkocAbtGxvqzX2W4Y9zLF8WGk/UPByqe9DR5VVGU+NWkEYr5K7NDsqgIA9 qCv8qcpsleSL/WiJfGKnOrWI2wfyymXGkftTJhG7oC3dqwALGPp/CxeYuqiPm5KIFlFK z/89Gsoca873OWU3IkmuRwbyAhxiRNUONcsWvaS+ItbC6KsKrkw+hublKNW+YdzCl7SC 8YvnB6Kcc0a5L+ODtrff3IT8vhpCmNievCMPmrrYdUa+8+zGMNcMkoVcErDhG9ZA7IO8 WfdA== X-Gm-Message-State: AC+VfDxjqgXBXjvInHYkhBd7uwlb4bfU9xcc0hrouKisDRbJ6Y2UP533 W9+wslMCeL4EKGeyL7tA9EU= X-Google-Smtp-Source: ACHHUZ7o4rJkX6bWFxFnmaP7FgrAvlE9ZZYrGSOtYzxbtX0PnYKa8yGCEnaWwfMm4A3XfQ119uqGPw== X-Received: by 2002:a05:6a20:5496:b0:105:b75e:9df6 with SMTP id i22-20020a056a20549600b00105b75e9df6mr4309711pzk.26.1686231779906; Thu, 08 Jun 2023 06:42:59 -0700 (PDT) Original-Received: from smtpclient.apple ([2404:c800:922f:e1e:9cf2:fcff:fecc:2ed2]) by smtp.gmail.com with ESMTPSA id m23-20020aa79017000000b0065007825f51sm1142018pfo.79.2023.06.08.06.42.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2023 06:42:59 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.600.7) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263124 Archived-At: > On Jun 8, 2023, at 20:51, Alan Third wrote: >=20 > I've got two things it could be worth trying to see if they make any > difference. > Change the CACHE_MAX_SIZE to something greater than 2, probably 4 is a > good number. That would rule out some sort of locking problem, as it > would reduce the chance a surface would be re-used before it's been > sent to the screen. >=20 > The downside of this is probably going to be an increase in "lag" > because it's possible to have more surfaces "in-flight". >=20 > The other option is to remove this call (nsterm.m:10636): >=20 > /* Schedule a run of getContext so that if Emacs is idle it will > perform the buffer copy, etc. */ > [self performSelectorOnMainThread:@selector (getContext) > withObject:nil > waitUntilDone:NO]; >=20 > I think this is harmless, but it's in there as I *assume*, with > absolutely no proof, that it will improve performance and it seems > possible (but I think unlikely) that it may affect the sequencing of > surface operations. Tested locally. I can confirm that removing performSelectorOnMainThread = (with CACHE_MAX_SIZE =3D 2) fixes the problem for me. I now observe = zero glitches or tearings!