[Mono-osx] [MonoMac] GameLoopTest example code

kjpou kjpou at pt.lu
Wed Mar 9 01:51:33 EST 2011


Miguel

After our discussion about the locking I threw some code together.  Here 
is a quick and dirty test code base I wrote for a simple game loop that 
uses CVDisplayLink or NSTimer.

It is switchable by setting the flag displayLinkSupported at the top of 
the MyOpenGLView.cs module.

What I did notice is that the NSTimer does slow down and probably skips 
frames when doing resizing where as the CVDisplayLink does not skip a beat.

Use Alt-Cmd-F for toggling fullscreen and window mode.

Kenneth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GameLoopTest.zip
Type: application/zip
Size: 27092 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20110309/207a92d5/attachment-0001.zip 


More information about the Mono-osx mailing list