I\'m in the process of writing a Java 2D game. I\'m using the built-in Java 2D drawing libraries, drawing on a Graphics2D I acquire from a BufferStrategy from a Canvas in a
A synthesis of the answers to this post, the answers to Consty's, and my own research:
What works:
GraphicsConfiguration.createCompatibleImage to create images compatible with what you're drawing on. This is absolutely essential!Canvas.createBufferStrategy.-Dsun.java2d.opengl=True where available to speed up drawing.In my tests, using these methods, I got a speed increase of 10x - 15x, making proper Java 2D graphics a possibility.