Wiki
Clone wikiTreeView3 / 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"
- 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).
- 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
- 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 (orsetenv TREEVIEW3_OPTS "-Dsun.java2d.opengl=true"
in your .cshrc if you use csh). - 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.
- From the Desktop, right-click "My Computer" and click "Properties".
- Click "Advanced System Settings" in the left column.
- In the System Properties window, click the "Environment Variables" button.
- Click "New" to add a new variable name and value.
- For variable name, enter "JAVA_OPTS" and for variable value, enter -Dsun.java2d.opengl=true
- Click ok and close the System Properties Tab.
Updated