<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi all, I'm relatively new to VTK and am having some issues with performance.&nbsp; I am trying to achieve interactive slicing of a roughly 200x200x200 vtkVolume using vtkImageReslice, displayed through a 640x480 wxVTKRenderWindow in Python.&nbsp; This is all working great, but it's slow, maybe 5 - 10 frames per second, making the application difficult to use.&nbsp; I'm running this on a Windows 7 / Intel Core i7 / nVidia Geforce GTX laptop.<br><br>The main bottleneck is the call to the wxVTKRenderWindow Render function.&nbsp; Out of curiosity, I timed the speed of the Render function of the vtkRenderer directly, and this was nearly an order of magnitude faster.&nbsp; Is this to be expected?&nbsp; I figured the bulk of the work would be in the vtkRenderer.&nbsp; I'm fairly new to all of this so I'm not quite clear on what work is
 performed by the renderer/rendercollection/renderwindow/interactor, but is there a way to get the vtkRenderWindow Render to better match the speed of the vtkRenderer Render?<br><br>I get very smooth results rotating the entire volume within the wxVTKRenderWindow, so it seems somewhat unexpected that rendering a single slice is so much slower.<br><br>My test case looks something like this:<br><br>start_time = time.time()<br>for i in range(100):<br>&nbsp;&nbsp;&nbsp;&nbsp; self.sliceRenderer.Render()<br>&nbsp;&nbsp;&nbsp;&nbsp; #self.sliceRenderWindow.Render()<br>end_time = time.time()<br>print 'Elapsed time = ', end_time - start_time<br><br>Any ideas?&nbsp; Thanks!<br><br>--Matt<br></div></body></html>