Added ability to disable VSync