added vsync and MSAA