title: Faster 2d-Rendering in java
body: <p>What is the faster way to render 2d graphics in java. The 2 good way I've seen is Double-Buffering where you create the BufferStrategy like:</p>
  
  <pre><code>JFrame f = new JFrame();
  f.setSize()
  .....
  createBufferStrategy(2);
  </code></pre>
  
  <p>The other method I've seen is with the createImage method. </p>
  
  <pre><code>Image dbimage = createImage(....);
  Graphics g = dbimage.getGraphics();
  ....
  </code></pre>
  
  <p>Those are the two I've seen. Which is the fastest? Are there better ways? Please don't tell me to get add-on libraries because I'm aware those exist. Thank you in advance...</p>