Vsync now works correctly