added setIgnoreRepaint(true) to canvas.