From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MS Windows double buffering Date: Sat, 30 Apr 2022 13:23:32 +0300 Message-ID: <83levm98ez.fsf@gnu.org> References: <877d791thh.fsf.ref@yahoo.com> <877d791thh.fsf@yahoo.com> <83ilqtbl3p.fsf@gnu.org> <87sfpxz8a7.fsf@yahoo.com> <87mtg4zhlg.fsf@yahoo.com> <87mtg3unzu.fsf@yahoo.com> <835ymr9i9v.fsf@gnu.org> <87v8urt3mk.fsf@yahoo.com> <83v8ur7x8p.fsf@gnu.org> <87ee1euc8b.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27706"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kbrown@cornell.edu, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 30 12:24:41 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 1nkkHI-00071y-8u for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Apr 2022 12:24:40 +0200 Original-Received: from localhost ([::1]:57412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkkHG-00025G-Pi for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Apr 2022 06:24:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkkG9-0001LH-Ig for emacs-devel@gnu.org; Sat, 30 Apr 2022 06:23:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkkG8-0001gy-W8; Sat, 30 Apr 2022 06:23:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KcIujAiqXnhS2nFjwDI2zFJkszjGXBhEyFE0ys71/H0=; b=FM7KbcLgD2O0 4VetrCkZ0prIv7Ru8S06Pvk+HzNx42GP10O+zyIolDw1tka8yI2ipMbU9FIT0BknFHfoiIaW606PC MB/hvCi3P7m3wm0f0WagZ3Z+nUE0IAOYHuLtu3tqrq4sNvfpjWUZPVExYFlakdrJg4qnQqspxzNLz cLE4d05gSutgVy5L5UfmbLz+uv9h5p/+5QA82kcEheRNoLD6ktAoOIE9HJ9TYiCmUIFq6y/sCxSUL ipA/NvNECp5XMbbdtB8NdDhAK7gxsuoyswfHXuklSCkESGK1DFtd9IXsEwfzJkuk+mBJ5ib3zBAOT d3d46uu2zncr4xXmUg1cDA==; Original-Received: from [87.69.77.57] (port=1052 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkkG8-0005jv-9D; Sat, 30 Apr 2022 06:23:28 -0400 In-Reply-To: <87ee1euc8b.fsf@yahoo.com> (message from Po Lu on Sat, 30 Apr 2022 17:55:32 +0800) 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:289042 Archived-At: > From: Po Lu > Cc: kbrown@cornell.edu, emacs-devel@gnu.org > Date: Sat, 30 Apr 2022 17:55:32 +0800 > > > This still flickers considerably here, albeit with a significantly > > lower frequency. > > What if you comment out these lines in w32term.c? > > if (f && !w32_disable_double_buffering > && FRAME_OUTPUT_DATA (f)->paint_buffer_dirty > && !f->garbaged && ignore_dirty_back_buffer) > w32_show_back_buffer (f); Then the flicker of the window parts of the frame (the tool bar, the text area, the scroll bar, and the mode line) don't flicker at all, but the menu bar and the title bar still do, albeit very insignificantly. Overall, the result is much better. > > What other test cases in the discussions would you recommend to try? > > (run-hooks 'xref-after-jump-hook) > > for example, which causes considerable flickering without double > buffering, but none at all when double buffering is enabled. Just evaluating it in "emacs -Q"? I see no flickering at all, with or without double-buffering.