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

DrawCallMonitor

Discussion in 'ModelConverterX' started by arno, 7/3/08.

Thread Status:
Not open for further replies.
  1. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    As a side product of the logic I made for ModelConverterX, I have now made a little tool that will display some statistics about a FSX MDL object. This help you to get an idea of how optimized your object is for performance.

    The tool will show the amount of triangles, drawcalls and texture vertices for each LOD in your object. And if you show all details, then it can also show the amount of texture vertices and triangles per drawcall (and it shows the texture used if any, so that you get an idea which part of your object this is).

    You can drag and drop your files on the tool to show their statistics or just use the open button. If there are any more suggestions (or bugs), please let me know.
    Last edited: 28/7/08
  2. Gerard

    Gerard

    Joined:
    3/10/06
    Messages:
    19
    Thanks a lot Arno, this will be a great help.

    gh
  3. n4gix

    n4gix Resource contributor

    Joined:
    26/9/06
    Messages:
    9,343
    Country:
    unitedstates
    Rats. I get an error when trying to load an FSX .mdl file:

    System.IO.FileNotFoundException: Could not load file or assembly 'ObjectModel3D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    EDIT: Never mind... Fr. Stupid forgot that he needed to install/register the parent program first... :tapedshut
    Last edited: 7/3/08
  4. mendiola_loyola

    mendiola_loyola Resource contributor

    Joined:
    18/10/06
    Messages:
    270
    Country:
    peru
    Dear n4gix:

    Download the program ModelConverterX and copy the file ObjectModel3D.dll to the folder where is the program DrawCallMonitor.exe

    Thanks.
    Alfredo Mendiola Loyola
    Lima, PerĂº
  5. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi Bill,

    This is not your fault :), it was supposed to work without ModelConverterX. I will update the ZIP file to include the other DLL file as well.
  6. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    New ZIP file uploaded now that contains all the needed files.

    That is what I get from testing on my development PC that has more installed than the end user has :D.
  7. owenhewitt

    owenhewitt

    Joined:
    25/9/06
    Messages:
    70
    Country:
    us-southcarolina
    Fantastic news, Arno!! This will be an essential tool for future developments!

    Regards,

    Owen
  8. FelixFFDS

    FelixFFDS

    Joined:
    30/9/06
    Messages:
    1,614
    Country:
    puertorico
    Thanks, Arno,

    Information reposted at FFDS with link to come to this thread.
  9. lionheart

    lionheart

    Joined:
    24/10/05
    Messages:
    6,452
    Country:
    us-arizona
    Many thanks Arno!

    You are quite amazing, all the work and pioneering you have done in the FS world.

    Bill
    LHC
  10. spotlope

    spotlope FSDevConf team

    Joined:
    10/6/04
    Messages:
    171
    Country:
    unitedstates
    Ah, now THAT is a useful tool! Arno, what would the FS dev world do without you? Thanks, mate. I'm off to measure my MDLs and weep now. ;-)
  11. robby88

    robby88

    Joined:
    25/9/06
    Messages:
    58
    Country:
    australia
    Thanks Arno :) Just what the doctor ordered.
  12. Touradg

    Touradg

    Joined:
    1/3/05
    Messages:
    21
    Country:
    iran
    Thanks

    Very nice and usefull tool.i was looking for such tool for a long time.thanks
  13. Burkhard

    Burkhard

    Joined:
    8/6/06
    Messages:
    114
    A nice tool, thanks for it.

    I doubt what it calls drawcall is what MS calls a draw call. On an aircraft with 10 tires, each tire using the same material, it counts them as 10 drawcalls, while my understanding is that this is one only ( and the frames go down a far way when I used ten different textures for it ).

    Best Burkhard
  14. n4gix

    n4gix Resource contributor

    Joined:
    26/9/06
    Messages:
    9,343
    Country:
    unitedstates
    Indeed, Burkhard. Objects that use the exact same FSX Material & Material Properties are "batched together" into a single draw call.

    However, it is still a very valuable tool as long as one compares one's own model against a similar default model.
  15. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi Burkhard,

    Objects using one material don't have to be one drawcall. If they are animated for example, then they will probably be multiple drawcalls. And also the material is not only specified by the texture, but by all settings of your FSX material.

    If there are some default files that have this same possible problem or if somebody has a testfile, let me know, then I can see if it is a bug in the tool.
  16. BASys

    BASys

    Joined:
    25/5/06
    Messages:
    1,247
    Country:
    scotland
    Hi Folks

    Arno -
    Nice tool.

    Please consider incorporating the following -
    - Write full results to a text file, (including filename & path).
    - Drawcalls for FS9 mdls.
    - Drawcalls for scenery BGLs, (FSX & FS9).

    This last item is where most FPS damage is being done.
    That'd give us some ammunition for encouraging conversion.

    HTH
    ATB
    Paul
  17. Burkhard

    Burkhard

    Joined:
    8/6/06
    Messages:
    114
    The truth will be the batching - even when there are several draw calls, as long as it is the same material ( not only texture, but really material slots in GMAX as example ) its the more relevant number.

    But the comparison is intersting. I wondered why it counts 50 drawcalls for the nearest LOD of my AI planes, but when I throw in the stock 738 it has 162 - so I do not wonder my planes are about 3 times faster.
    Last edited: 13/3/08
  18. n4gix

    n4gix Resource contributor

    Joined:
    26/9/06
    Messages:
    9,343
    Country:
    unitedstates
    Arno, let's ignore for the moment anything except say three objects, all of which use the exact same Material (i.e, all Properties are identical). FSX will 'batch' these three seperate objects into a single draw call, but your tool reports 3 draw calls.
  19. BASys

    BASys

    Joined:
    25/5/06
    Messages:
    1,247
    Country:
    scotland
    Hi Folks

    Arno -
    Please could you look at the default - cruise_linerA_sm.mdl
    located in - \SimObjects\Boats\cruise_linerA_sm\Model

    Seeing dual sets of LODs
    e.g. 25,50,75,100,25,50,75,100

    I've no idea if it's -
    - Correct/Wrong.
    - The models themselves.
    - DCM decoding them.

    Occurs on several models.

    HTH
    ATB
    Paul
  20. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,300
    Country:
    netherlands
    Hi Bill,

    I can not reproduce this. I made a simple scene in GMax with three objects, all using the same texture. After I export to MDL and open it in the tool is shows as one drawcall. This is because the exporter optimizes everything.

    So when the tool shows multiple drawcalls, that means that inside the MDL there are multiple parts. If somebody can send me a MDL that shows multiple drawcalls for the same material, please send it to me so that I can debug the tool.
Thread Status:
Not open for further replies.

Share This Page