added a vsync to main
Added vsync