BufferStrategy vs. BufferedImage

Hello,

It is my first message in this forum :o

The fastest way to render properly an image is to:

  • use a Panel (AWT)
  • use a BufferStrategy (Page Flipping)
  • use compatible images

Other things to take care? ???

Toine

Use Canvas instead of Panel, other than that you’re good :slight_smile:

Hey :slight_smile:

Could you just tell me why canvas is better than panel?

Cheers,
Toine

Because Canvas has access to BufferStrategy and, as the name suggests, it was made for drawing.
Panel is only used as a container.