VTK - Tcl vs. Python Render speed

Dean N. Williams williams13 at llnl.gov
Fri Apr 28 10:34:25 EDT 2000


Randall,

    I have found that Python is generally slower that Tcl.

-Dean

>      Big differences in Render() times between Tcl and Python.
>
>      renWin.Render is taking 1/4 of a second, when called from Python.  But
> when called from Tcl, its nearly instantaneous.  Any ideas?
>
>      For example, attached is a trivial conversion of the 3DMorph.tcl
> example program to Python.  I've inserted timing prints to show how long
> VTK calls are taking.  (See below)
>
>      Once the update/render loop is complete and the VTK mouse interactor
> takes over, it's fluid 30 fps in both Tcl and Python scripts (this is a H/W
> accelerated SGI Octane).  But in the update/render loop, it takes VTK-Tcl 3
> seconds and VTK-Python 11 seconds to complete all 40 iterations.
>
>      Thoughts?
>
> --
> Randall Hopper
> aa8vb at yahoo.com
>
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.25 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.26 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.26 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.26 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.25 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.26 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.28 sec
> interpolate.SetT() - 0.00 sec
> renWin.Render()    - 0.25 sec
> interpolate.SetT() - 0.00 sec
> ...
>
>   ------------------------------------------------------------------------------------------------------------------------
>
>    3DMorph.pyName: 3DMorph.py
>              Type: Plain Text (text/plain)

--
Dean N. Williams
Computer Scientist/Computation Group Leader             o
Lawrence Livermore National Laboratory                --
Livermore, California 94550                          `\< *
Phone: (925) 423-0145    FAX: (925) 422-7675        /  \
http://www-pcmdi.llnl.gov                         williams13 at llnl.gov



--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list