added toggling vsync