vSync on opengl

'2' should be '1' else you're effectively requesting half the display's refresh rate when doing this. So if display rate is 60 Hz then the game will achieve maximum 30 FPS. Generally when requesting Vertical Synchronization (with raster retrace) you want the game to achieve at maximum the display's refresh rate to avoid display tearing.