Re: Performance: VC++ 33% slower then Builder 5 on LineTo() API ca

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Luis Miguel Huapaya (LuisMiguelHuapaya_at_discussions.microsoft.com)
Date: 01/10/05

  • Next message: Gustavo L. Fabro: "Re: Performance: VC++ 33% slower then Builder 5 on LineTo() API ca"
    Date: Mon, 10 Jan 2005 09:43:02 -0800
    
    

    Just out of curiosity. How come you are not using hardware to render your
    lines (i.e. DirectX). If performance is an issue, using DirectX to draw lines
    would give you a seemingly infinite boost in performance compared to
    rendering your lines in software (even anti-aliased lines).

    Just curious.

    cheers,
    Luis Miguel Huapaya

    "Gustavo L. Fabro" wrote:

    >
    > > Did you look at the assembly produced by both compilers?
    >
    > By this time I unfortunately don't have the necessary knowledge in assembly
    > language to be able to tell something concrete out of 2 given codes. If that
    > helps I can disassemble both DLLs and post the code here!
    >
    > >
    > > But artificial tests like this rarely mean anything in real
    > > applications...
    >
    > I'm afraid this is not the case here. This test is just a replication of
    > something I have
    > seen in practice. Our CAD application took 5 times longer to draw the same
    > file
    > in the screen with the VS compiled version then with our Builder compiled
    > one.
    >
    > As the application itself has lots of classes, DLLs, and we used managed and
    > unmanaged C++ in the middle, I tried to first check out if the API calls
    > themselves, after all the processing (of elements, points positions, etc)
    > were running at the same speed. In case that was true, I would then try to
    > focus on the managed/unmanaged approach, DLL interaction and other factors.
    >
    > But when I saw that even the API drawing calls themselves were taking
    > longer, I got intrigued... And decided to do this test! Hence the results
    > here demonstrated and the question: Is it *really* like this?
    >
    > Fabro
    >
    >
    >


  • Next message: Gustavo L. Fabro: "Re: Performance: VC++ 33% slower then Builder 5 on LineTo() API ca"

    Relevant Pages

    • Re: Performance: VC++ 33% slower then Builder 5 on LineTo() API ca
      ... How come you are not using hardware to render your ... using DirectX to draw lines ... > helps I can disassemble both DLLs and post the code here! ... Our CAD application took 5 times longer to draw the same ...
      (microsoft.public.vc.language)
    • Re: Performance: VC++ 33% slower then Builder 5 on LineTo() API ca
      ... How come you are not using hardware to render your ... using DirectX to draw lines ... > helps I can disassemble both DLLs and post the code here! ... Our CAD application took 5 times longer to draw the same ...
      (microsoft.public.vsnet.general)
    • Re: Performance: VC++ 33% slower then Builder 5 on LineTo() API ca
      ... How come you are not using hardware to render your ... using DirectX to draw lines ... > helps I can disassemble both DLLs and post the code here! ... Our CAD application took 5 times longer to draw the same ...
      (microsoft.public.dotnet.general)
    • Re: How to create custom Line type.
      ... > but how to render. ... and what api should take. ... Why would you need DirectX to draw a line? ... Yes you could draw it with DirectX if you wanted to but it's a little overkill IMO... ...
      (microsoft.public.vb.winapi.graphics)
    • Re: 3d carton box printing
      ... In addition the way 3d graphics work you can scale any item you draw my any ... try to get a book on managed DirectX or follow some of the tutorials from ... label like product code. ... GDI printing commands to get it printed. ...
      (microsoft.public.vb.directx)