From c95456c0e136109447017a43c1cfc5f9ca363b6b Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 23 Oct 2012 16:20:06 -0500 Subject: [PATCH] rfb.js: skip tight when true color is disabled. Generally this means falling back to 8-bit colour mapped hextile which is uses more bandwidth and is likely slower that tight with 24-bit true color. This is related to this query: http://superuser.com/questions/484790/how-to-use-8-bit-mode-with-novnc --- include/rfb.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/rfb.js b/include/rfb.js index 5b46c12b..b7be99f8 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -1674,6 +1674,11 @@ clientEncodings = function() { if ((encodings[i][0] === "Cursor") && (! conf.local_cursor)) { Util.Debug("Skipping Cursor pseudo-encoding"); + + // TODO: remove this when we have tight+non-true-color + } else if ((encodings[i][0] === "TIGHT") && + (! conf.true_color)) { + Util.Warn("Skipping tight, only support with true color"); } else { //Util.Debug("Adding encoding: " + encodings[i][0]); encList.push(encodings[i][1]);