Prefer ZRLE over Tight. ZRLE is actually faster in most cases. Also, the Tight server encoder in 1.5 is far from finished.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@304 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/cview.cxx b/vncviewer/cview.cxx
index 180119a..614f04f 100644
--- a/vncviewer/cview.cxx
+++ b/vncviewer/cview.cxx
@@ -1187,7 +1187,7 @@
// to the connection speed:
//
// Above 16Mbps (timing for at least a second), switch to hextile
-// Otherwise, switch to Tight
+// Otherwise, switch to ZRLE
//
// Above 256Kbps, use full colour mode
//
@@ -1202,7 +1202,7 @@
if (kbitsPerSecond > 16000 && timeWaited >= 10000) {
newEncoding = encodingHextile;
} else {
- newEncoding = encodingTight;
+ newEncoding = encodingZRLE;
}
if (newEncoding != options.preferredEncoding) {
diff --git a/vncviewer_unix/CConn.cxx b/vncviewer_unix/CConn.cxx
index c618b93..c3d0727 100644
--- a/vncviewer_unix/CConn.cxx
+++ b/vncviewer_unix/CConn.cxx
@@ -53,7 +53,7 @@
: dpy(dpy_), argc(argc_),
argv(argv_), serverHost(0), serverPort(0), sock(sock_), viewport(0),
desktop(0), desktopEventHandler(0),
- currentEncoding(encodingTight), lastServerEncoding((unsigned int)-1),
+ currentEncoding(encodingZRLE), lastServerEncoding((unsigned int)-1),
fullColour(::fullColour),
autoSelect(::autoSelect), shared(::shared), formatChange(false),
encodingChange(false), sameMachine(false), fullScreen(::fullScreen),
@@ -648,7 +648,7 @@
// to the connection speed:
//
// Above 16Mbps (timing for at least a second), switch to hextile
-// Otherwise, switch to Tight
+// Otherwise, switch to ZRLE
//
// Above 256Kbps, use full colour mode
//
@@ -663,7 +663,7 @@
if (kbitsPerSecond > 16000 && timeWaited >= 10000) {
newEncoding = encodingHextile;
} else {
- newEncoding = encodingTight;
+ newEncoding = encodingZRLE;
}
if (newEncoding != currentEncoding) {