Relative Content

Tag Archive for javaperformanceprocessinggame-physicsdraw

How do I increase the speed of an object inside my java processing app without sacrificing the frames

Okay so I am learning how to make games and stuff in java and I am using processing in that i am trying to generate a ellipse that will move constantly when fired, how I am animating is in draw() function I check for the condition when it should be fired and when the condition is true I draw the ellipse and change it new coordinates constantly. Currently my game is running at 30 fps and when I change the ellipse coordinates by small margin it moves slow but since the subsequent coordinates where ball will generate is so close it will generate close giving this slow but smooth animation, contrary to make it faster I have to increase the coordinates which give the fast but choppy animation. I am so lost as to how we actually make it faster without compromising the animation quality.