AffineTransform bug id 4916948 has been fixed !

Yes, that’s true, the bug has been fixed and there’s some OpenGL talking…

"There were quite a few changes, but in making them we also took
the time to simplify a lot of the logic in the image pipeline so
that the existing logic was easier to debug and change to be
compliant with the new decisions. A side benefit is faster
sub-image scaling in the OpenGL pipelines for the dxy12,sxy12
variant of the drawImage call.

The change will not appear in beta1, but is now in the beta2
workspace and will receive extensive testing there for release
in the beta2 time frame."

But … someone told me that OpenGL will be used only in the Linux version of Java2D. Am I wrong ?

It was reported in other threads that the OpenGL pipeline definitely won’t be the default on windows.
Mostly because on average DirectDraw is more likely to give better performance (based on lots of crap graphics cards in existence on which DirectDraw is accelerated and OpenGL is software mode only). So, you are correct.

However, there was at least one post from the Sun chaps saying that the OpenGL pipeline might be available as a configuration option on windows.

Kev

I think that SUN is on the right path. Using DDraw/DirectX is definitely a good choice, at least for the Windows JVM.

If they also give us the option to use OpenGL… well, it’s simply perfect!

The fix was in the shared code, so all platforms benefited, some more than others.

Did you test it ?

If you’re not under NDA, can you tell us something about the performance of the forthcoming (?) implementation of java2D ?

Cheers!

according to that page:
http://java.sun.com/developer/technicalArticles/releases/j2se15/#dc
the opengl pipeline is in beta1 and not beta2, as quoted.
I tried the opengl flag under XP to see if trembovetski’s post was right.
I saw no change in perfs or rendering quality.
the question is now:

  • is the opengl rendering in the shared code, thus on windows also
  • is the opengl pipeline wrongly advertised for beta1 ?

Thanks for any information.

The quote from the bugreport meant that the changes related to that particular bug are in beta2.

OpenGL pipeline is indeed in beta1 (on solaris/linux), and it’s turned off by default. Check out the ‘new features in java2D’ page for requirements.

thx for the quick reply…
so, if i read correctly what you just wrote, the openGL pipeline is not included in windows version, contrarly t o what was said in ‘an other thread’
Any hint on its inclusion, if ever it becomes reality?

Right question, Pepe.

I did some raw tests on jdk1.5 overall desktop and java2d performace an it seems that something changed. Looks like the auto-VRAMMING of some images is finally here (at least I suspect…).

The server jvm gives a nice performance boost to my computational intensive code and that’s really positive. Sadly the server JVM is not in the JRE distribution…

Well, to be sincere I expected improvements in alpha blending both for speed (drawImage still use software loops) and quality (see the bug at http://developer.java.sun.com/developer/bugParade/bugs/4950176.html)

I expected better shapes stroking quality (antialiased outline text looks ugly on win32 (and not on MacOSX)).

I also expected hardware accelerated AffineTransforms.

I keep dreamin’…

Mik