diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-11-20 15:37:31 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-11-20 15:37:31 +0000 |
commit | c997129ef3c1af1723750794845354e077379d56 (patch) | |
tree | 60d05788b5af8335434178b838dc5af570b7ece2 /common | |
parent | b114cec89edf6d69c545712f29decac1631c94a2 (diff) | |
download | tigervnc-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.cxx | 2 |
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() { |