From a124c8eab248d5cca094e97d2f73f7651db355f5 Mon Sep 17 00:00:00 2001 From: "Alexander E. Patrakov" Date: Thu, 29 Dec 2016 17:56:59 +0500 Subject: [PATCH] Changed the default compression level to 2 The old default was to ask for the maximum compression level. This is against the recommendations in libvncserver/tight.c due to excessive CPU load. It also causes Vino 3.8.1 (still shipped with Ubuntu 16.04 LTS) to prefer the blurry JPEG compression too much - e.g. red text on the default background in MATE terminal becomes almost unreadable. The new default is the recommended compression level for low-color workloads, according to libvncserver source. Also, it is the maximum compression level that doesn't trigger the Vino bug with red text in most cases. Fixes issue #737. --- core/rfb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rfb.js b/core/rfb.js index 51350eea..eebcb0f7 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -60,7 +60,8 @@ ['JPEG_quality_med', -26 ], //['JPEG_quality_hi', -23 ], //['compress_lo', -255 ], - ['compress_hi', -247 ], + ['compress_hi', -254 ], + //['compress_max', -247 ], ['DesktopSize', -223 ], ['last_rect', -224 ],