unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Francesco Potortì" <pot@gnu.org>
Cc: 59265@debbugs.gnu.org
Subject: bug#59265: 27.1; emacs apparently redraws the entire X window for every update
Date: Tue, 15 Nov 2022 15:30:57 +0200	[thread overview]
Message-ID: <83leocibu6.fsf@gnu.org> (raw)
In-Reply-To: <87iljhlccn.fsf@tucano.isti.cnr.it> (message from Francesco Potortì on Mon, 14 Nov 2022 17:39:20 +0100)

> From: Francesco Potortì <pot@gnu.org>
> 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).





  parent reply	other threads:[~2022-11-15 13:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-14 16:39 bug#59265: 27.1; emacs apparently redraws the entire X window for every update Francesco Potortì
2022-11-15  0:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-15 13:30 ` Eli Zaretskii [this message]
2022-11-15 13:57   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-15 14:04     ` Francesco Potortì
2022-11-24 18:37     ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83leocibu6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59265@debbugs.gnu.org \
    --cc=pot@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).