Original Post
Compare the following two methods:
for(DWORD i = 0; i < NumMaterials; i++)
{
device->SetMaterial(&Materials[i]);
device->SetTexture(0, Textures[i]);
device->DrawIndexedPrimitive( D3DPT_TRIANGLELIST,
0,
pAttribTable[i].VertexStart,
pAttribTable[i].VertexCount,
pAttribTable[i].FaceStart*3,
pAttribTable[i].FaceCount );
}
and
for(DWORD i = 0; i < NumMaterials; i++)
{
device->SetMaterial(&Materials[i]);
device->SetTexture(0, Textures[i]);
mesh->DrawSubset(i);
}
OK, since they are called the same number of times per frame, in this case, what is the difference between them? I rendered my scene using these two methods and I didn''t notice any difference of performance.
Thanks for the help.