title: Java graphics performance
body: <p>I was programming a simple game and wanted to display it via the Java Graphics + Swing API. It felt a little slow, of course, so I measured how long it took to repaint, which was around 32ms. Then I read about accelerated Java graphics and used the method described here: <a href="http://www.cokeandcode.com/node/6" rel="noreferrer">Space Invaders</a></p>
  
  <p>However, somehow this is even slower. It now takes around 98ms to redraw. Why is that?</p>
  
  <p>Note that I am aware of libraries like LWGL and JOGL, but I don't want to use a full-blown OpenGL wrapper for such a graphically simple game.</p>