• Advertisement
Sign in to follow this  

"Caching" Images/Mesh's?

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

Common sense says to me that to figure out all of the matrix calculation to rotate a Mesh, it takes alot of CPU time. Is there any way to perhaps "Cache" the Mesh? As in, rotate the Mesh/Image .01, save what it looks like to an array, and later instead of doing "D3DXRotation" instead just have an array of rotated images?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Each vertex in the mesh has to be multiplied by a 4x4 matrix in the GPU anyway in order to transform it into screen space. This means that rotating it every frame doesn't incur any extra penalty.

Once you have calculated the rotation you need, there is no further related CPU time incurred.

Share this post


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

  • Advertisement