Thursday, August 5, 2010

OpenJDK: Slooow user interface?

Try to run Makagiga (or any other Java/Swing application) with the "sun.java2d.pmoffscreen" option turned off.

Method 1:

$ export _JAVA_OPTIONS='-Dsun.java2d.pmoffscreen=false'
$ makagiga

You should notice an extra "Picked up _JAVA_OPTIONS" message.

Method 2:

$ java -Dsun.java2d.pmoffscreen=false -jar /path/to/makagiga.jar

1 comment:

Anonymous said...

Useful info. Fortunate me I discovered your website accidentally, and I'm shocked why this twist of fate did not happened in advance! I bookmarked it.
Also see my website - online portfolio