>Date: Thu, 16 May 2002 15:30:06 +0100 >From: Jonathan Morton <[EMAIL PROTECTED]> >Subject: Re: VNCServer throttles user inpt for slow client > > >> >>I've created my > >>>>own VNCclient with a delay timer in the main processing loop. The problem >>>>is that the VNCServer seems to spread out my mouse events over time even >>>>though they have already occurred. > >> > >>>Are you *absolutely* sure that it's the server doing this, and not >>>your client? Typically, a mouse event reaches the client on each >>>pass through the main processing loop, at least for X11 and MacOS >>>"classic" event models. > >> >>No, I'm not positive that it's the server. What I observer is that when I >>run two viewers, one a "classic" viewer and one my own custom viewer. If I >>move the mouse across the screen via the classic viewer, it moves as >>expected. But what I observer on my custom viewer is that the mouse events >>are spread out and take a long time to complete. Now in my custom viewer I >>have a delay in the main loop that requests updates from the server. My >>question is, when I make a SendIncrementalFramebufferUpdateRequest shouldn't >>I get "all" of the queued changes? I think that I'm only getting part of >>them, otherwise I would see the mouse jump across the screen. Its obvious >>that I'm getting frame updates since the mouse is moving and that my timer >>is slowing things down, but I thought that when I asked the server for >>changes that it would give them all to me. > > >Yes, the server *is* sending all the updates to you. The problem is >that *you* are not sending all the events to the server as fast as >you should.
>My suggestion is that you only do the 'delay' thing after processing >an update, not on every system event. That way the server gets all >the events it needs. I do not think that the server is sending me all the updates when I ask. My delay viewer is not sending any mouse events. It is just a viewer connected to the server. In my example, I'm running two viewers, one is a "classic' vncviewer, the other is my custom viewer with a delay. When I move the mouse on the "classic" viewer, it displays the mouse movements as expected with reasonable updates. The viewer with the delay is connected to the same server, but shows the mouse movements spread out over time, lasting many times longer than the "real" movement. Now I can understand that since I have a delay, I should see a slower response the first time, but the second time I ask the server for updates, I should get the last position of the mouse (i.e. the mouse should leap across the screen). But what I see it that I get the mouse events dribbled to my delay viewer and I do not get them all at once as I would expect. mark --------------------------------------------------------------------- To unsubscribe, mail [EMAIL PROTECTED] with the line: 'unsubscribe vnc-list' in the message BODY See also: http://www.uk.research.att.com/vnc/intouch.html ---------------------------------------------------------------------