how do you set up a double buffer?