Setting vsync in order to fix stutters. Should also use the delta.