set doubleBuffering