Skip to main content

switching graphics pipeline on the fly?

3 replies [Last post]
kapta
Offline
Joined: 2005-05-08

i remember reading somewhere that the new java plugin will allow the java gfx pipeline to be switchable on the fly, from d3d, opengl and software mode, was this implemented?

if so how would you do it?

thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kbr
Offline
Joined: 2003-06-16

Yes, this support is present. To try it, add the following to your applet tag (for example):

<PARAM NAME="java_arguments" VALUE="-Dsun.java2d.noddraw=true"></PARAM>

The new plug-in will detect this and launch a new JVM instance as appropriate which satisfies the specification of these command line arguments.

More documentation on this new feature is coming.

kapta
Offline
Joined: 2005-05-08

thanks for your reply, would just like to clarify that in almost all the documentation examples the follwing is used

I was under the impression that direct draw was removed from the Java N, does it still need to be disabled?

I would like to use just software mode, how would i achieve this?

Would I have to disable Direct3D/OpenGL etc individually with their parameters, or is there a single parameter I can specify that will allow software mode on all platforms?

trembovetski
Offline
Joined: 2003-12-31

> I was under the impression that direct draw was removed from the Java N, does it still need to be disabled?

The noddraw=true option was a defacto "disable all default hw acceleration" option on
Windows. It remains in this role in 6uN - even though the current pipeline is
d3d-based.

So, if you want a "backwards compatible" way to disable any default hw
acceleration on windows, noddraw=true would do the trick.
This flag doesn't have any effect on other platforms.

On unix there isn't really a default hw-accelerated pipeline - unless you count
the support for caching managed images and residing VolatileImages
in X server Pixmaps. If you want to disable that, you'll need to use -Dsun.java2d.pmoffscreen=false .
This flag doesn't have any effect on Windows.

Thanks,
Dmitri
Java2D Team