I have a system for updated my graphics and wondered if theres a smarter way to do it.
Right now I have a custom thread which calls -
SwingUtilities.invokeLater(myGraphicsThing);
myGraphicsThing has a run method which simply calls paintComponent.
The objects I have are sprites and such. So I pass in a list of things to update to my custom thread and it handles things being animated.
I started thinking that instead of implementing Runnable on all these graphic objects, I could simply call the repaint() method on each one. Then if my graphic thread is running faster than the painting, I would get the benefit of multiple calls being collapsed into one by the paintManager.
Is this on track thinking?