9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] [drawterm] Wayland support and misc patches
Date: Fri, 15 Oct 2021 13:20:25 +0200	[thread overview]
Message-ID: <B9B6ACAA3F10AC4D2D333D72C3124AF2@felloff.net> (raw)
In-Reply-To: <edc88a07-5108-ab05-458b-12710966c8ed@posixcafe.org>

> Also I am not sure why there was a sleep within the
> kern/term.c:/^resizeproc/ loop, but I noticed the delay
> when working on the wayland backend. There is a patch for
> removing that sleep.

it is for debouncing.

that is, when we get a zillion window resize events per
second (which can happen with some window managers),
we do not want to flood that to the remote side as it
is a very expensive operation in devdraw model,
as every graphical program needs to be notified
and re allocate a its screen and then redraw.

so with the sleep, we limit the rate of devdraw
resize to once per second.

also note the location of the delay. it will do the
first resize *immediately*. but then wait at least
a second until we check if it got resized again.

so this is only affecting window managers that
continuously generate resize events for the window.


  parent reply	other threads:[~2021-10-16  9:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14  1:59 Jacob Moody
2021-10-15  2:22 ` Stanley Lieber
2021-10-15 11:20 ` cinap_lenrek [this message]
2021-10-17  3:49 ` Stephen Gregoratto

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:

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

  git send-email \
    --in-reply-to=B9B6ACAA3F10AC4D2D333D72C3124AF2@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9front@9front.org \


* 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.
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 NNTP newsgroup(s).