Wing Commander.

http://www.dodgycoder.net/2012/02/coding-tricks-of-game-developers.html       (Point 17 in the list)