John Carmack talks about performance tweaks, multiple platform issues, and caching that came up in the development of Rage. I found the part about static analysis at the end particularly enlightening.

Great news: the Doom 3 source code will be released this year!

Link: QuakeCon 2011 - John Carmack Keynote