<div dir="ltr">Hi Thomas,<div><br></div><div>The default behavior of vtkRenderWindow is to wait for the vblank before swapping the buffers. So with multiple RenderWindows, the result is slow rendering and, even worse, the windows aren't synchronized. You can try the following work-around:</div><div><br></div><div>For each window, call SwapBuffersOff() before calling Render(). This allows each window to do its rendering without swapping the buffers. Then, call SwapBuffersOn() and Frame() for each window. This will synchronize the buffer swapping.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 5:50 PM, Kirchner, Thomas <span dir="ltr"><<a href="mailto:t.kirchner@dkfz-heidelberg.de" target="_blank">t.kirchner@dkfz-heidelberg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
i am trying to get multiple vtkRenderWindows to render (4 different<br>
image streams in my case) simultaneously at 60fps which seems to be the<br>
frame rate limit for one single vtkRenderWindow (at least with my<br>
screen). It appears to me that multiple render windows in the same<br>
application share those 60fps ... e.g. yielding exactly 15fps for 4 windows.<br>
If i just start a new application for each window this does not occur<br>
(which gives me hope but doesn't help)<br>
<br>
I can't figure out why this frame rate limit is "shared" and i dont think<br>
this behavior is intended. But maybe you guys know how i can avoid this<br>
effect?<br>
(my simple example, mostly stitched together from other example code is<br>
attached)<br>
<br>
Any help would be greatly appreciated.<br>
<br>
Thanks in advance<br>
<span class="HOEnZb"><font color="#888888">Thomas<br>
<br>
--<br>
Thomas Kirchner<br>
German Cancer Research Center (DKFZ)<br>
Division Medical and Biological Informatics<br>
E131 - Computer-assisted Interventions<br>
<br>
Im Neuenheimer Feld 280<br>
69120 Heidelberg, Germany<br>
Tel.: <a href="tel:%2B49%20%280%29%206221%20%2F%2042-3543" value="+496221423543">+49 (0) 6221 / 42-3543</a></font></span><br></blockquote></div></div></div></div>