private void drawOnOffScreenBuffer() {
Graphics2D graphics = buffer.createGraphics();
// graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
ViewportGraphics vg = new AWTGraphics(graphics);
do {
int minWidth = Math.min(buffer.getWidth(), getWidth());
int minHeight = Math.min(buffer.getHeight(), getHeight());
validateVolitileImage();
painter.paint(vg, vImage, minWidth, minHeight);