30.04.2014 Views

Introduction to the DirectX 9 Shader Models - Nvidia

Introduction to the DirectX 9 Shader Models - Nvidia

Introduction to the DirectX 9 Shader Models - Nvidia

SHOW MORE
SHOW LESS

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+

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!