PDA

View Full Version : How to count Draw Calls


mendiola_loyola
03 Mar 2008, 14:31
Dear All:

Is there any way to count the number of Draw Calls for an object made with 3ds max?

Thanks.
Alfredo Mendiola Loyola
Lima Perú

arno
05 Mar 2008, 15:59
Hi,

Currently there is no easy way, as XtoMDL does some optimizations for you. So for the answer you would have to analyze the MDL file. I have plans to make a little tool to show you this kind of information though.

mendiola_loyola
06 Mar 2008, 12:08
Dear Arno:

What parts of the MDL file do I've got to analyze to get the number of Draw Calls?

Do i need an Hexadecimal Editor?

Alfredo Mendiola Loyola
Lima, Perú

arno
06 Mar 2008, 15:01
Hi Alfredo,

Yes, you would need a hex editor and you would need to look at all the vertex lists and the part sections. Not really trivial to do with a hex editor :).

n4gix
06 Mar 2008, 15:33
You could also use the Blender Import script that is being discussed in another thread.

One imported, all the mesh has been assembled per draw call, and given the name "DrawCallnn" It's rather easy to take note of the largest nn created... ;)

arno
07 Mar 2008, 06:08
Hi guys,

I have made a little tool now to show some statistics of your FSX MDL object. See this thread (http://www.fsdeveloper.com/forum/showthread.php?t=8967).

mendiola_loyola
07 Mar 2008, 10:33
Dear Arno:

Thank you for the tool.

Alfredo Mendiola Loyola
Lima, Perú