Sign in to follow this  

How do you store your matrix and vector data(DirectXMath related)?

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

Ok this is probably a bit of a matter of personal preference,but how do you find it better to work with when storing matrix and vector data,by using the container structs(XMFLOAT#) or by just storing an align-allocated XMMATRIX or XMVECTOR.I mean for speed obviously it's better to for instance store a XMMATRIX in the Camera class instead of a XMFLOAT4X4 and to always use XMMATRIX as an argument and return types in it's methods,and the same in all other classes who use matrices,so you would minimize loading/storing,but on the other hand sometimes it's very inconvenient to do it this way.Also,I'm not sure if using this way of storage works on x64 xD What are your thoughts?

Share this post


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