ios-personmd-notifications md-help-circle

Profile

  • Guest
    medal 0
  • Posts: 21
  • Post Likes: 3765

Notifications

  • No Unread Notifications

[Linux] Choppy 2d viewer

warning
This thread is closed. Threads older than 6 weeks are closed automatically. To continue this discussion, create a new thread.
angle-double-left ios-arrow-back 1 ios-arrow-forward angle-double-right
md-lock This topic has been closed by the moderator
medal 5000
12 years 185 days ago
2d viewer was performing poorly on my linux laptop - very low framerate and overall unpleasent experience.
I found that adding -Dsun.java2d.opengl=true as a runtime parameter took the 2d viewer from 5fps to 30fps average.


How to do it?

1. Open the Java Control Panel.
You can do that by either launching it from your desktop enviroment or by running jcontrol from terminal.

2. Go to Java Runtime Enviroment Settings.
Look for a View button under Java tab in Java Control Panel.

3. Add -Dsun.java2d.opengl=true to Runtime Parameters.


4. Restart.
I tried running it right after I added the line and after relogging into my desktop enviroment but it only took effect after I rebooted the machine.


I know this isn't the best way to do it as now every Java application starts with opengl enabled 2d acceleration but in my case it actually fixed similar issues with other Java applications I'm running so it isn't a problem.

I'm sure this can help Windows and Mac users as well but my issues were Linux specific as the 2d viewer on the same machine worked fine in Windows 7.
md-quotelink
medal 5000
12 years 185 days ago
Thanks for this Rudolf.  We'll investigate enabling this by default.
md-quotelink
md-lock This topic has been closed by the moderator
angle-double-left ios-arrow-back 1 ios-arrow-forward angle-double-right

You must be logged in to post a reply.