[vtk-developers] VTK Rendering cleanups and reorganization
Andy Cedilnik
andy.cedilnik at kitware.com
Tue May 28 08:34:36 EDT 2002
Hello!
I did some cleaning of Rendering that included removal of instances of
vtkSetObjectMacro and trying to reduce the amount of files included in
each header file. The main reason for all this is the issue of compiling
VTK and related projects on problematic platforms such as MS Visual
Studio .NET. Also, as a side effect, VTK does compile faster. Just to
give you some numbers:
I tested VTK before the change and after the change. The machine I used
for testing was two processor AMD 1.4MHz (?) with about a gig of memory
and SCSI hard drives. The operating system was Sourcerer Linux and
kernel was 2.4.17. I used gcc 2.95.3. The command line used was:
make -j 10
which, for all non gmake users, means spawn I build all the kits and
TCL wrapping. 10 threads that will compile at the same time.
So, the numbers:
Before the change: 1268.09 seconds
After the change: 1107.07 seconds
This is 14% improvement!!
Some things I noticed:
vtk3DS.h is in IO but is needed in Rendering or Hybrid?
Volume rendering has to include some header files just for some
structures that are defined there
Some other files have to include stuff just for some constants;
should probably go to vtkSetGet?
Some files (vtkActorCollection) have to include vtkActor for
inline methods. Are inline methods any faster or is
this just something everybody believes in?
Andy Cedilnik
More information about the vtk-developers
mailing list