]> source.dussan.org Git - tigervnc.git/commitdiff
Implement recommendations from low-level performance study into java client. Mirrors...
authorBrian Hinz <bphinz@users.sourceforge.net>
Wed, 17 Aug 2011 14:37:41 +0000 (14:37 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Wed, 17 Aug 2011 14:37:41 +0000 (14:37 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4635 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tigervnc/vncviewer/OptionsDialog.java
java/src/com/tigervnc/vncviewer/VncViewer.java

index f38a1e653df2986c93e72f3845ee65a0d9f975b0..65af744e39571983c322d8a1f2faeb52c5626fba 100644 (file)
@@ -87,9 +87,9 @@ class OptionsDialog extends Dialog implements
     JPanel tightPanel = new JPanel(new GridBagLayout());
     customCompressLevel = new JCheckBox("Custom Compression Level");
     customCompressLevel.addItemListener(this);
-    Object[] compressionLevels = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
+    Object[] compressionLevels = { 1, 2, 3, 4, 5, 6 };
     compressLevel  = new JComboBox(compressionLevels);
-    JLabel compressionLabel = new JLabel("Level (1=fast, 9=best)");
+    JLabel compressionLabel = new JLabel("Level (1=fast, 6=best [4-6 are rarely useful])");
     noJpeg = new JCheckBox("Allow JPEG Compression");
     noJpeg.addItemListener(this);
     Object[] qualityLevels = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
index 384c5f2b59d7a3f17ad9386242e50734daf82ef8..119b6adcac74c09dd34f88922030c89bea8e6e0f 100644 (file)
@@ -253,8 +253,8 @@ public class VncViewer extends java.applet.Applet implements Runnable
   IntParameter compressLevel
   = new IntParameter("CompressLevel",
                                            "Use specified compression level "+
-                                           "0 = Low, 9 = High",
-                                           6);
+                                           "0 = Low, 6 = High",
+                                           1);
   BoolParameter noJpeg
   = new BoolParameter("NoJPEG",
                           "Disable lossy JPEG compression in Tight encoding.", false);