My applet:
http://www.otcsw.com/applet/DreadMaze/
Has some weird flickering issues (you need to play a couple minutes in to see them). I’m guessing it has to do with the fact that I originally made it an app then changed some things last minute to make it an applet, but I was wondering if anyone had any pointers as to why this might happen. I’m sort of double buffering. I’m drawing everything to a BufferedImage which is drawn into a JPanel that is within another JPanel within the Applet. I tried removing the BufferedImage part and just drawing everything right into the JPanel but then it got awful.
I am only creating the graphics for the BufferedImage once, then I’m drawing to that. I considered maybe recreating and disposing the graphics every draw call. Any idea if that would help?
Thoughts?
EDIT - I removed the super.paintComponent call and that seems to help, but it still flickers. Not sure what the deal is.