High Preforming 2D Graphics

Hi, I’m new to this forum a friend told me about this place, dont know his nick here. I have many years experiance in general programming but not in Java. What I’m looking for is some tips in what way I should look, I dont need complete solutions, I dont mind them thou ;).

Any way I have seen Java demos with real high preformans and I would love to make a simple game but I cant get my FPS up. So where do I start? I know I need some kind of dubblebuffer strategy but what othertips do you have? Any good tutorials? Does It make any diffrent what kind of panel I work with?

Thanks in advance for any answers, tips or just anything :slight_smile:

/uncle

At the risk of self promoting, there are some very good tutorials at:

http://www.javagamesfactory.org/

Kev

Proper performance can be had from LWJGL.

You can also look at JOGL too for a slightly looser approach to writing games with Java.

Acceptable performance for 2D stuff can be had from VolatileImages in Java2D, but is generally unreliable and finicky and complex.

Cas :slight_smile:

Hmm, I dont think so - VolatileImages are by far the best approach to get hw accerlated rendering.

Just a few changes and extra checks in program code and thats it - no other drawing interfaces - nothing.
And everything runs faster and uses hw accerlation - fine!

lg Clemens

[quote]And everything runs faster and uses hw accerlation - fine!
[/quote]
If you are lucky.

Hardware acceleration is not implemented yet on Mac OS X Java 1.4.x.

But now JOGL and LWJGL are running fine on OS X. They are both reasonable options for 2D games, if the game requires smooth animation.

Especially when you are doing something other than just blitting rectangles too. Consider the bumpmapped background in Alien FLux, or the psychedelic strobes in Super Elvis. AWT? I don’t think so…

Cas :slight_smile: