Hello!
I have been writing my first large scale game from scratch in Java/JSwing. The game I am making is a 2d overhead tile based game. Each land tile is a uniform size of 20x20 pixels and is redrawn every update as of now. Everything works fine except on a rare occasion where several blocks (always touching each other) seem to fail to draw for one draw cycle. The grey outline of the part-row/column appears and then quickly disappears as it is redrawn on the next draw call.
I cannot easily reproduce this however I notice that it only appears when I spam keyboard and mouse input. Usually once per 10/20 seconds of hammering my left/right click and keyboard will seemingly cause it to come up but really I cannot be sure if this is the cause or just something that exadurates an underling problem. I am using a class which extends keyAdapter and my main class implements ActionListener/MouseListener.
Has anyone heard of something causing this or have any ideas at all? I can post whatever code may be helpful if requested, please just specify which parts you wish to see. Thanks for your time!