Is there a way to fully ignoreRepaint in Swing?

54 views Asked by At

I'm using setIgnoreRepaint(true) on my JFrame with Active Rendering and a BufferStrategy. When I disable the portion of code that is calling contentPane.repaintAll() from the EDT withing my game loop, nothing get's drawn anymore which is expected, except a JPanel that I animate through setLocation that still receives paint calls and flickers with the BufferStrategy, that's what I don't understand, how can it still be drawn on the screen if the JFrame itself ignores repaint? Should I write a custom RepaintManager ?

0

There are 0 answers