From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Flicker on MS Windows Date: Tue, 08 Mar 2022 08:26:56 +0800 Message-ID: <87zgm1l25r.fsf@yahoo.com> References: <87o82jpeee.fsf.ref@yahoo.com> <87o82jpeee.fsf@yahoo.com> <83ee3fgwq3.fsf@gnu.org> <87fsnvpbh7.fsf@yahoo.com> <83y21nezys.fsf@gnu.org> <87ee3eoarz.fsf@yahoo.com> <83v8wqexox.fsf@gnu.org> <87a6e1n9j5.fsf@yahoo.com> <83pmmxg7w8.fsf@gnu.org> <83lexlfyxs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22164"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 08 01:27:47 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nRNha-0005b7-NH for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Mar 2022 01:27:46 +0100 Original-Received: from localhost ([::1]:36758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRNhZ-00071P-Ji for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Mar 2022 19:27:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRNh0-0006GU-VE for emacs-devel@gnu.org; Mon, 07 Mar 2022 19:27:11 -0500 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:41383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRNgz-0003jG-Ff for emacs-devel@gnu.org; Mon, 07 Mar 2022 19:27:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646699227; bh=0p0qDCfhneiDHsijs6IZ8XmymFFdbsVq5DPeaBogT+4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=iqYquFRKpZ93ygb3bjc7TtmoSeh4+mP1m5lKeSAlE1UeYBqt4eeAEXj2ieIHxL1ynYQQYKudEAY7uW3OxMbmhciz1Vltlt64AHe0pQRybJll5lwqL758iKXC74TxlRo8moOOKTRh27Wz7chMyL/Sdg8jZNINeSZiSk6e63N8KwZVbPaUVxXefZz2kED3TB6/i2GaZ97Hdip5lzeuNyn411VRtBTJTm1eZ9E2Y58FsZ+V0mvpIKKBHFgIJlHoP82ORdx06QVkVfVZw0I7AckjxRjlVwl99FOaxoXNRcA0fn+xb4oHqEAt5jP8NqMggv6hzkoWZCJQrRU0YouiablNRQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646699227; bh=KUzBoyui6Qky8y9wSchphL++dMKdRmzqnmH7M3adxqo=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=S2TcWYoX/0KZbVW+OBSuIJWlEQKdcQga+q+OXKFFu2EP0S0lCODsv7QrUWtZMTuJvmmWMlsXR3vOZAsv4F4JxZI4+ZuPoKkbnWCC4V8DjLHV3d4vCyJOsu8FNdw0jGemMxfhEiwDyLcwxlgUuPw5Q/zc78W1P4tbPjFx3AdIUl0Az8HNjuy1068bqofCohDiRgTataN6m6X4EPwh9br6QPfNqsxRSmc9BTCZzfZ9l0RINy6fAGGxWVV/HNdTNbJApwPKRdVCsyiZWeXQLsxYE3iuyyxcWwlf21oLm18IYbVbfk4zsvOJQzJU79U4Q71MdDP4uSybubF0SzZuTkGbCg== X-YMail-OSG: kY23GGAVM1ksvbvmfdQdMCw.PnV6soZQzVs3GXnG20f_gPDZCi0_4PQw7NKIGgr eU8HBtmkx4vkq_2xllJzbufHZjxt9woZt2PO8_wnF0quMjE2RU9tGbxOhfnGFPc8a5lR5sP7bcj_ DN0StBMfT2tzACXRUVKtAXiITQ7_FBKL76VUZIoJ78dpJ60.PidObrOiVqTyg5GFPiefwuS0_B38 7gYmS9j8vsw7GDVqdcFDRKToJq2Tx.8AxkDVpZvinzeZ06SSXbBrpC.FVURfBHKB262QN9J3yty3 0lQj7A9j5FbjEp6kb6yFHHIuRRXG5NvYZ7yu2TNdTrUiYpexd1FAO_JmVdm.IBEN5awI4bzrObME Hjiwth4EdS01jTcbl5_YrnQeUZzOsxtXGi.AY4HrYu7EXkA..TzANwM2AdSjmylmSxwG44_pFfNB PGjOzf0.uHiJYkNF_kW7zK0cUbNkglJT5KenEJj42L9QdWw_4V3WhLcQ7XXRATsH0y.x51wODWDe LpF4CsHICB.dK4_70PEdCWmk.Xf_Kk641EWS9rhkRrJxmyixz9KGddhhl3GlwcgfepWbyo8lOgvN Hjirt5u47ZWxAAzQaeY5aW0KQwACFjw2DSAUweWfh0DDofGyvKMZ36Otmwp_bSFwNUmU27D.jNpm dd0ZXo9AmoZN7FLMU8m1_m.xYJS.LzE2A0M7XHpvm_lC7oKHTOdD8nudvkcFRwzYHfvQcP3fvcf3 6Dcrzrl8oJ2yKnMiNlfNa5PWXyZxqL0QPjwaOsx0ntXh.ULKF1H.edipQ2WDgZTexIjtOl5oZNWQ mcyEJenVCivtMZVZmTWiS38y2f60M8JPJ5tpoDU53J X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Tue, 8 Mar 2022 00:27:07 +0000 Original-Received: by kubenode519.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 40f598010225b5993befedbf0b70f6b4; Tue, 08 Mar 2022 00:27:03 +0000 (UTC) In-Reply-To: <83lexlfyxs.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 07 Mar 2022 19:35:27 +0200") X-Mailer: WebService/1.1.19878 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286910 Archived-At: Eli Zaretskii writes: > If I increase pulse-iterations to 1000 (from the default of 10), then > in an unoptimized build I see a rare and barely-visible flickering of > the tool bar images, as if they are redrawn. > > However, I cannot find where this redrawing comes from. Both xdisp.c > and dispnew.c do their jobs correctly, and the tool bar is never > actually redrawn on these levels. If I put a breakpoint where > dispnew.c actually writes to the glass using the terminal-specific > write_glyphs method, as part of the update_frame call, that breakpoint > never breaks in all those 1000 iterations, not once. Which means that > we correctly decide that the tool bar didn't change and does not need > to be redrawn. > > So it sounds like it's some very low-level Windows-specific code, > perhaps triggered by messages we send to the GUI thread or something? > This is an area in Emacs about which I know very little. Ideas > regarding what could cause this are welcome. > > And again, it's barely perceptible here, even with this non-trivial > setup and a relatively slow Emacs. I have no idea why it's so > prominent in your case (assuming it's the same issue that I see, which > is not certain, since what I see looks like redrawing of the images on > the tool-bar buttons). That is quite odd. Unfortunately, I know next to nothing about Windows programming, so I probably can't help. But I wonder if implementing double buffering on MS-Windows would help to alleviate the problem somewhat. Thanks.