Skip to main content

[JAVA2D] bug-id 5008045 (OpenGL for Win ?)

7 replies [Last post]
Anonymous

OGL: add OpenGL-based pipeline for Windows
http://developer.java.sun.com/developer/bugParade/bugs/5008045.html

Looks like we'll get "preliminar" opengl acceleration on win in jdk1.5.0b2.
Chet, please tell me that's true!

Mik of ClassX
============================================================================
> ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli (PI) <
> Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB: http://www.classx.it <
============================================================================

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris Campbell

Hi Mik,

We were thinking about sending out this piece of news on April 1 [April
Fool's Day in the US], but we figured no one would believe us. Anyway,
yes, the OGL-based pipeline will be available on Windows in 1.5-beta2.
Keep in mind that it should be considered a "technology preview" for
developers interested in trying their applications on the new pipeline.
There are still quite a few driver issues out there (and a few issues
that need to be fixed in our code) before it can be considered stable
enough as a deployment option for developers. The release notes will
have more information.

Chris

On Apr 5, 2004, at 8:45 AM, Michele Puccini wrote:
> OGL: add OpenGL-based pipeline for Windows
> http://developer.java.sun.com/developer/bugParade/bugs/5008045.html
>
> Looks like we'll get "preliminar" opengl acceleration on win in
> jdk1.5.0b2.
> Chet, please tell me that's true!
>
> Mik of ClassX
> =======================================================================
> =====
>> ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli
>> (PI) <
>> Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB:
>> http://www.classx.it <
> =======================================================================
> =====
>
> =======================================================================
> ====
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff JAVA2D-INTEREST". For general help, send
> email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Michele Puccini

You make my day, Chris! (I'm using this "you make my day" idiomatic phrase
because I'm quite sure it means something like "you make my day happier with
this positive news". English is not my primary language so correct me, just
in case..).

Can you anticipate if will we have:

- hw accelerated transforms (bitmap, vectors, with translucence support)
- hw accelerated transforms (bitmap, vectors, with translucence support)
with bilinear, bicubic filtering.
- hw accelerated stroke/fill/paint
- hw accelerated clipping
- hw accelerated shapes, glyphs, text
- hw accelerated antialiased shapes, glyphs, text

The question is how current applications can take advantage from the new
pipeline ? Should we take a particular coding approach for pushing apps
performace to the top ?

Don't tell me you didn't expect my "simple" questions....

Cheers,

Mik

p.s. [1 April is the Fool's Day even in Italy..]
============================================================================
> ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli (PI) <
> Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB: http://www.classx.it <
============================================================================

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris Campbell

Hi Mik,

Michele Puccini wrote:
> You make my day, Chris! (I'm using this "you make my day" idiomatic phrase
> because I'm quite sure it means something like "you make my day happier with
> this positive news". English is not my primary language so correct me, just
> in case..).
>

Yes, you got it right... Unless you were going for the Clint Eastwood
approach, in which case "go ahead, make my day" means something like "if
you even think about trying to hurt me, I'll hurt you first" :)

> Can you anticipate if will we have:
>

(The following notes are pretty general and apply to the OGL pipeline on
all platforms. Some drivers may be less optimized than others, so your
mileage may vary.)

> - hw accelerated transforms (bitmap, vectors, with translucence support)

images: yes
shapes: yes/no (some simple primitives can be accelerated)
translucency: yes

> - hw accelerated transforms (bitmap, vectors, with translucence support)
> with bilinear, bicubic filtering.

bilinear: yes
bicubic: no

> - hw accelerated stroke/fill/paint

strokes: not yet (more work will be done in this area)
solid fills: yes
texture/gradient paints: yes

> - hw accelerated clipping

rectangular clips: yes
shape clips: yes

> - hw accelerated shapes, glyphs, text

shapes: yes
text: yes

> - hw accelerated antialiased shapes, glyphs, text
>

aa shapes: sort of (at least they're faster than the existing pipelines)
aa text: yes

> The question is how current applications can take advantage from the new
> pipeline ? Should we take a particular coding approach for pushing apps
> performace to the top ?
>

You shouldn't have to change your app to benefit from the OGL pipeline.
There are some things (not OGL-specific) that you can do to help speed
up your app that are documented in our "2D Performance White Paper":
http://java.sun.com/products/java-media/2D/perf_graphics.html

If there are any tweaks that would help your code perform better on the
OGL pipeline, we'll include them in an updated version of that white paper.

Chris

> Don't tell me you didn't expect my "simple" questions....
>
> Cheers,
>
> Mik
>
> p.s. [1 April is the Fool's Day even in Italy..]
> ============================================================================
>
>>ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli (PI) <
>>Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB: http://www.classx.it <
>
> ============================================================================
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Michele Puccini

----- Original Message -----
From: "Chris Campbell"
To:
Sent: Thursday, April 08, 2004 1:17 AM
Subject: Re: [JAVA2D] bug-id 5008045 (OpenGL for Win ?)

Well, I would like to say "you [RE]make my day" but I feel this should not
be too correct and at least it's going to be a "looping {while(true)}
concept" of my last emails. I cannot hide my excitement anyway. I'm sure you
understand..

Looks like the OGL pipeline almost accelerates every aspect of Java2D.

.Is there any "suggested" board or config in order to use OGL acceleration ?
.Which OpenGL version is required ?
.Can you tell me which Java2D features are not accelerated, apart from
bicubic interpolation ?
.Ah, yes, the last "very original" question: when ?

Cheers,

Mik
============================================================================
> ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli (PI) <
> Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB: http://www.classx.it <
============================================================================

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chris Campbell

Hi Mik,

> .Is there any "suggested" board or config in order to use OGL
> acceleration ?

So far, we've only found that the latest Nvidia and ATI drivers meet
the minimum requirements (OpenGL 1.2, ARB_pbuffer, ARB_render_texture)
for running the OpenGL-based pipeline on Windows. Of those two, the
Nvidia drivers seem a bit more robust at this point, but as I've
mentioned, we're submitting driver issues to these companies when we
run across them. So hopefully by the time Tiger ships, many of those
driver issues will be resolved.

> .Which OpenGL version is required ?

As stated above.

> .Can you tell me which Java2D features are not accelerated, apart from
> bicubic interpolation ?

Just to keep things simple, I'll say that if it wasn't on my earlier
list, then it's safe to say that the operation is going through
software loops. So it shouldn't be any slower than the existing
pipelines, but it probably won't be any faster with OGL pipeline
either.

We're continuing to look at more ways to take advantage of hardware
acceleration. For example, we can use pixel shaders to implement
things like ConvolveOp and RescaleOp at hardware speeds. (And on a
side note, we're always increasing the performance of our software
loops, by advanced tuning, using MMX/SSE, etc...)

> .Ah, yes, the last "very original" question: when ?
>

In 1.5-beta2, which will be out Real Soon Now.

Chris

> Cheers,
>
> Mik
> =======================================================================
> =====
>> ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli
>> (PI) <
>> Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB:
>> http://www.classx.it <
> =======================================================================
> =====
>
> =======================================================================
> ====
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff JAVA2D-INTEREST". For general help, send
> email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Michele Puccini

----- Original Message -----
From: "Chris Campbell"
To:
Sent: Wednesday, April 14, 2004 2:27 AM
Subject: Re: [JAVA2D] bug-id 5008045 (OpenGL for Win ?)

> In 1.5-beta2, which will be out Real Soon Now.

Thanks for your reply. Software loops optimizations sound really
interesting.

Last question: Are you (SUN) going to make an official announcement of the
upcoming new hardware accelerated Java2D technology in close time ?

Cheers,

Mik
============================================================================
> ClassX Development Italy Via Francesca, 463 I-56030 Montecalvoli (PI) <
> Tel.(+39)-0587-749206 Fax.(+39)-0587-749206 WEB: http://www.classx.it <
============================================================================

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Chet Haase

Mik,

> Last question: Are you (SUN) going to make an official announcement of the
> upcoming new hardware accelerated Java2D technology in close time ?

Answering these questions on the interest list and posting whitepapers
on performance and features is about as "official" as we get.
I doubt there's going to be a speech by Scott McNealy on Java2D
acceleration anytime soon, if that's what you were interested in...

We're not making a huge deal out of the OpenGL support currently
because it is disabled by default due to the driver and hardware
issues that have already been mentioned. With flag-enabled
acceleration, it's more important to get the message out to the
right community; developers who would like to experiment and
see how well it works for them in their situations.

Chet.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".