summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-11-20 15:37:31 +0000
committerPierre Ossman <ossman@cendio.se>2011-11-20 15:37:31 +0000
commitc997129ef3c1af1723750794845354e077379d56 (patch)
tree60d05788b5af8335434178b838dc5af570b7ece2 /common
parentb114cec89edf6d69c545712f29decac1631c94a2 (diff)
downloadtigervnc-c997129ef3c1af1723750794845354e077379d56.tar.gz
tigervnc-c997129ef3c1af1723750794845354e077379d56.zip
The block size for the comparing update tracker was inefficently low. Raising
it from 16 to 64 pixels significantly reduces the CPU overhead in many cases, without sacrificing much in what it detects. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4810 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r--common/rfb/ComparingUpdateTracker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ComparingUpdateTracker.cxx b/common/rfb/ComparingUpdateTracker.cxx
index 43287e07..1c2bd383 100644
--- a/common/rfb/ComparingUpdateTracker.cxx
+++ b/common/rfb/ComparingUpdateTracker.cxx
@@ -35,7 +35,7 @@ ComparingUpdateTracker::~ComparingUpdateTracker()
}
-#define BLOCK_SIZE 16
+#define BLOCK_SIZE 64
bool ComparingUpdateTracker::compare()
{