engine: enable vsync to fix screen tearing