<div dir="ltr">Hi Thomas,<div><br></div><div>You can try playing around with the vsync in your driver settings (for example, if you have an NVidia GPU then run nvidia-settings).</div><div><br></div><div> - David  </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 11:22 AM, 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">Hi David,<br>
<br>
thank you for taking the time.<br>
SwapBuffers changed nothing on the speed (still 60/numberOfRenderWindows fps). Although weirdly this is only the case on my ubuntu system -- on my Macbook this doesnt occur at all (60fps on all 10 renderwindows).<br>
Also, if i completely turn off DoubleBuffering it doesnt occur, but i do get the typical image artifacts.<br>
<br>
- Thomas<br>
<br>
________________________________________<br>
From: David Gobbi [<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>]<br>
Sent: Tuesday, October 13, 2015 3:09 AM<br>
To: Kirchner, Thomas<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] Why do my vtkRenderWindows divide up the frame rate?<br>
<span class=""><br>
Hi Thomas,<br>
<br>
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:<br>
<br>
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.<br>
<br>
 - David<br>
<br>
<br>
</span><span class="">On Mon, Oct 12, 2015 at 5:50 PM, Kirchner, Thomas <<a href="mailto:t.kirchner@dkfz-heidelberg.de">t.kirchner@dkfz-heidelberg.de</a><mailto:<a href="mailto:t.kirchner@dkfz-heidelberg.de">t.kirchner@dkfz-heidelberg.de</a>>> wrote:<br>
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>
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>
</span>Tel.: <a href="tel:%2B49%20%280%29%206221%20%2F%2042-3543" value="+496221423543">+49 (0) 6221 / 42-3543</a><tel:%2B49%20%280%29%206221%20%2F%2042-3543><br>
</blockquote></div><br></div></div>