]> source.dussan.org Git - tigervnc.git/commitdiff
Prefer ZRLE over Tight. ZRLE is actually faster in most cases. Also, the Tight server...
authorPeter Åstrand <astrand@cendio.se>
Thu, 11 Aug 2005 09:01:31 +0000 (09:01 +0000)
committerPeter Åstrand <astrand@cendio.se>
Thu, 11 Aug 2005 09:01:31 +0000 (09:01 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@304 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/cview.cxx
vncviewer_unix/CConn.cxx

index 180119a197a878179c181c3958dd54c8ccc6af17..614f04f3250bebd32de9a3754fb0650b16faa4a6 100644 (file)
@@ -1187,7 +1187,7 @@ CView::framebufferUpdateEnd() {
 // 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 @@ CView::autoSelectFormatAndEncoding() {
   if (kbitsPerSecond > 16000 && timeWaited >= 10000) {
     newEncoding = encodingHextile;
   } else {
-    newEncoding = encodingTight;
+    newEncoding = encodingZRLE;
   }
 
   if (newEncoding != options.preferredEncoding) {
index c618b934c162aa2ff61f632030781200ae8f91ed..c3d0727831b9633ceef6e3c94ae3b87736e1778b 100644 (file)
@@ -53,7 +53,7 @@ CConn::CConn(Display* dpy_, int argc_, char** argv_, network::Socket* sock_,
   : 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 @@ void CConn::reconfigureViewport()
 // 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 @@ void CConn::autoSelectFormatAndEncoding()
   if (kbitsPerSecond > 16000 && timeWaited >= 10000) {
     newEncoding = encodingHextile;
   } else {
-    newEncoding = encodingTight;
+    newEncoding = encodingZRLE;
   }
 
   if (newEncoding != currentEncoding) {