VolatileImages render incorrectly

Hendrik Schreiber hs at tagtraum.com
Wed Apr 2 07:54:39 UTC 2014


On Apr 2, 2014, at 9:20, Tobias Bley <tobi at ultramixer.com> wrote:

> we found this problem too and it’s very very disappointing. A real world desktop application on JDK 7 or 8 on a Mac doesn’t perform well - it’s tooo slow and we can’t ship our software with JDK 7 or 8 using BufferedImages. In our opinion JDK7/8 is not ready to release on Mac! But it is released! So why I can’t find thousand of bug reports concerning „BufferedImages on JDK7/8 on Mac are not hardware accelerated“????

<snarky>
That would imply thousands of Java desktop apps for OS X, that actually do "advanced" graphics (aka make the effort to look good)..
</snarky>

But seriously: I have also noticed the unacceptable Java2D performance and it is rather disappointing.

I have some animations in my application and they run smooth as butter on OS X in a Parallels VM with Windows 7. But when I run the same animations on OS X with Java 8, I'm lucky to get a couple of frames per second. It looks more like a picture slideshow without transitions than an animation.

Note that this is nothing exciting, just painting images.. moving them from glass pane to JLayeredPane has helped (http://mail.openjdk.java.net/pipermail/macosx-port-dev/2014-March/006527.html), but it's still far from acceptable.

Which begs the question: Are you guys aware of this and working on it?

I wasn't able to find a corresponding bug, probably the one that comes closest is https://bugs.openjdk.java.net/browse/JDK-8017247 . At least it describes abysmal Java2D performance.
And unfortunately, it's been pushed to Java 9. Really? :-(

Do you need another bug report that describes this behavior in clearer terms?

IMHO, this is not asking for an enhancement. The current behavior is buggy, making the JDK unusable for real-life applications with some UI sugar.

Cheers,

-hendrik

PS: I wish I was able to vote on bugs.


More information about the macosx-port-dev mailing list