motion and graphics
Hi, I am new to Java Game programming and have so far accomplished to set up a simple jump n run type of game enviroment. A playerobject is able to move and jump and there are a few obstacles with collision detection only when the player object is falling (as during a jump)..
You can try the applet and see the sourcecode at http://powered.at/supeross
I noticed, that the game is lagging, so I think I may have to optimize the way graphics are displayed.
Any Idea is whery much appreciated. Also, please tell me wether the game is slow on your machine, too.
[583 byte] By [
hgwossa] at [2007-10-2 0:29:15]

Hi, look at this post.
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=594166
You should try painting to a VolatileImage buffer and then paint that to the screen. If you use a BufferStrategy this will be done automatically when you allow it 2 or more buffers, but I have had problems with this class (the 3 buffer option causes no painting to occur at all on my machine).
Also, use the -Xprof option to see where your code is taking all of the time and also try running the game without certain parts of the graphics operations to see what is making things so slow. In my game the painting to the buffer took 80% of the time but buffer to screen and other operations were quick with VolatileImage.