Performance boost at least some frames. Disabled VSync for testing and refactored some code