added vsync for animation sync