# Controlling performance for vtkLODActor

**URL:** https://discourse.vtk.org/t/controlling-performance-for-vtklodactor/10841
**Category:** Support
**Created:** [March 1, 2023, 11:52am UTC](https://discourse.vtk.org/t/controlling-performance-for-vtklodactor/10841 "2023-03-01T11:52:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dimitrisoh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dimitrisoh/32/5458_2.png) [@dimitrisoh](https://discourse.vtk.org/u/dimitrisoh)
#### Post date: [March 1, 2023, 11:52am UTC](https://discourse.vtk.org/t/controlling-performance-for-vtklodactor/10841/1 "2023-03-01T11:52:58Z")

</div>

Hi all.

**System** :

- Linux (Cent-OS 7), gcc10, C++14
- VTK-7.1 (various reason for not updating)
- No GPU available (running in VNC with OpenGL2)
- I also use Mesa3D (OpenSWR driver) but you can ignore at least for now because it’s probably irrelevant to my question and

**Flow** :  
`vtkTensorGlyph` to `vtkDataSetMapper` to `vtkLODActor`  
`vtkUnstructuredGrid` to to `vtkDataSetMapper` to `vtkLODActor`

**Problem**  
To my understanding by using vtkLODActor and setting the `vtkInteractor::SetDesiredUpdateRate()` should adjust the various levels of detail in order to achieve that frame rate (i.e. the argument to the function e.g. 10 means 10fps).  
Well, in my case `SetDesiredUpdateRate()` seem to have no effect whatsoever.

_Note_ that I deal with very large data sets (millions of points) that do not change (other than opacity and colors) where I end up with unaccepted rendering times of 1fps or less.

_Another note_: `vtkRenderer::SetAllocatedRenderTime()` does not seem to have any effect as well but how is is this related to `SetDesiredUpdateRate()`?

Thanks in advance

Dimitris

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [March 4, 2023, 9:24pm UTC](https://discourse.vtk.org/t/controlling-performance-for-vtklodactor/10841/2 "2023-03-04T21:24:10Z")

</div>

Hello,

First, software-emulated rendering **does** result in low FPS when compared with GPU rendering.

As for the LOD actor, can you please post the code you’re using to define the levels of detail and configure your `vtkLODActor`? I mean, `vtkLODActor` gives only three “free” LODs:

- the top level is the whole data;
- the mid level is a point cloud of points randomly taken from the data with point count limited by `vtkLODActor::SetNumberOfCloudPoints(int)` and
- the bottom level is just the bounding box of the data.

If you want a different set of LODs, you have to code.

best,

Paulo
