[vtkusers] Fwd: Control VTK frame rate

Ken Martin ken.martin at kitware.com
Fri Jul 7 08:48:04 EDT 2017


On list in case it use useful to others


---------- Forwarded message ----------
From: Ken Martin <ken.martin at kitware.com>
Date: Fri, Jul 7, 2017 at 8:47 AM
Subject: Re: [vtkusers] Control VTK frame rate
To: Andreas Buykx <A.Buykx at dianafea.com>


The default culler checks the bounding box of every actor/prop and if they
are outside of the view frustum it does not render them. So the performance
question becomes:

is checking the actor's bounding box (with the pipeline mtime check) faster
than the time savings of sometimes not rendering the actor?

So when the actors will all typically be visible and there are lots of them
(or their filter pipelines are long) removing the culler can save time
because you may be CPU bound on checking pipeline mtime. Oddly enough
checking pipeline mtime can be fairly time consuming for lots of
pipelines/actors.  So making the mapper static and removing the culler
basically cuts out all pipeline mtime checks reducing the CPU load which
with a fast GPU the CPU can often be the bottleneck for lots of VTK actors.



On Fri, Jul 7, 2017 at 5:07 AM, Andreas Buykx <A.Buykx at dianafea.com> wrote:

> Hi, could you please explain what the removal of the last culler is about?
> In what situations is it needed? I looked in the VTK7.1.0 and found that a
> small number of tests does this but  do not understand why it is needed in
> these tests and not in others.
>
>
>
> Thanks a lot,
>
> Andreas Buykx
>
>
>
> *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Ken
> Martin
> *Sent:* Wednesday, July 05, 2017 2:30 PM
> *To:* kay
> *Cc:* vtk
> *Subject:* Re: [vtkusers] Control VTK frame rate
>
>
>
> That doesn't seem to match the pseudo code you posted, where the transform
> is applied to a filter (shared by all the actors, well the only actor).
> Maybe an updated bit of pseudo code would help.
>
>
>
> In general with lots of actors you want to make sure
>
>
>
>         mapper->StaticOn();
>
>
>
> and
>
>
>
>     ren->RemoveCuller(ren->GetCullers()->GetLastItem());
>
>
>
> make sure it is a release build, and make sure your transformation is
> happening on the actor, not a filter such as trransformpolydata.
>
>
>
>
>
>
>
> On Tue, Jul 4, 2017 at 5:18 PM, kay <jayavardhanravi at outlook.com> wrote:
>
> Transforms are independent and are applied directly to the actor
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.c
> om/Control-VTK-frame-rate-tp5743876p5743893.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/opensou
> rce/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
>
>
>
>
>
> --
>
> Ken Martin PhD
>
> Distinguished Engineer
> Kitware Inc.
>
> 28 Corporate Drive
> Clifton Park NY 12065
>
>
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee.  Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message.  Thank you.
>



-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.



-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170707/885d0bb1/attachment.html>


More information about the vtkusers mailing list