Jump to content
  • Advertisement
Sign in to follow this  
iYossi

DX11 [DX11] XNA math or D3D math?

This topic is 2618 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

Advertisement
I use D3D math but XNA math is just as good as long as you don't mix them. The important thing is to make a functional layer on top of it so that you can make good looking nested expressions and avoid dangerous pointers. Most C++ compilers are smart enough to let you use a high syntax without loosing performance.

Share this post


Link to post
Share on other sites
XNAMath (soon to be renamed D3DMath, so don't confuse it with the D3DX math library) is definitely the more modern of the two. It's not as easy to work with, but if you needed to do a lot of heavy SIMD math it would be the better choice.

Share this post


Link to post
Share on other sites

XNAMath (soon to be renamed D3DMath, so don't confuse it with the D3DX math library) is definitely the more modern of the two. It's not as easy to work with, but if you needed to do a lot of heavy SIMD math it would be the better choice.

Well if you aren't targeting anything below a core 2 CPU I would always use the SIMD enabled version as it will be quicker in most heavy lifting cases. If you are going to do a lot of vector.x or similar you will suffer though.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!