[vtkusers] Control VTK frame rate

Bill Lorensen bill.lorensen at gmail.com
Tue Jul 4 16:30:57 EDT 2017


How many actors do you have?

On Jul 4, 2017 4:26 PM, "kay" <jayavardhanravi at outlook.com> wrote:

> My Input data is generated by the realtime system, so the high frequency of
> data. But the VTK application I am trying to build is not a real time
> system. To explain further, the pseudo code that I posted before works by
> calling render in a loop.
>
> double realTimevariable; // This variable is updated by the real time
> system
> every millisecond
> while(true)
> {
>    t->Identity();
>    t->RotateZ(realTimevariable); // realTimevariable takes the value at
> this
> point of time
>    t->update();
>    renderer->addActor(act);
>    renderer->modified();
>    renderWindow->render();
> }
>
> Each time the loop is run value of the realTimeVariable is taken from the
> memory at that instance of time.
> This process works for less number of actors and frame rate is 12-14, but
> if
> the actors are doubled the frame rate goes down by 7-9 which is visible to
> the eye. From what I understand, this looping of render call
> (renderWindow->Render();) is what you mentioned "swamping VTK with render
> requests", Please correct me if I am wrong.
>
> And I dont want to control data to 60 times per second, as I want VTK to
> render as often as it can (Minimum of 12 FPS)
>
> I am not using QT, just basic vtk pipeline in C++.
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/Control-VTK-frame-rate-tp5743876p5743885.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170704/72a3fb4f/attachment.html>


More information about the vtkusers mailing list