Is it possible to perform active rendering with double buffering using only Swing components (no Canvas or any other AWT components)? This means there should be no reliance on the EDT to handle any aspect of rendering.
EDIT: The program that I am writing that prompted this question is not fullscreen.
Java supports active rendering in the Full-Screen Exclusive Mode API:
Passive vs. Active Rendering
But also on AWT there are ways to take explicit control over the rendering (without having to go full screen):
java.awt.CanvassetIgnoreRepaint(true);strategy.show()Toolkit.getDefaultToolkit().sync();Here's a good article on that topic, including an example:
Java Game (Actually the most efficient way to repaint)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With