Sign in to follow this  
dxdotnet1

DX Optimized

Recommended Posts

dxdotnet1    106
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
S1CA    1418
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this