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: Sat, 27 Aug 2022 09:01:22 -0700 Message-ID: References: <83edx1znjl.fsf@gnu.org> Reply-To: Dmitrii Kuragin Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000003b5cf05e73b25d5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30668"; 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 Sat Aug 27 18:04:24 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 1oRyIK-0007kj-8N for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 18:04:24 +0200 Original-Received: from localhost ([::1]:39880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRyII-0007SQ-L7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 12:04:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRyG2-000581-Me for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 12:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRyG2-0001tp-CZ for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 12:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRyG2-0003tH-3M for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitrii Kuragin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2022 16:02:02 +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.166161610214928 (code B ref 57434); Sat, 27 Aug 2022 16:02:02 +0000 Original-Received: (at 57434) by debbugs.gnu.org; 27 Aug 2022 16:01:42 +0000 Original-Received: from localhost ([127.0.0.1]:56885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRyFh-0003sh-QP for submit@debbugs.gnu.org; Sat, 27 Aug 2022 12:01:42 -0400 Original-Received: from mail-ot1-f47.google.com ([209.85.210.47]:37594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRyFf-0003sT-De for 57434@debbugs.gnu.org; Sat, 27 Aug 2022 12:01:40 -0400 Original-Received: by mail-ot1-f47.google.com with SMTP id h20-20020a056830165400b00638ac7ddba5so3007006otr.4 for <57434@debbugs.gnu.org>; Sat, 27 Aug 2022 09:01:39 -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; bh=WgwTJUpG45e4/KPJ5lGkoe7IkE44Ni5HNaoiJFoXxHc=; b=QdUp5tw1pPdN4IzJkX5hsh55HkXqfidu4HV5MxRu1dbtohwk3LCo9mBPSE1TPRjngq bGV/IRjxTVdqn9KIhYTWLF/Ne7vPZW75U3lZcoIvcsrBr8hWgeHXBUia92ts+GJVwBwB ABkpa55YdBDpGSixeXTnzsdE2O4wX0znNEf8cSw1P6I595dLM9gvLZHMINNWpbXZ6rBQ TJ6tq1W9J3VbZHotzFGv5R8TQ0pJ7ktmO9KucDAgPV2c0nNunqt3ukLgQOskq+czFSak PDGdS/3sfRhE0VAZCB78jXERnRy919SABdIiUlKJ+ORO2aZcjfyPbOgxU4b369DzTmOR 5M6Q== 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; bh=WgwTJUpG45e4/KPJ5lGkoe7IkE44Ni5HNaoiJFoXxHc=; b=NtUWZh8RRXPpWsIyQGwYMJWdS4d/nwBSKN3yR3Lu/OqArOP4gK96wlBNfrR+JJ/lmB VpKcidJ0mH5gPQ87noqJd3BbkvqZunGx4/BwQ0eEynw/Tl002LYqF5vOnPkGOe1K9QSs iPsmRS2k3/WnRgl4YwPmedttKdjNzrcrYmUadFm+nhpaLSwO0NbjgzAuIbVxUYmcpmZz yxR4oiYWZ7VTeyisOHDlLMmpG6QI8tuCbPb09EfPGp06NeHjLIsZu/ibMOEVbXephHwe 0fK0FQveHRYShORQfwLaGXHod6cvjTez0HrwoXLcOWPm/DyeYYWyBHaFyX1OXHsK29Fq EwmA== X-Gm-Message-State: ACgBeo02wDB5Wjb2mGLfvfG7x/RCOPsZg4YFL6N5r38vRcyS6qERL310 2h00iWMDBedqgmo7v9u3QQPhUV1OU3iDEN+qovlHOw== X-Google-Smtp-Source: AA6agR4e9vFzroSPlLqlXA8gOTUzz4zkZPPG8R16MRIH0Tw9HdoUKTJl0A1TZkSTTu8Li2a7tqEQHxrblSewK/mABSw= X-Received: by 2002:a9d:5f8e:0:b0:638:87d9:11ed with SMTP id g14-20020a9d5f8e000000b0063887d911edmr3237948oti.354.1661616093607; Sat, 27 Aug 2022 09:01:33 -0700 (PDT) In-Reply-To: <83edx1znjl.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:240949 Archived-At: --00000000000003b5cf05e73b25d5 Content-Type: text/plain; charset="UTF-8" I think I can give it a try. I just need a bit more time to set up the debugger workflow, since I run GDM only once in a few years :) I also do not really understand the meaning of "cost" here and what metrics we use to measure that. But, I'd assume it is something empirical. Since we found the point which fixes it (cost calculation) I will try to understand how it works better. and How having content on the right window might affect the cost calculation. On Sat, Aug 27, 2022 at 8:57 AM Eli Zaretskii wrote: > > Cc: 57434@debbugs.gnu.org > > Date: Sat, 27 Aug 2022 08:46:44 -0700 > > From: Dmitrii Kuragin via "Bug reports for GNU Emacs, > > the Swiss army knife of text editors" > > > > Here's a very interesting patch which fixes the flickering issue for me. > > > > Maybe we do something inaccurate during the cost calculation? Or we use > some metric which is note > > representable on macos? > > This has come up before, but we could never understand what's wrong > with that calculation. Perhaps you could step in a debugger through > that code and tell what you see and why it flickers? > -- *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. --00000000000003b5cf05e73b25d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think I can give it a try. I just need a bit more tim= e to set up the debugger workflow, since I run GDM only once in a few years= :)=C2=A0

I also do not really understand the meaning = of "cost" here and what metrics we use to measure that. But, I= 9;d assume it is something empirical.

Since we found t= he point which fixes it (cost calculation) I will try to understand how it = works better. and How having content on the right window might affect the c= ost calculation.=C2=A0

On Sat, Aug 27, 2022 at 8:57 AM Eli Zaretskii= <eliz@gnu.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">> Cc: 57434@debbugs.gnu.org
> Date: Sat, 27 Aug 2022 08:46:44 -0700
> From:=C2=A0 Dmitrii Kuragin via "Bug reports for GNU Emacs,
>=C2=A0 the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> Here's a very interesting patch which fixes the flickering issue f= or me.
>
> Maybe we do something inaccurate during the cost calculation? Or we us= e some metric which is note
> representable on macos?

This has come up before, but we could never understand what's wrong
with that calculation.=C2=A0 Perhaps you could step in a debugger through that code and tell what you see and why it flickers?


--
*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 respons= e from you; it is because of=C2=A0<= a href=3D"http://www.inc.com/john-boitnott/how-flexible-hours-can-create-a-= better-work-life-balance.html" style=3D"color:rgb(17,85,204)" target=3D"_bl= ank">work flexibility.=C2=A0=C2=A0= Evening and weekend emails are a sign I allocated some regular working hour= s for other things (such as family, gym, friends,...).=C2=A0 And I encourag= e you to feel free to do the same.

--00000000000003b5cf05e73b25d5--