Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 mrheisenberg   Members   -  Reputation: 356

Like
0Likes
Like

Posted 12 January 2013 - 09:31 PM

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?



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS