Suggestion: Turn on opengl rendering to maximize rendering performance

Issue #545 closed
Lance Parsons created an issue

USE CASE:

Turn on hardware acceleration for graphics rendering**

STEPS TO TRIGGER

Should be automatic

CURRENT BEHAVIOR

opengl is off by default (at least it seems to be on my Ubuntu box)

EXPECTED BEHAVIOR

opengl is on, enabling hardware acceleration of 2d graphics

SUGGESTED CHANGE

See: https://stackoverflow.com/a/13832805/63093

1) So far hardware acceleration is never enabled by default, and to my knowledge it has not changed yet. To activate rendering acceleration pass this arg (-Dsun.java2d.opengl=true) to the Java launcher at program start up, or set it before using any rendering libraries. System.setProperty("sun.java2d.opengl", "true"); It is an optional parameter.

FILES AFFECTED

Either setting a flag in the packaging script, or, better yet, turning on during startup (before any rendering)

LEVEL OF EFFORT

minor

COMMENTS

After some testing, performance did not seem to be affected noticeably (though the first time you run treeview (/java? sometimes?), is seems a bit slow. It then speeds up. So instead of adding it by default (which means we would have to require opengl drivers as a dependency), I added a wiki page instructing people how to turn it on - by supplying the command line flag.

Comments (9)

  1. Robert Leach

    Waiting from lance to see if this improved his performance (it didn't on my mac - but it looks pretty good already).

  2. Log in to comment