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
This commit is contained in:
parent
73ee4fa7cc
commit
c95456c0e1
|
@ -1674,6 +1674,11 @@ clientEncodings = function() {
|
||||||
if ((encodings[i][0] === "Cursor") &&
|
if ((encodings[i][0] === "Cursor") &&
|
||||||
(! conf.local_cursor)) {
|
(! conf.local_cursor)) {
|
||||||
Util.Debug("Skipping Cursor pseudo-encoding");
|
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 {
|
} else {
|
||||||
//Util.Debug("Adding encoding: " + encodings[i][0]);
|
//Util.Debug("Adding encoding: " + encodings[i][0]);
|
||||||
encList.push(encodings[i][1]);
|
encList.push(encodings[i][1]);
|
||||||
|
|
Loading…
Reference in New Issue