From 2ac6381add8aa99b3ebdc2afd2cd16525b70306e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Fri, 7 Jan 2005 09:48:15 +0000 Subject: [PATCH] Tight encoding is actually faster than Hextile when bandwidth is less than roughly 16 Mbps. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@84 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- vncviewer/cview.cxx | 4 ++-- vncviewer_unix/CConn.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vncviewer/cview.cxx b/vncviewer/cview.cxx index 97cb9afe..fd5d2c5e 100644 --- a/vncviewer/cview.cxx +++ b/vncviewer/cview.cxx @@ -1128,7 +1128,7 @@ CView::framebufferUpdateEnd() { // to the connection speed: // // Above 16Mbps (timing for at least a second), same machine, switch to raw -// Above 3Mbps, switch to hextile +// Above 16Mbps (timing for at least a second), switch to hextile // Otherwise, switch to Tight // // Above 256Kbps, use full colour mode @@ -1143,7 +1143,7 @@ CView::autoSelectFormatAndEncoding() { // Select best encoding if (kbitsPerSecond > 16000 && sameMachine && timeWaited >= 10000) { newEncoding = encodingRaw; - } else if (kbitsPerSecond > 3000 && timeWaited >= 10000) { + } else if (kbitsPerSecond > 16000 && timeWaited >= 10000) { newEncoding = encodingHextile; } else { newEncoding = encodingTight; diff --git a/vncviewer_unix/CConn.cxx b/vncviewer_unix/CConn.cxx index 8a4e04e8..1c104601 100644 --- a/vncviewer_unix/CConn.cxx +++ b/vncviewer_unix/CConn.cxx @@ -643,7 +643,7 @@ void CConn::reconfigureViewport() // to the connection speed: // // Above 16Mbps (timing for at least a second), same machine, switch to raw -// Above 3Mbps, switch to hextile +// Above 16Mbps (timing for at least a second), switch to hextile // Otherwise, switch to Tight // // Above 256Kbps, use full colour mode @@ -658,7 +658,7 @@ void CConn::autoSelectFormatAndEncoding() // Select best encoding if (kbitsPerSecond > 16000 && sameMachine && timeWaited >= 10000) { newEncoding = encodingRaw; - } else if (kbitsPerSecond > 3000 && timeWaited >= 10000) { + } else if (kbitsPerSecond > 16000 && timeWaited >= 10000) { newEncoding = encodingHextile; } else { newEncoding = encodingTight; -- 2.39.5