Batching D3DX meshes
In my d3d engine i am using serveal hundred meshes for grass rendering. I dynamically reposition the meshes based on distance to camera. This way i can have apparently continuous fields of grass without using millions of models.
But I am wondering if there is a way to optimize this further by batching all these meshes together and draw them all with one draw call.
Is there an efficient way to batch D3DX Meshes? It seem I could use D3DXConcatenateMesh, but this seems like it is slow, plus i dont get the expected results. Is the best method? or is there a better way? Or is it just too much of a pain to batch meshes that are going to be moved around dynamically?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement