Thoughts and suggestions

Greg Breland gbreland "at" healthtech.net
Mon, 11 Sep 2000 16:12:31 +0000


I had just gotten through hacking the Linux vncviewer source to add logging
of rects received from the server.  You are right, the initial startup of
the viewer in fullscreen mode is very different from the normal mode.

What I did to the source was add logging to the hextile.c file every place
that the ReadFromRFBServer() command was used.  I also collected some stats
along the way, here are the stats using hextile encoding for connecting to a
1024x768 Xvnc server with the modified viewer:

------------------------------
Encoding: 5    x:0 y:0 w:1024 h:768   Size: 110193  Total Rects:1
Encoding: 5    x:0 y:0 w:1024 h:768   Size: 110193  Total Rects:2
Encoding: 5    x:0 y:0 w:986 h:702   Size: 75091  Total Rects:3
Encoding: 5    x:986 y:0 w:38 h:702   Size: 1120  Total Rects:4
Encoding: 5    x:0 y:702 w:1024 h:66   Size: 33717  Total Rects:5


Total First Update: 323 KB
------------------------------

The encoding type of 5 is hextile, the size is in bytes and the total rects
are the number of top level rects, not sub-rects of hextile.  Compare this
to the normal output of non-fullscreen:

------------------------------
Encoding: 5    x:0 y:0 w:1024 h:768  Size: 110179  Total Rects:1

Total First Update: 107 KB
------------------------------

So the full screen mode sends exactly 3 times the information needed to
start the session.  After this initial noise, everything seems to operate as
normal.  

Notice the size difference between the two full screen updates.  This is odd
and I can not explain it.  Even when I repeatedly restarted a normal
session, the size would vary a little.  The screen is the same each time as
I was very careful not to send it even one mouse or key event.

I think the problem is in the server, since the client merely issues a
request for any new updates.  I have not even started looking at the server
code on the Linux side.  Anyone know why the Xvnc server would do this in
fullscreen mode?



> -----Original Message-----
> From: Const Kaplinsky [mailto:const "at" ce.cctpu.edu.ru]
>
> By the way, if we run vncviewer (Unix version) in full screen to
> access Xvnc session, the whole initial framebuffer is transmitted
> three (!) times.
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------