Wiki

Clone wiki

TreeView3 / Performance

Dealing with Choppy/Sluggish Performance

If TreeView3's performance seems slow, particularly the live labels feature or matrix navigation, you may be able to take advantage of graphics enhancements installed on your system called "OpenGL". Your java runtime environment is built to take advantage of this hardware acceleration (if you have the opengl graphics drivers installed). Follow these steps to enable OpenGL for TreeView3. If after enabling, the TreeView3 graphics start behaving weird, then you probably don't have opengl drivers installed. Just reverse the process to disable opengl.

Enabling OpenGL

Note, you will have to perform this adjustment anytime you update your copy of TreeView3.

Mac

  • Find the TreeView3 App in your Applications folder
  • Right-click the TreeView3 app and select "Show Package Contents"

tv3showpkgcont.png

  • Open the resulting "Contents" folder and drag the "Info.plist" file to your "TextEdit.app" application (you can find it in your Applications folder or by doing a spotlight search).

tv3plisttote.gif

  • Search the file to find a section that looks like this (note, the default memory is 4 Gigs -Xmx4g):
    <key>JVMOptions</key>
       <array>
          <string>-Xmx4g</string>
       </array>
    
  • Edit this entry to the following:
    <key>JVMOptions</key>
       <array>
          <string>-Xmx4g</string>
          <string>-Dsun.java2d.opengl=true</string>
       </array>
    
  • Save and close the Info.plist file

Linux

  1. Add a TREEVIEW3_OPTS environment variable to your shell's login script. E.g. If you use bash, add export TREEVIEW3_OPTS="-Dsun.java2d.opengl=true" to your .bashrc file in your home directory (or setenv TREEVIEW3_OPTS "-Dsun.java2d.opengl=true" in your .cshrc if you use csh).
  2. Start TreeView3 on the command line using the treeview3 command.

Windows

Note, the following changes the default max memory system-wide for all java apps. To change the memory for just TreeView3, you must use the Command Prompt to start TreeView3.

  1. From the Desktop, right-click "My Computer" and click "Properties".
  2. Click "Advanced System Settings" in the left column.
  3. In the System Properties window, click the "Environment Variables" button.
  4. Click "New" to add a new variable name and value.
  5. For variable name, enter "JAVA_OPTS" and for variable value, enter -Dsun.java2d.opengl=true
  6. Click ok and close the System Properties Tab.

Updated