<div dir="ltr">Hi Stas,<div><br></div><div>Here are a couple things to try to improve fps (no guarantees, though).</div><div><br></div><div>With QVTKRenderWindowInteractor, it is best to let Qt handle the</div><div>render calls, rather than calling Render() directly. So try replacing</div><div>all of your calls to Render() with calls to self.update(), where 'self' is</div><div>the QVTKRenderWindowInteractor. If you do not do this, then it is</div><div>possible that the Render() is hidden because it isn't associated with</div><div>a Qt paint operation. By calling update() on a Qt widget, you ensure</div><div>that Qt will call Render() synchronously with its paintEvent().</div><div><br></div><div>A second thing to try is to call Update() on your reader before using</div><div>its output. Most readers will 'stream' which means that they only</div><div>read the slices that are requested by the VTK pipeline (possibly</div><div>causing the reader to re-execute on future pipeline requests),</div><div>unless you specifically call Update() which forces all the slices to be</div><div>read into memory at once. Since your example only has one input</div><div>slice, I doubt that this is what is causing a slow-down for you, but it</div><div>is still a good habit when working with VTK readers.</div><div><br></div><div> - David</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 10:57 AM take5v <<a href="mailto:stas.truhan@gmail.com">stas.truhan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Another issue but within the same context of mine toy example (script of<br>
which I posted above) is a slow fps during window/level change on Windows.<br>
This process is slow and laggy even during rendering the super small image<br>
of vtk.png from VTKData.<br>
<br>
CPU: GeForce GTX 680<br>
GPU: Intel i7-3770K<br>
<br>
<br>
<br>
-----<br>
Best regards,<br>
Stanislau Trukhan<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div>