1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to count Draw Calls

Discussion in '3D Objects General' started by mendiola_loyola, 3/3/08.

  1. mendiola_loyola

    mendiola_loyola Resource contributor

    Joined:
    18/10/06
    Messages:
    268
    Country:
    peru
    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ú
  2. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,248
    Country:
    netherlands
    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.
  3. mendiola_loyola

    mendiola_loyola Resource contributor

    Joined:
    18/10/06
    Messages:
    268
    Country:
    peru
    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ú
    Last edited: 2/1/10
  4. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,248
    Country:
    netherlands
    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 :).
  5. n4gix

    n4gix Resource contributor

    Joined:
    26/9/06
    Messages:
    9,226
    Country:
    unitedstates
    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... ;)
  6. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,248
    Country:
    netherlands
    Hi guys,

    I have made a little tool now to show some statistics of your FSX MDL object. See this thread.
  7. mendiola_loyola

    mendiola_loyola Resource contributor

    Joined:
    18/10/06
    Messages:
    268
    Country:
    peru
    Dear Arno:

    Thank you for the tool.

    Alfredo Mendiola Loyola
    Lima, Perú

Share This Page