Added a option to vsync.