Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Precision Summary<br />
• If high-precision is fast enough, great<br />
– But remember <strong>the</strong> low-end <strong>DirectX</strong>9 cards!<br />
• If you need more speed<br />
– Move constant things <strong>to</strong> <strong>the</strong> CPU<br />
• Except when that hurts batching <strong>to</strong>o much<br />
– Move linear things <strong>to</strong> <strong>the</strong> vertex shader<br />
– Use texture lookups <strong>to</strong> replace math<br />
– Use half instead of float<br />
– Reduce shader version<br />
• Some HW runs 1.x faster than 2.0+