I have a Ball object which has a swing timer which invokes a checkNewPosition() method, the JPanel that creates the Balls also has a timer to invoke render calls to draw the balls. The problem is the more 'Balls' I create the slower the timers fire. The timer is set to every 10 millis (which is the lowest value) 1 timer is fine, 4 or 5 are way off point. The timer used to draw the balls in the JPanel class fires fine, just the timer in the balls, perhaps I need a single timer for all the balls. Weird thing is CPU usage is <1%. Are they conflicting with eacth other?
Any solution?
Thabks
Any solution?
Thabks