From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Problems implementing double buffered painting for Windows Date: Mon, 11 May 2020 19:49:11 +0300 Message-ID: <833686bens.fsf@gnu.org> References: <86wo5ig4o1.fsf@inmotica-integral.es> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="25221"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 11 18:50:37 2020 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 1jYBdV-0006Rd-6g for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 18:50:37 +0200 Original-Received: from localhost ([::1]:58294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYBdT-000530-Hy for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 12:50:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYBcC-0003h9-Uh for emacs-devel@gnu.org; Mon, 11 May 2020 12:49:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41130) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYBcC-0004bM-Fo; Mon, 11 May 2020 12:49:16 -0400 Original-Received: from [176.228.60.248] (port=2900 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jYBcA-0006t4-Qs; Mon, 11 May 2020 12:49:15 -0400 In-Reply-To: <86wo5ig4o1.fsf@inmotica-integral.es> (message from Cecilio Pardo on Mon, 11 May 2020 12:13:50 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:249826 Archived-At: > From: Cecilio Pardo > Date: Mon, 11 May 2020 12:13:50 +0200 > > I'm trying to implement double buffered painting for Windows, to > eliminate flicker. Thank you very much for working on this. > - When to flip buffers? I have tried to attach the flip to > frame_up_to_date_hook on the 'terminal' struct, but it sometimes get > called when it should not, producing flicker. Did you try doing something similar to what xterm.c does on X? I mean the block_buffer_flips trick. If you did, and it didn't work, why not > - What portion of the screen has been updated? I have seen no clear way > to find this out. I'm resorting to intercept calls to w32_fill_rect to > mark areas as invalidated, as it /seems/ to be always used to clean > the area before painting, but this is clearly not a solution. Why not update the entire frame? That's what the X code does, AFAIU.