OpenGL pipeline double perfomance on Ati cards

Without opengl enabled pipeline - > With opengl pipeline.
2500fps -> 4300fps.

Ati have fixed their drivers. Nice. :slight_smile:

System.setProperty(“sun.java2d.opengl”, “true”);

Card: Ati Radeon 9700 Pro.

Cool! :smiley:

And what about NVidia if you have the info?

No nVidia info.

I should make the suggestion that you don’t use buffered images while using GL, use volatile otherwise you will end up reverting to software rendering which will downgrade performance considerably.

Hmm… on my linux setup (nvidia glx drivers installed, jogl and applications using other ogl bindings work normally) setting sun.java2d.opengl to true creates a 100x performance hit… from 100 to 0-1 fps :’(. Ofcourse, I have been playing around with java for only a few days… so I might be doing something wrong. I have set up a JComponent and a volitale image using GraphicsEnvironment . getLocalGraphicsEnvironment() . getDefaultScreenDevice() . getDefaultConfiguration() . createCompatibleVolatileImage(…). Then I draw to that VolatileImage after which I use imageDraw to show the results in the JComponent. I have a separate thread set up that refreshes the component by calling repaint at intervals I specify. Any suggestions ?

Okay, I figured out where I was going wrong. When I render directly to the JComponent, not to the volitale image, I get a 10x boost… from 100 to 1000 fps (hey, I have a lowly Geforce4 MX).