Extending the ContentManager for Models

I don’t know about everyone else, but usually the first thing I do after loading models is loop over their effects and set up their lighting. (Check Shawn’s blog to read more about the standard lighting rig and per pixel lighting. ) The other day I thought of a neat way to tuck this code away…


SwampThingTom on Performance Analysis:

Interesting read on SwampThingTom’s blog today. I’d never heard of the NProf tool before, but the information it gives seems to be very similar to what you can get from much more expensive tools. Definitely worth reading.

Foreach and Garbage, Part 2

As promised, here’s a bit more about foreach and garbage. Last time I wrote about the Windows Desktop CLR. This time I want to find out if my results hold true on the Xbox 360 as well. What did I find out last time? “When doing a foreach over a Collection<T> an enumerator WILL be allocated.When…


Optimizing for Readability

About a week ago, Shawn wrote a post about different types of code, and how he designs them. In a few categories, he mentioned optimizing for readability. Today OldNewThing has a post about optimizing for readability. It’s an interesting read, and the bit about boolean function parameters definitely rings true with me. The other day…


Opaque Data From Max and Maya

This post is kind of a brain dump from notes I made to myself, so apologies in advance if it’s not very readable! In both Max and Maya you can set opaque data, which will be exported in fbx and then brought through the content pipeline. We do this in the NormalMappingEffectSample: the name of…


Foreach, Garbage, and the CLR Profiler

 I’ve been doing a lot of thinking lately about foreach, and in what situations it may or may not create garbage. There have been some posts on the forums asking about it, and I recently found out that for some types, the enumerator that is created is a value type, not a reference type. So,…


First Person Shooter Cameras

  So, it’s been a long time since my last post.  Sorry about that.  We’ve been busy lately, which should put smiles on all your faces.  I like my job, so I can’t give any specifics, but we’ve got some stuff coming up we think you’ll be excited about.  Anyway,I want to write a quick…