Java: Sprite Performance

Post: #1
I've finished the first level of my UDevGame entry, and it's a little choppy on my G4 500 SP. Is this just to be expected, working in Java? I fear what levels with more moving sprites will look like. Perhaps things will significantly improve when I start compiling with optimizations after I finish the game? (AKA I'm done debugging.)

Also how can I pinpoint what is causing the most performance problems? I'm currently working at 20 FPS.
Quote this message in a reply
Posts: 156
Joined: 2002.10
Post: #2
Unfortunately, yes you can expect this kind of performance in Java. Also, due to most of the slowness being in the Swing graphics library (I assume this is what you used for your GUI) there's not that much you can do about it. Adding optimizations to the code will help a bit though.

If you want to see where it is that your program is using most time, use the Sampler tool which is in your Developer>Applications folder (where PB is). You can tell which functions are being called most often, so you know where to optimise your code.

- Iain
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Java 2D Sprite based game unknown 9 9,142 Nov 1, 2006 09:41 PM
Last Post: StealthyCoin