Re: rdesktop mouse movement events consume excessive bandwidth

Jay Sorg <[email protected]> Sun, 6 Jun 2010 01:23:11 -0700
Newsgroups gmane.network.rdesktop.user
Message-ID <[email protected]>
>From my experience as an RDP developer, I think I can explain the
difference between rdesktop and MSTSC on input.

rdesktop is less efficient for 3 reasons.

1. input PDUs have a "number of events" field, see rdp_send_input in
rdp.c.  rdesktop always sends one at a time.  MSTSC sometimes sends
many.

2. Nagle algorithm.  rdesktop always disables the nagle algorithm.
This make for faster response time but more bandwidth.  Not sure but I
don't think MSTSC ever disables this.

3. Fast path input.  Since RDP 5 there is a more compact PDU for input
that rdesktop does not utilize.  I implemented this in freerdp but not
rdesktop yet.

Changing 1 is difficult but 2 and 3 are fairly easy.
For 1 you need some kind of thread or timer.

Jay

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo