]> source.dussan.org Git - tigervnc.git/commitdiff
Increase the default compression level to cater to a broader range of users
authorPierre Ossman <ossman@cendio.se>
Sun, 20 Nov 2011 15:39:17 +0000 (15:39 +0000)
committerPierre Ossman <ossman@cendio.se>
Sun, 20 Nov 2011 15:39:17 +0000 (15:39 +0000)
(bandwidth is often the limiting factor, rather than CPU). Further increases
give little returns, so 2 is currently deemed the best tradeoff.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4811 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ConnParams.cxx
common/rfb/TightEncoder.cxx
vncviewer/parameters.cxx

index 2f0e275eca94e0f879619ec2a08b2189368c129e..ed747523e6301b43735c284bec6ade9fddb12acf 100644 (file)
@@ -35,7 +35,7 @@ ConnParams::ConnParams()
     supportsDesktopRename(false), supportsLastRect(false),
     supportsSetDesktopSize(false), supportsFence(false),
     supportsContinuousUpdates(false),
-    customCompressLevel(false), compressLevel(6),
+    customCompressLevel(false), compressLevel(2),
     noJpeg(false), qualityLevel(-1), fineQualityLevel(-1),
     subsampling(SUBSAMP_UNDEFINED),
     name_(0), nEncodings_(0), encodings_(0),
index 1b37c8ad70fea8d7da8763a05a8e8a302a931b7d..9be4581e9bd0bf5fb877f2c4738656532b3141c2 100644 (file)
@@ -74,7 +74,8 @@ const TIGHT_CONF TightEncoder::conf[10] = {
   { 65536, 2048,  24, 9, 9, 7,  64, 96, 92, SUBSAMP_NONE }, // 8
   { 65536, 2048,  32, 9, 9, 9,  96, 96,100, SUBSAMP_NONE }  // 9
 };
-const int TightEncoder::defaultCompressLevel = 1;
+
+const int TightEncoder::defaultCompressLevel = 2;
 
 //
 // Including BPP-dependent implementation of the encoder.
index 99b224e6c49e01c24d19c1a6edacba120a51d28e..e831478791a060dc53efacfcd8e2459aef7a15f7 100644 (file)
@@ -56,7 +56,7 @@ BoolParameter customCompressLevel("CustomCompressLevel",
                                   "Default if CompressLevel is specified.", false);
 IntParameter compressLevel("CompressLevel",
                            "Use specified compression level 0 = Low, 6 = High",
-                           1);
+                           2);
 BoolParameter noJpeg("NoJPEG",
                      "Disable lossy JPEG compression in Tight encoding.",
                      false);