[vtkusers] Problem CMake 'VTK_USE_ANSI_STDLIB = ON' is slow volume rendering..

우리들 wolf74 at wooridul.co.kr
Thu Jul 15 22:29:25 EDT 2004


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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040716/b530496e/attachment.htm>


More information about the vtkusers mailing list