This should be fixed by this change. Thanks!
Index: server-client.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/server-client.c,v
retrieving revision 1.323
diff -u -p -r1.323 server-client.c
--- server-client.c 18 Apr 2020 06:20:50 -0000 1.323
+++ server-client.c 18 Apr 2020 06:51:21 -0000
@@ -1732,7 +1732,6 @@ server_client_check_redraw(struct client
flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR);
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE)) | TTY_NOCURSOR;
- tty_update_mode(tty, mode, NULL);
if (~c->flags & CLIENT_REDRAWWINDOW) {
/*
@@ -1742,13 +1741,14 @@ server_client_check_redraw(struct client
TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
if (wp->flags & PANE_REDRAW) {
log_debug("%s: redrawing pane %%%u", __func__,
wp->id);
- tty_update_mode(tty, tty->mode, NULL);
+ tty_update_mode(tty, mode, NULL);
screen_redraw_pane(c, wp);
}
}
}
if (c->flags & CLIENT_ALLREDRAWFLAGS) {
+ tty_update_mode(tty, mode, NULL);
if (options_get_number(s->options, "set-titles"))
server_client_set_title(c);
screen_redraw_screen(c);
On Sat, Apr 18, 2020 at 02:24:00PM +0800, Vladimir Lomov wrote:
> Hello,
>
> I see high CPU and network load from terminals (kitty, alacritty) when use
> tmux compiled from GIT with commit a7a9460d2790161f7bb60c4047acf32d3aa93ed9
> "Set mode properly before and after redrawing, and don't bother calculating
> cursor position if it won't be used.".
>
> High CPU load I see when run tmux locally in a terminal and both CPU and
> network load if I ssh to a host and attach tmux session in terminal.
>
> The tmux compiled without this commit works fine.
>
> ---
> WBR, Vladimir Lomov
>
> --
> Ever wonder if taxation without representation might have been cheaper?
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/20200418062400.GA835%40smoon.bkoty.ru.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/tmux-users/20200418065314.pbx4nia4i7djo372%40yelena.