diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-13 18:07:53 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-13 18:07:53 +0000 |
commit | 6970b2d8b61a78a9d9b7549269096b8f025a8b44 (patch) | |
tree | fe3da30ae3012fdeb0422df77808bbf46c260a89 /common/rfb/VNCSConnectionST.cxx | |
parent | a77e818d9b4db8794b7a051118a0542de660a857 (diff) | |
download | tigervnc-6970b2d8b61a78a9d9b7549269096b8f025a8b44.tar.gz tigervnc-6970b2d8b61a78a9d9b7549269096b8f025a8b44.zip |
Restored the functionality of the VideoPriority parameter. This time, it
should work correctly even over slow networks, when update requests go less
frequently than polling cycles. This version does not give any special
meaning to the value 0, it is equivalent to 1.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2584 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/VNCSConnectionST.cxx')
-rw-r--r-- | common/rfb/VNCSConnectionST.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 95b99fdd..a9c59f3e 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -541,7 +541,13 @@ void VNCSConnectionST::writeFramebufferUpdate() updates.enable_copyrect(cp.useCopyRect); - server->checkUpdate(); + static int counter = 1; + if (--counter > 0) { + server->checkVideoUpdate(); + } else { + counter = rfb::Server::videoPriority; + server->checkUpdate(); + } // Get the lists of updates. Prior to exporting the data to the `ui' object, // getUpdateInfo() will normalize the `updates' object such way that its |