From: Brian Hinz Date: Wed, 17 Aug 2011 14:37:41 +0000 (+0000) Subject: Implement recommendations from low-level performance study into java client. Mirrors... X-Git-Tag: v1.1.90~172 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12c81df882452e715e0cc1684b81ef347b6508fe;p=tigervnc.git Implement recommendations from low-level performance study into java client. Mirrors the changes made to the Fltk viewer in r4632. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4635 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/java/src/com/tigervnc/vncviewer/OptionsDialog.java b/java/src/com/tigervnc/vncviewer/OptionsDialog.java index f38a1e65..65af744e 100644 --- a/java/src/com/tigervnc/vncviewer/OptionsDialog.java +++ b/java/src/com/tigervnc/vncviewer/OptionsDialog.java @@ -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 }; diff --git a/java/src/com/tigervnc/vncviewer/VncViewer.java b/java/src/com/tigervnc/vncviewer/VncViewer.java index 384c5f2b..119b6adc 100644 --- a/java/src/com/tigervnc/vncviewer/VncViewer.java +++ b/java/src/com/tigervnc/vncviewer/VncViewer.java @@ -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);