Java2D Rendering Classes

Hello,

I want to write a small program to test how fast Java2D runs on an old computer with no real GPU installed. I think a good benchmark would be to render a certain number of sprites and see what the frame rate is. But herefor, I would need an efficient rendering pipeline which calls the repaint as much as possible.

I can of coarse write my own little program with an infinitive while loop in a Thread, but I presume that there might be a better way, or some sort of framework already available for this. Something like a GLDrawable which I need to implement in JOGL/LWJGL. I am completely new to Java2D, so any help is more than welcome. Tips, anyone?

I am also wondering what the best/most optimal way is to render sprites. I can export them as PNG with alpha later, but this might slow down a lot. Perhaps by defining a color which should be transparant might be faster … does anyone has some experience with this? Again, any help welcome …

hope someone can give me some good info so I can start on programming Java2D :slight_smile:

Links to sites with interesting information is also more than welcome.

Thanx in advance,
Kenzo

[quote]hope someone can give me some good info so I can start on programming Java2D

Links to sites with interesting information is also more than welcome.
[/quote]
Have you looked at the Sun’s Java2D tutorial?

http://java.sun.com/docs/books/tutorial/2d/

Kevin’s Space Invaders 101 tutorial should get you started with accelerated 2d graphics on windows:

http://www.cokeandcode.com/info/tut2d.html

And then there’s a preview of the book that Andrew Davison is writing that has a section on 2d rendering:

http://fivedots.coe.psu.ac.th/~ad/jg/

And finally if all else fails, you can always come back to this forum and count on someone to give you the answers… works most of the time :slight_smile:

thanx for the great reply !
I am already reading all this stuff …