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: Drawing UI elements behind text Date: Wed, 27 Nov 2024 22:12:49 +0200 Message-ID: <861pywfnb2.fsf@gnu.org> References: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> <8C55E590-E586-440A-89C5-0E5153518790@gmail.com> <78d3a7e7-f5a7-476b-8a9d-27beca44a94a@imayhem.com> <86plmgg2vx.fsf@gnu.org> <86bjy0fqqu.fsf@gnu.org> <943ad61e-9823-4dff-b8c0-d9d1b74ef676@imayhem.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19198"; 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 Wed Nov 27 21:14:11 2024 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 1tGOQM-0004rr-Tb for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Nov 2024 21:14:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGOPg-0002X9-2i; Wed, 27 Nov 2024 15:13:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGOPe-0002Wx-3p for emacs-devel@gnu.org; Wed, 27 Nov 2024 15:13:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGOPc-0003vc-OM; Wed, 27 Nov 2024 15:13:25 -0500 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=sGjoNyanaq4m5pwS6WUx6s9hc1bYq+WgPIL7O3eZfmw=; b=m4Ku8AB0fSGA amR8fvkebVARItIt3qy37jTCRULK9QKi0wthh0A4XVAYgnJY9I098SREWUjzgoaJEC29yl/bYr1aM wCkwxTgu7IFN6GI82Ku+Uax5KNOh84egU2sIMX7PykSVy4EqO9nYPkp0r7lTt5Osom40ZgWlASRvt 8eC0tOXqvzMpufpd3A+tGA+GlmKt249idDxytQORIhUv4TSKwmDMANPn6fQtQXCjUN2AcZJlIj2ow miCPb98i3IOmky6em0zb3gMNp/bcWg/zRbnGjbTqJVu97oUO4LBFsPamWobIRXoRny9mdvKHcvgEa EJTXGNh9ntv/LIOkLbe4zA==; In-Reply-To: <943ad61e-9823-4dff-b8c0-d9d1b74ef676@imayhem.com> (message from Cecilio Pardo on Wed, 27 Nov 2024 21:01:42 +0100) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325788 Archived-At: > Date: Wed, 27 Nov 2024 21:01:42 +0100 > From: Cecilio Pardo > > On 27/11/2024 19:58, Eli Zaretskii wrote: > > >> They are drawn after switching the back paint buffer, so that the > >> redisplay result is left alone. > > > > So you clear them up when redisplay starts and then redraw them in > > their entirety when it ends, something like that? Doesn't that slow > > down redisplay, especially if there are many pixels and a large > > window? > > Yes. We do a full frame copy on each double buffered redisplay, I expect > we can add this with reasonable impact. > > The very naive implementation I have now adds something like 5ms to each > redisplay on a 1900px frame, and I hope to bring it down a lot from there. What takes 5ms, exactly? what kind of redisplay did you trigger, and how did you trigger it?