Partial redraw implemented in 2d?

I there!

I want to use JOGL for faster 2D/SWING apps, because I´m using Solaris and Linux which are both based on X my swing apps all where really slow :frowning:

As far as I know, that is possible, am I right?

Another question:
I played myself a little bit with opengl and glut when writing 2d apps (in C), and my problem was that I only got a readrad the whole screen event, which was very expensive and time consumpting :frowning:
If only a label needed a redraw, all widgets had to be painted again…

Is this problem solved with opengl?

Thanks a lot, lg Clemens

PS: When will Sun thro away the ugly AWT-Implementations?

Sure, you can use JOGL to do 2D rendering, but it can be a headache if you’re not familiar with OpenGL, and it doesn’t do anything to improve Swing performance.

You may be interested in the JDK 1.5 release (beta will be out in a few months) that has an optimized Java 2D implementation based on OpenGL. Your existing Java 2D/Swing apps should see improved performance on Solaris/Linux just by using 1.5 (assuming the appropriate OpenGL drivers are installed). Just how much improvement you see is dependent on what your app does, but if you do a lot of complex transforms, blending, AA text, complex clipping, translucent sprites, etc, you should definitely be happy.

Chris
(Java 2D Team)

Wow, thats great! You are in the Java2D-Team & Youre talking with me. Cool!

Sorry for the stupid question, I always thaought the new Java2d-api will be based on jogl…

I know Im nerving, but Im so interrested in the new implementation, so could you please be so kind to answer me the following questions:

Lets say Ive a Geforce-FX for the following questions:

  • Is font rendering also faster?
  • Will pbuffers be used for faster redraw?
  • Will the user have a choice to use X or OpenGL rendering?
    -How fast is it compared to X and Win32 (just average, not exactly…) now, not when its optimized?

Im so happy that I and my customers soon will have fast swing also on our Linux/Solaris boxes (JBuilder/Netbeans on Solaris and Linux are really painful!). Its not an “of course” topic, because there are not many java-Unix-desktop users out there.
However Im one of these guys and I want to thank you and your team, great done work till 1.2!

Happy

lg Clemens