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ú
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ú
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 :).
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... ;)
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ú
vBulletin® v3.8.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.