Skip to content

Instantly share code, notes, and snippets.

View squarel's full-sized avatar

squarel

  • San Francisco Bay Area
View GitHub Profile
#!/bin/bash
echo "hello world"
@squarel
squarel / Doom3 game loop
Created April 19, 2014 22:06
Doom3 game loop unrolled Mac OSX version
Doom3 Mac OSX execution unrolled by Xiaolu Li based on Fabien Sanglard http://fabiensanglard.net/doom3/doom3_unrolled.php
# SYNTAX
- a pair of + + after function/method call is unrolled part
- a pair of /* */ is a brief description of a blob
- // is the real comment mark
Unlike Windows version has a general entry point(WinMain), Mac OSX use NSApplicationMain(argc, argv) as delegation(of course)
- (void)applicationDidFinishLaunching:(NSNotification *)notification;