Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

johnnyBravo

With D3DXMATRIX does it need to be NULLed or cleared after use for reuse?

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

With D3DXMATRIX does it need to be NULLed or cleared after being used for reuse? by used i mean transformed. also whats difference between D3DXMATRIX and D3DXMATRIX16, like which one should i use generally? thanks,

Share this post


Link to post
Share on other sites
Advertisement
I''m not sure what you mean, but in general, no you don''t have to zero the matrix out to ''reuse'' it.

D3DXMATRIXA16 is a 16-byte aligned matrix, which is faster for a lot of math operations. That''s in the doc, by the way.

I like pie.

Share this post


Link to post
Share on other sites
No, you don''t have to NULL it to re-use it again. Just pass it to the function that will fill it again, for example D3DXMatrixRotationX().

As for D3DXMATRIXA16, it is 16-byte aligned. This means, when it''s used by D3DX functions, it has improved performance, especially on Pentium 4''s.

Share this post


Link to post
Share on other sites

  • 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!