Using -Dsun.java2d.opengl=true

I'm curious if anyone else has gotten the -Dsun.java2d.opengl=true flag to work (using java 1.5 of course) with Irida?

I know it's a no-no to use the 1.5 JRE, but I thought it'd be fun to try and use it with the accelerated swing turned on.

This works on about 99% of the swing apps that I use and performs BEAUTIFULLY, but for some reason Intellij just won't do it (segfaults in the native libraries somewhere).

I'm guessing Intellij probably uses some native widgets or something that messes with the opengl rendering, it's not really important.

BUT, if somone HAS gotten it to work, please tell me your secret.

4 comments
Comment actions Permalink

It DID work most of the time for me (under Linux, at least), but sometimes I get a NotImplementedException. I can't remember exactly when right now, but I remember posting on the java.net forums and the java2d developers acknowledged that was a known limitation.

Performance is significantly faster, specially if you're using a good GL implementation (ie, NVidia's). Unfortunatelly, there's still lots of work to be done on the opengl pipeline before it's complete.

0
Comment actions Permalink

so you never got an exception in libmawt.so? That's what Ialways get. I wonder if Ineed to do something fancy with my LD_LIBRARY_PATH?

0
Comment actions Permalink

No, this exception never happened to me. And I can't remember tuning LD_LIBRARY_PATH or anything like that. Hmm...

0
Comment actions Permalink

With XP SP2 causes square artifacts around the cursor for me.

0

Please sign in to leave a comment.