# Update actors in Activiz 9.2

**URL:** https://discourse.vtk.org/t/update-actors-in-activiz-9-2/9443
**Category:** Support
**Created:** [September 23, 2022, 6:22pm UTC](https://discourse.vtk.org/t/update-actors-in-activiz-9-2/9443 "2022-09-23T18:22:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MarKara](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/ecae2f/32.png) [@MarKara](https://discourse.vtk.org/u/MarKara)
#### Post date: [September 23, 2022, 6:22pm UTC](https://discourse.vtk.org/t/update-actors-in-activiz-9-2/9443/1 "2022-09-23T18:22:02Z")

</div>

In my application I have a similar option as in Paraview “Hover over cells” to show cell property using balloon widget and highlight hovered cell using vtkExtractSelection to extract cell from grid and update actor. The second part updating an actor to show hovered cell in VTK 6.3 and also in Paraview is almost instant no delay, but using 9.2 there is a delay about 1-2 seconds( depending on number of cells in the grid). I thought this will be solved in 9.2 but it’s the same as in 9.1, so I wonder if there are any other settings in vtkRenderWindow, vtkRenderer or vtkRenderWindowInteractor that I’m not aware of that need to be adjusted in order to improve performance, or there is potentially another bug in the latest release?

here is the code that use to update actor every time mouse is moved of top of the cell

```
  vtkSelectionNode selectionNode = new vtkSelectionNode();
  selectionNode.SetFieldType(0);
  selectionNode.SetContentType(3);
  selectionNode.SetSelectionList(hoverIDS);

  vtkSelection selection = new vtkSelection();
  selection.SetNode("Hover", selectionNode);

  vtkExtractSelection extractSelection = new vtkExtractSelection();
  extractSelection.SetInputData(Grid);
  extractSelection.SetInputData(1, selection);
  //extractSelection.Update();

  MapperInteractive.SetInputConnection(extractSelection.GetOutputPort());
    RenWin.Render();

```

and here are current rendering settings.  
RenWin.GetRenderers().GetFirstRenderer().SetMaximumNumberOfPeels(4);  
RenWin.GetRenderers().GetFirstRenderer().SetOcclusionRatio(0.1);  
RenWin.SetAlphaBitPlanes(1);  
RenWin.SetMultiSamples(0);

I spend couple days with different settings, but no success so far.  
Please share any ideas  
Thanks  
MK

---

<div class="post-metadata">

### Author: ![MarKara](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/ecae2f/32.png) [@MarKara](https://discourse.vtk.org/u/MarKara)
#### Post date: [September 25, 2022, 2:58am UTC](https://discourse.vtk.org/t/update-actors-in-activiz-9-2/9443/2 "2022-09-25T02:58:51Z")

</div>

Here are some updated analysis.

- Grid used for cell extraction contains around 500000 cells.
- generated randomly 1,10,100,1000 and 10000 cell ids
- run code above and measure time to perform RenWin.Render();  
Chart below clearly show large drop in performance in 9.2 vtkExtractSelection pipeline

 ![image](https://discourse.vtk.org/uploads/default/original/2X/c/ce017c4be056364d197970b95b0c76357bc16594.png)

MK

---

<div class="post-metadata">

### Author: ![LucasGandel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lucasgandel/32/1831_2.png) [@LucasGandel](https://discourse.vtk.org/u/LucasGandel)
#### Post date: [April 28, 2023, 6:33am UTC](https://discourse.vtk.org/t/update-actors-in-activiz-9-2/9443/3 "2023-04-28T06:33:53Z")

</div>

A drop in performance has been confirmed and fixed in the [recently released](https://www.kitware.com/activiz-9-2-release/) 9.2.2023.308 version.

---

<div class="post-metadata">

### Author: ![MarKara](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/ecae2f/32.png) [@MarKara](https://discourse.vtk.org/u/MarKara)
#### Post date: [April 28, 2023, 12:13pm UTC](https://discourse.vtk.org/t/update-actors-in-activiz-9-2/9443/4 "2023-04-28T12:13:43Z")

</div>

Thanks Lucas
