2009-02-06, 08:31 PM
I don't really know anything about the physics you need help with, or graphics in Java, but is what you're using for graphics intended to be used for animation? I'm pretty sure clearing the screen to a background color and drawing your stuff on every frame is the normal way of doing things, so I don't think that's the cause of the slowness. I wrote a Winforms app for designing particle emitter effects for the game that is my senior project, and that's how the effect preview gets drawn (using a form control for displaying XNA graphics).
Another possible cause of speed loss is the physics calculations, but you don't seem to be doing anything computation-intensive.
Finally, how is your drawing code getting called? Are you just in a loop doing it over and over, or is it controlled somehow?
Another possible cause of speed loss is the physics calculations, but you don't seem to be doing anything computation-intensive.
Finally, how is your drawing code getting called? Are you just in a loop doing it over and over, or is it controlled somehow?

