[vtkusers] Problem CMake 'VTK_USE_ANSI_STDLIB = ON' is slow volume rendering..
Mathieu Malaterre
mathieu.malaterre at kitware.com
Fri Jul 16 08:38:30 EDT 2004
¿ì¸®µé,
Are those tests both in Release mode ?
Thanks,
Mathieu
¿ì¸®µé wrote:
> Thanks you for read my question..
>
> I'm using VTK 4.2 with DCMTK in WIN2000, .Net 2002 VC++ 7.0
>
> I have problem about VTK 4.2
>
> That is VTK_USE_ANSI_STDLIB option...
>
> --------------------------------------------------------
> example)
> ...
> vtkRenderer* m_pRen;
> ...
> clock_t dwCurrTime = 0;
> clock_t dwSetWorldPointTime = 0;
> clock_t dwWorldToDisplayTime = 0;
> clock_t dwWorldToViewTime = 0;
> clock_t dwViewToDisplayTime = 0;
> clock_t dwGetDisplayPointTick = 0;
> double dwDiffTick = 0;
> double dwAvgSetWorldPointTick = 0;
> double dwAvgWorldToDisplayTick = 0;
> double dwAvgWorldToViewTick = 0;
> double dwAvgViewToDisplayTick = 0;
> double dwAvgGetDisplayPointTick = 0;
>
> m_pRen->SetWorldPoint(x, y, z, 1.0);
> dwSetWorldPointTime = clock(); // for check tick count 1
> m_pRen->WorldToView();
> dwWorldToViewTime = clock(); // for check tick count 2 ----|
> m_pRen->ViewToDisplay(); |
> dwViewToDisplayTime = clock(); // for check tick count 3 | it is
> same m_pRen->WorldToDisplay()
> m_pRen->GetDisplayPoint(wp); ----|
> dwGetDisplayPointTick = clock(); // for check tick count 4
>
> dwGetDisplayPointTick = clock();
>
> dwDiffTick = (double)(dwSetWorldPointTime - dwCurrTime)/CLOCKS_PER_SEC;
> dwAvgSetWorldPointTick += dwDiffTick;
>
> dwDiffTick = (double)(dwWorldToViewTime -
> dwSetWorldPointTime)/CLOCKS_PER_SEC;
> dwAvgWorldToViewTick += dwDiffTick;
>
> dwDiffTick = (double)(dwViewToDisplayTime -
> dwWorldToViewTime)/CLOCKS_PER_SEC;
> dwAvgViewToDisplayTick += dwDiffTick;
>
> dwDiffTick = (double)(dwGetDisplayPointTick -
> dwViewToDisplayTime)/CLOCKS_PER_SEC;
> dwAvgGetDisplayPointTick += dwDiffTick;
>
> ......
> --------------------------------------------------------
>
>
> Volume Rendering width DICOM Image (128x128 size)
> use vtkVolumeTextureMapper2D...
> in my case :
> 1) image count = 5
> VTK_USE_ANSI_STDLIB = ON -> dwAvgWorldToViewTick is 4.124
> VTK_USE_ANSI_STDLIB = OFF -> dwAvgWorldToViewTick is 1.17
> 2) image count = 30
> VTK_USE_ANSI_STDLIB = ON -> dwAvgWorldToViewTick is 23.985
> VTK_USE_ANSI_STDLIB = OFF -> dwAvgWorldToViewTick is 6.858
>
> I don't know reason..
>
> please answer me this question...
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list