Hi,
I recently began experimenting with 1.5’s opengl pipeline under linux and am confused about a couple of things.
First, (and this may be a bit of a noob question) does enabling the opengl pipeline differ between setting the property as a JVM parameter via
-Dsun.java2d.opengl=True
vs setting the system property in main() with
System.setProperty("sun.java2d.opengl", "True");
I was under the impression that setting doing the System.setProperty as soon as possible was the correct way to set java2d properties. However, if I do it with System.setProperty, I don’t get the warm and fuzzy “OpenGL pipeline enabled for default config on screen 0” output.
Does the System.setProperty just not output the verbose messages, or can the opengl pipeline only be set by passing it as a JVM parameter?
Second, as I mentioned, I get a “OpenGL pipeline enabled for default config on screen 0”. However, I also get a “Could not enable OpenGL pipeline for default config on screen 1”. So I am wondering what this implies as far as my hardware goes. I am using a dual monitor setup with an Nvidia card using Twinview. Does this mean that opengl is disabled for one of the displays? If I want hardware acceleration should I be checking that my window is remains completely within the bounds of screen 0? My guess is that Nvidia’s Twinview abstracts away the second monitor and treats screen 0 as one large, opengl accelerated dispaly, rendering screen 1 as reported by java irrelevant, but this is just a guess. Does anyone know for certain?
Third, when watching the “sun.java2d.trace” output in Windows I know to look for “D3DBlitLoops” to know that it’s accelerated, but I’m not sure what to look for in Linux. I am seeing alot of [quote]sun.awt.X11PMBlitLoops::Blit(“Integer RGB Pixmap”, SrcNoEa, “Integer RGB Pixmap”)
[/quote]
which I’m guess are not hardware accelerated based on the fact that they have “X11” in there. Is this a correct assumpution? What should I be seeing as far as OpenGL accelerated messages go from the java2d.trace feature?
Anyway, just trying to get a grasp on a few basics to know which way I should go next. Thanks for any insight.