mono/MonoGame — pull request #192 by bkane (2012-01-13 17:32:52+00:00)
Title: Add vsync functionality to MacOS

Adds vsync functionality to MacOS by toggling the SwapInterval in the OpenGLContext of the game window.

Note that the MonoMacGameView forces vsync to false just before the first update (but after Game.Initialize() is called and the graphics are set up), so I force an update to the graphics setting in MacGamePlatform.StartRunLoop.

This is my first contribution to MonoGame (and my first pull request on Github), so please let me know if anything is horribly amiss!