Quick PIX trick
Let’s say you’ve got a render state problem. If object A is on the screen at the same time object B is on the screen, object A gets screwed up. Here’s a quick way of using PIX to track it down:
- Take a snapshot of the frame that works and a snapshot of the frame that fails.
- In PIX, find the draw call that draws object A in the frame that works
- Go to the device state tab
- Copy and paste each page of state into a text file
- Repeat for the frame that fails, save this to a separate text file.
- Diff the text files with your favorite diff tool!
This is much easier than trying to diff the states manually within PIX itself. PIX should have a draw call diff as part of its standard functionalty!