General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Jonathan Morton <chromatix99@gmail.com>
To: Michael Richardson <mcr@sandelman.ca>
Cc: Kenneth Porter <shiva@sewingwitch.com>,
	bloat <bloat@lists.bufferbloat.net>
Subject: Re: [Bloat] DSLReports Speed Test doesn't like Remote Desktop
Date: Sat, 28 Aug 2021 23:07:29 +0300	[thread overview]
Message-ID: <A8B9B71F-EC70-4A4D-BD60-0F21B6D93339@gmail.com> (raw)
In-Reply-To: <4088.1630179385@localhost>

> On 28 Aug, 2021, at 10:36 pm, Michael Richardson <mcr@sandelman.ca> wrote:
> 
> RDP (specifically with Windows as the desktop) is integrated into the display
> pipeline such that it effectively never loses frames.  The results of an
> (e.g.) Excel redraw over a slow link can be spectactically stupid with every
> cell being drawn each time it is "re"-computed.  The result is that the
> application itself is blocked when the RDP frames are being generated.
> 
> I/we observed this a decade ago when building virtual desktop infrastructure.
> There was a Linux Xrdp server (via a bunch of patches that didn't survive)
> that was more screen-scraper.  VNC has always screen scraped the pixels, so it
> "naturally" skips the intermediate frames when the application draws faster
> than then remote desktop protocol can keep up.
> 
> I thought that there were patches to RDP to make this better, but I never
> confirmed this.

Funnily enough, I was actually in the VNC community for a while, having written a functioning server for Classic MacOS, so I'm familiar with this dilemma.  Due to some quirks of Classic MacOS, it was often necessary to do the screen-scraping, encoding and socket transmissions at interrupt time, and I had to limit the amount of data generated at any given time so that it didn't block on a full buffer - which could lock *everything* up.

My experience of modern browser rendering pipelines is that they do everything in backbuffers, then blit them to the screen wholesale.  This *should* be quite efficient for an RDP to handle, so long as it excludes areas that were unchanged on consecutive blits.  But it's also possible for it to pick up drawing to background tabs, and only after much CPU effort determine that nothing visibly changed.

At any rate, the original problem turned out to be something else entirely.

 - Jonathan Morton

      reply	other threads:[~2021-08-28 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26 23:25 Kenneth Porter
2021-08-27 10:18 ` Jonathan Morton
2021-08-27 15:36   ` Kenneth Porter
2021-08-27 21:56   ` Kenneth Porter
2021-08-28 19:36   ` Michael Richardson
2021-08-28 20:07     ` Jonathan Morton [this message]

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://lists.bufferbloat.net/postorius/lists/bloat.lists.bufferbloat.net/

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

  git send-email \
    --in-reply-to=A8B9B71F-EC70-4A4D-BD60-0F21B6D93339@gmail.com \
    --to=chromatix99@gmail.com \
    --cc=bloat@lists.bufferbloat.net \
    --cc=mcr@sandelman.ca \
    --cc=shiva@sewingwitch.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox