From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitrii Kuragin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57434: 28.1.91; Terminal Emacs Mac OS flickering. Date: Mon, 29 Aug 2022 12:04:38 -0700 Message-ID: References: <83edx1znjl.fsf@gnu.org> <83czclzms4.fsf@gnu.org> <83ler7vx3o.fsf@gnu.org> <838rn6x4h2.fsf@gnu.org> Reply-To: Dmitrii Kuragin Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000139cd105e765f06b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , 57434@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 29 21:05:13 2022 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 1oSk4P-0009wq-2y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 21:05:13 +0200 Original-Received: from localhost ([::1]:60018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSk4N-0006QV-Pf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Aug 2022 15:05:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSk4E-0006QL-D4 for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 15:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSk4E-0003ij-4V for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 15:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSk4D-0003Is-LN for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2022 15:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitrii Kuragin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Aug 2022 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57434 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57434-submit@debbugs.gnu.org id=B57434.166179989612685 (code B ref 57434); Mon, 29 Aug 2022 19:05:01 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 29 Aug 2022 19:04:56 +0000 Original-Received: from localhost ([127.0.0.1]:33846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSk48-0003IX-Eg for submit@debbugs.gnu.org; Mon, 29 Aug 2022 15:04:56 -0400 Original-Received: from mail-yw1-f172.google.com ([209.85.128.172]:42628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSk46-0003IK-QU for 57434@debbugs.gnu.org; Mon, 29 Aug 2022 15:04:55 -0400 Original-Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-3378303138bso219661517b3.9 for <57434@debbugs.gnu.org>; Mon, 29 Aug 2022 12:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=WWe1U50zZrWf75BZ6sIl46sh2x/7K505rSyLtbKh4ak=; b=A5AIwJxNQ/ApkG4tFaR8umG1Cx8TRna50XoZVa+wCIsQbHNtAyGjGsHEFiLL3Pklho jCS9qazm5wJVuoHhey6QAcwOfuYOPci35IFvyPqZnWOnYKmFL1vDCpbO0ym0vUk0eKGL iWCditrumdt5zLFVYXJznuCuKf+b1WRiHsrzY720nCGBK1xW92es505AXYjzpDWmon55 YqFWnaw0O+De1kjno1oyECJJZBjWiHYDwhbdbwPewY8kNabBiaMjYb7+VyDe9IREJKPU TodlkreaAPC6ANf9eMaGhkolXkUko8CxKbwITq2/wW82Y7KxeKkk+W103ZXvlPteCBjx qlAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=WWe1U50zZrWf75BZ6sIl46sh2x/7K505rSyLtbKh4ak=; b=lnc9Qf9n0Y7QP/Gxj0Bpein/QJiwm25qCLpfVlouGlJ+8Ec6UYtJnBpW5bYw8NGrLr Zim8wlWWFtyAigx0sAVUk6eHzNF0apHqGNeehAvwXRTlcxUCEkFmfOsanmYKOHxti/58 ti4wBmi4VOvsI2Wkz/Ind6MbnK2udyNKQosQ2XLzV9SmH9o8SILGsLGcRf9YVqroHyrM 9ZgVz1ZShtmd4lKSMBDC2hxfWdRjYIvS8HmUAlMEvZ5bPh3ccoSzcxqyB6oIV6JBi4YR ZKSvS6LzvMefnIdVS6tFBVWSnBpMlEL08Ljpx6mXsNKcXVjOvZwYzln2Ut3Go/5tFK4E rIVA== X-Gm-Message-State: ACgBeo2yQ7gjOAVl0kO+SEJ5wNELybszIKODzaxG/PloTTb+8bzitssX oJnWbPN2PoCC+9PvPhodHlrUSqPfaVCb4+8/qDVjOw== X-Google-Smtp-Source: AA6agR7QFAsGjXPglhllekIVeQ4Q2dw7qMcPQ5JLo/RGERW8pT/A6dy+8zmx7gByI6xSp7WNs+L1Eu2J8g2XIGJGcTM= X-Received: by 2002:a25:3f81:0:b0:696:4116:8ab9 with SMTP id m123-20020a253f81000000b0069641168ab9mr9562331yba.257.1661799889048; Mon, 29 Aug 2022 12:04:49 -0700 (PDT) In-Reply-To: <838rn6x4h2.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241063 Archived-At: --000000000000139cd105e765f06b Content-Type: text/plain; charset="UTF-8" On Mon, Aug 29, 2022 at 11:57 AM Eli Zaretskii wrote: > > From: Dmitrii Kuragin > > Date: Mon, 29 Aug 2022 11:24:45 -0700 > > Cc: Eli Zaretskii , 57434@debbugs.gnu.org > > > > I see the behavior as a correct one (at least by design), but when we do > insert instead of writing the terminal > > flickers. Do we need to adjust some numbers or do we have to understand > the reason why we flush the > > content? > > What do you mean by "flush the content"? If this is what causes the > flickering, then please explain where does the code perform the > "flush". > > More generally, we need to understand why insertion cause flickering > whereas writing to the terminal does not. > I agree. Let's ignore what I said about flushing. My assumption was that we draw the terminal content in multiple steps in different places. For example, we remove some lines, then do some logic, then we draw chars on top of it. So, if we have a lag between the operations and the terminal refreshes the screen we see only part of the content. But, as I said. Let's ignore that and if you have any guidance on how I can debug it further, it would be awesome. Flickering is consistent for some specific area. If I scroll between 2 lines, back-and-forth Emacs flickers consistently. What would be my next steps to give more debug information? -- *If you get an email from me outside of the 9-5 it is *not* because I'm always on or expect an immediate response from you; it is because of work flexibility . Evening and weekend emails are a sign I allocated some regular working hours for other things (such as family, gym, friends,...). And I encourage you to feel free to do the same. --000000000000139cd105e765f06b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Aug 29, 2022 at 11:5= 7 AM Eli Zaretskii <eliz@gnu.org>= wrote:
> Fro= m: Dmitrii Kuragin <kuragin@google.com>
> Date: Mon, 29 Aug 2022 11:24:45 -0700
> Cc: Eli Zaretskii <eliz@gnu.org>, 57434@debbugs.gnu.org
>
> I see the behavior as a correct one (at least by design), but when we = do insert instead of writing the terminal
> flickers. Do we need to adjust some numbers or do we have to understan= d the reason why we flush the
> content?

What do you mean by "flush the content"?=C2=A0 If this is what ca= uses the
flickering, then please explain where does the code perform the
"flush".

More generally, we need to understand why insertion cause flickering
whereas writing to the terminal does not.

I agree.

Let's ignore what I said about flushing.= My assumption was that we draw the terminal content in multiple steps in d= ifferent places. For example, we remove some lines, then do some logic, the= n we draw chars on top of it. So, if we have a lag between the operations a= nd the terminal refreshes the screen we see only part of the content. But, = as I said. Let's ignore that and if you have any guidance on how I can = debug it further, it would be awesome.

Flickering is = consistent for some specific area. If I scroll between 2 lines, back-and-fo= rth Emacs flickers consistently.

What would be my next= steps to give more debug information?




--
*If you get an email from me outside of the 9-5 it is=C2=A0not=C2= =A0because I'm always on or expect an immediate response from you; it i= s because of=C2=A0work flexibility.=C2=A0=C2=A0Evening and weeke= nd emails are a sign I allocated some regular working hours for other thing= s (such as family, gym, friends,...).=C2=A0 And I encourage you to feel fre= e to do the same.

<= /div>

--000000000000139cd105e765f06b--