Jump to content
  • Advertisement
Sign in to follow this  
dxdotnet1

DX Optimized

This topic is 4827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ive checked on some free 3d engines on the net and wonder if directX is optimized since most of these engine builds there own 3D vector class and their own matrix class? is D3DXVECTOR3 class optimized? how bout D3DXMATRIX. Some ppl create their own 3d vector class and use SSE for some vector operations thanks

Share this post


Link to post
Share on other sites
Advertisement
Yes, most D3DX maths functions are optimised and will make full use of SSE, SSE2 and 3DNow! instructions where present.


Common reasons why people create their own vector/matrix classes:

1) cross platform code; there's no D3DX on Linux or Mac for example, so you need to use something else on those platforms.

2) education; even if you use D3DX, it's still good to understand how its maths functions are implemented; it's good experience to write your own matrix and vector classes at least once just to understand - then after that you can use D3DX or similar.

3) personal taste; for example some C++ zealots have an irrational dislike of using a C style API.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!