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.bugs Subject: bug#59265: 27.1; emacs apparently redraws the entire X window for every update Date: Tue, 15 Nov 2022 15:30:57 +0200 Message-ID: <83leocibu6.fsf@gnu.org> References: <87iljhlccn.fsf@tucano.isti.cnr.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28516"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59265@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 14:31:14 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ouw1y-0007Bq-3g for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 14:31:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouw1p-0004pN-Py; Tue, 15 Nov 2022 08:31:05 -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 1ouw1o-0004mn-3W for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:31:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouw1m-0003nB-6M for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouw1m-0002UR-2V for bug-gnu-emacs@gnu.org; Tue, 15 Nov 2022 08:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Nov 2022 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59265 X-GNU-PR-Package: emacs Original-Received: via spool by 59265-submit@debbugs.gnu.org id=B59265.16685190569560 (code B ref 59265); Tue, 15 Nov 2022 13:31:02 +0000 Original-Received: (at 59265) by debbugs.gnu.org; 15 Nov 2022 13:30:56 +0000 Original-Received: from localhost ([127.0.0.1]:53436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouw1f-0002U7-Vf for submit@debbugs.gnu.org; Tue, 15 Nov 2022 08:30:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouw1b-0002Tq-Gy for 59265@debbugs.gnu.org; Tue, 15 Nov 2022 08:30:54 -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 1ouw1V-0003i7-5F; Tue, 15 Nov 2022 08:30:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=F+9KKmkpb/FUhbyav7W/ZtxW+ngksCJth+HFUA/20s8=; b=haj7IHXbBVA6RqAkAC++ pP/NIfUZae4Qe3Jfq+rqTaIczz21Y9ug0YZB90DBWEhsK0scZUU4sawUFjT3rwFnsoYsdg5F9ngLj axVI9X2xkHM8ZchijZRbF6XwZ7nJLdlEEhhWYb8X0/6aPqWGKzFSl9FFHlgKm5irDzzpieLvbipzp tJFZ/UAwIomsvHGEs0LXNxGwq6l3yseC6g6ryZk2pkznbiFWdDC/v2Ldt9X9e64r8W9l1q6XxwMp7 PElpfJSwJwfobegVxqGVvN46UfiZjZtE6vnxJo8NRT/0SGeei38JP8WRdJUoIUTef7qyG34eQQdf3 wtOlJl5UOJI5Rw==; Original-Received: from [87.69.77.57] (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 1ouw1U-0001Iq-Hc; Tue, 15 Nov 2022 08:30:44 -0500 In-Reply-To: <87iljhlccn.fsf@tucano.isti.cnr.it> (message from Francesco =?UTF-8?Q?Potort=C3=AC?= on Mon, 14 Nov 2022 17:39:20 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247937 Archived-At: > From: Francesco Potortì > Date: Mon, 14 Nov 2022 17:39:20 +0100 > > This bug report is vague, because I don't know the details yet, but I should be able to produce them later. > > When using a remote window using Xpra (which is more or less equivalent to Screen for X, see xpra.org) the amount of information sent by Emacs is huge, apparently redrawing the entire window at every keystroke. Emacs redraws only the minimum that is required to update its windows on the glass. It actually compares the current window contents with the desired contents, and redraws only where they differ. This should result in very small updates, and the only situation for which I can imagine Emacs updating the entire frame is when the whole frame is different, or it was obscured by another window, or something similar. If all you do is type one character, basically only that character's line will be redrawn, in some case even less. As an extreme example, if the line's contents was xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and you type "y" in the middle, you should see one "x" redrawn as "y", and one "x" drawn at the end of the line, and that's all. Of course, there could also be updates of other parts of the Emacs display, such as the mode line. For example, if you have column-number-mode enabled, typing a character will also update the mode line. But again, it should only redraw a small part of the mode line near the column number. Likewise, if what you type affects the tyool bar or the menu bar, these will be redrawn. One thing I can suggest to try is disable double-buffering. I have no idea what it can do with Xpra (since I don't really know how does Xpra do its job, whatever that is).