Archive 1997–2024

Behind the Mask with Optimization and Catalyst AI


Doom 3 Analysis

Here, we see a performance improvement when Catalyst AI is enabled and the shader replacement is made. The replacement that they make is in Id Software's specular highlights shader. The attenuation of the specular highlight was determined by a look-up table, but ATI discovered that replacing the look-up table with math runs faster on their hardware. The method by which ATI determined the proper mathematical function was simply to compare the final images rendered with both shaders and find the ones that were the closest. The mathematical result is definitely not exactly the same as the look-up table (becuase ATI is using 24bit precision math, which no one else uses).



D3D AF Tester with Catalyst AI set to High.
Click to enlarge.



D3D AF Tester with Catalyst AI disabled.
Click to enlarge.


We feel that this is a good optimization for ATI's hardware using application detection and shader replacement. Of course, rather than trial and error, it may be safer to go to the developer and ask them for the mathematical function that they used. We are still unclear on Id's take on this, and John Carmack has vocalized previously a distaste for shader replacement in certain situations.

Doom 3

Doom 3

Originally published at https://www.anandtech.com/show/1488 (Wayback Machine).