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: Mon, 07 Mar 2022 22:04:46 +0800 Message-ID: <87a6e1n9j5.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35846"; 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 Mon Mar 07 15:19:30 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 1nRECv-0009D7-PU for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Mar 2022 15:19:29 +0100 Original-Received: from localhost ([::1]:55508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRECu-0003L3-Ce for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Mar 2022 09:19:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRDzC-0006Gg-BA for emacs-devel@gnu.org; Mon, 07 Mar 2022 09:05:18 -0500 Original-Received: from sonic310-24.consmr.mail.ne1.yahoo.com ([66.163.186.205]:43142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRDz9-0002Zj-Qm for emacs-devel@gnu.org; Mon, 07 Mar 2022 09:05:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646661914; bh=qNz8baWGK1A193dyalVxLmfDnATFbW5ioAcbZuAGJ+c=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=So5fXs9Kr/s/T8kcHU543z2tkXeO/IfsRbXhexdr9QnVWI0+LxzTRrg0lqPWi1VUQA1S+ULK1JsMgyWJ5ponxmRq/TEg5W40IurAsuFcfaGNc/Y1XVgPQafHaktQ37ZxBIMWJ9cAzabPv7GWSB0RjcwlktPg4rkzzE7OlDLaNo/KRVoinind9KO5+exQdOR/k7S1YxQpXgmrsvBMIrEM557dcUSvRWozdJTTFToPYRZP4B5yOXYKC7xRiMmcf1Ckb8nmg3iK0AvAV3XU00GvmnBgkX+zzcc7BupUVVVwU0i8ZgZELy22GFXetph6eUTK8cT+GUTi1Oi7MqX7KTR33A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646661914; bh=yP2CqyJd2rsYYEKqImsDx2zGqYPdt68xITPL0ulpQbE=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=EUESjjnpEdzyWFfL6ar2TWd1B5DF1Xn/l3BVOsB89/aOyMZjv48TGFP0BzITmKdizXOVV1LcoboEy98WRIUApk2JuU8NYJRtF0gvg8Y0juOmHRYtyo5sCrnSoL90KQOiC2A3L4LWHnNl7RoVVY6ATAotVaAhX7Adh3DmnPTuCH6MyTIsCRlbwbgkhTUv2R8poMTASb52m3OXONcLXxm6v9ncIQs19mOmVlGeUPMZnXw85DzC6sQG/lzrYJuoge+TD62T1zDs1Nqsqbo+DQN0buYddEwqnP7EAdQhx7wKOjgR1kzk5go+mrm2D04aWiGQ7aHuQcexMG00vdlhCBGsVw== X-YMail-OSG: gof_9jQVM1kzCW8.IX46hC3XF8vScosCQrs1nnsWk2hu7tGMjpKJ7fJ2OKft5w8 TNpLt689ZaaP1ei.90whnXG2jc1bwCUPwxGiMEgJSwa.ixADJZKyCSeYEE_8OVaAYXVdrkJvKfpc lniuHZUBQxIz0iUVjaFIvHBcOMGxwPvRrsbiDv9lLdgqk6VmUJlzbIPL6hFPuFTiiQ1DM4b7RIvX fkpucRgLfUtK47rHlU6sXNT60j8OymmMH8bjVuzyLOP2VYf7TB390bkaX3_vdgE8UnmEJWgwGf_T 90n_Q9eLuh8kbNVgNyZp.5H8NHH5Pw9vNTFaOliilqTnelWxnKrC0ipjwb8pQZpUctCPkY1VUKam JLyZL75SmFuli.wdpcksOrIOpCPMV.1J3b9TE25TdIohexlSWnIJRlsv.1HXW44bethXDtn.Eb4_ kbFgzlqhAEkV5fbSLyeLr0ih9Tb.btQLmJ.NdtBwS.4WYaZZRtcU95pO86QgyIBIc1Cf5HBHdoZG 92Yh7w_hqkEW6NyNXg7AK4q.LelZIwYecxyK7blm4Dm59tGAW6OX0bcgdP7Nk5VAo.xcg7wcI1aT WH08rIf05R3j1vfn3Paawyg7AHAsrFARYJdS9zkwgI_NoQK8ltoXkUndfg9DLGoEyyC6bossB71p HfZMphM.3gYEG7l2iJYilcXguZ3StR__WkxDLxaGdU0xDaFA_9UICS6l6UmTspFFwr5qIOBNo92U qaqkh252fhRVuvlimnY2FPYi7akh09COD9k089jWXE6Xt8f4L9pP_I4E3QwYTFrVqRQr2IFJqM32 cDC2Ai35N2q63TszCfkiYUc7cwLm1T4XB149SaJBuP X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Mon, 7 Mar 2022 14:05:14 +0000 Original-Received: by kubenode519.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 59e1d392f596f17d84abc6e7e414b1f4; Mon, 07 Mar 2022 14:05:07 +0000 (UTC) In-Reply-To: <83v8wqexox.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 07 Mar 2022 14:47:42 +0200") X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.205; envelope-from=luangruo@yahoo.com; helo=sonic310-24.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:286889 Archived-At: Eli Zaretskii writes: > Then I'm afraid I cannot reproduce this. I tried Emacs 27 on 2 > different versions of Windows 10, and I don't see any abnormal > flickering when I lean on C-v. The menu bar does flicker once in a > few seconds (and that is expected, given how eagerly we update our > menus)), but by that time Emacs scrolled many window-fulls. Hmm, that's weird. > Are you trying this with an optimized build or an unoptimized build? > An unoptimized build cannot keep up with the auto-repeat rate of the > keyboard, so the first scroll through the file could cause Emacs to > become stuck until you release the key. But once you scroll the file > once (i.e. it is all fontified), even an unoptimized build behaves > reasonably, and I see no particular flickering, at least not on the > menu bar. It's an optimized build, with "-O2 -g3". > I certainly don't see any artifacts like left-over text -- that smells > like some "optimization" of your video driver. Try disabling any > advanced features of the display adapter you have there. I meant to say that I guessed that w32_scroll_run is somehow involved by commenting out w32_scroll_run and observing that old text was left-over in places which would previously not flicker during scrolling. (Because copying the area that can be scrolled is faster than displaying the rest of the screen contents, so the system displays the scrolled contents before the rest can be drawn.) > Ah, you mean the call to w32_scroll_run in dispnew.c... Does setting > w32-use-visible-system-caret non-nil help in any way? It makes it flicker less, but the flicker is still noticable. BTW, here's another way to reproduce some severe flicker on MS Windows: just type "M-: (run-hooks 'xref-after-jump-hook) RET", and the tool bar buttons, cursor and text start to flicker severely. The tool bar buttons flicker in a peculiar way: the background is displayed, but the image itself flickers with interleaved bands of black. It's also not affected by the setting of w32-use-visible-system-caret. Thanks.