2D Performance Issues...

My game runs well on my comp, which is very high end. However, on many computers it is VERY sluggish, almost to the point of making it unplayable. I’ve noticed that when it is run in the Applet Testbed, these issues are much less, but within the browser window, they become a serious problem.

The game can be found here…http://www.paraduck.net/misterbob/platformer/classes/

I’m wondering if there are any tools i can use for java to test what sections of my code are causing this major slowdown?

There are tons of Tools that do this. It’s called Profiling. I am using this : http://www.ej-technologies.com/products/jprofiler/overview.html
and love it :).

Download the evaluation Version and look for yourself

The cheapass way to do it is just to run with -Xprof on the commandline which outputs the time spent in each method.


java -Xprof -jar mygame.jar

Cas :slight_smile:

Thanks guys, this helps a lot. Should be able to find those problem spots now