# How can I get the real FPS from a remote rendering?

**URL:** https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871
**Category:** Web Support
**Created:** [September 15, 2023, 12:49pm UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871 "2023-09-15T12:49:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sebasgut1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sebasgut1/32/11526_2.png) [@sebasgut1](https://discourse.paraview.org/u/sebasgut1)
#### Post date: [September 15, 2023, 12:49pm UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871/1 "2023-09-15T12:49:04Z")

</div>

Hi,  
I would like to know how can I get the real FPS from the image stream with a interactive ratio of 1 and interactive quality of 100. Because I was trying to capture from browser but I always get 60 fps, but clearly there is a drop of frames because of the quality and the amout of images transmitted.

Thanks.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [September 15, 2023, 3:13pm UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871/2 "2023-09-15T15:13:34Z")

</div>

It depends on how you get your FPS. If you ask for the server info (print in the bg), that will indeed be wrong. But the stream object of vtk.js does have that info, or at least you can gather that info and provide such information.

I usually take a window and provide a min/max/avg on that sampling window.

But that will depend on what client-side code you have access to or using.

---

<div class="post-metadata">

### Author: ![sebasgut1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sebasgut1/32/11526_2.png) [@sebasgut1](https://discourse.paraview.org/u/sebasgut1)
#### Post date: [September 15, 2023, 3:20pm UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871/3 "2023-09-15T15:20:13Z")

</div>

I tried to follow this example [vtk.js](https://kitware.github.io/vtk-js/examples/Cone.html)  
But I having the same window for the remote rendering I get always 60 fps, no matter I change the interaction ratio and quality. But I see that there is a sort of lag during the streaming.  
For local rendering, it works perfectly.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [September 15, 2023, 3:26pm UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871/4 "2023-09-15T15:26:11Z")

</div>

Ok so that window is only for local rendering which has no knowledge of the image stream.

I won’t have an easy solution, but you can look [at that piece of code](https://github.com/Kitware/trame-rca/blob/master/vue-components/src/components/StatisticsDisplay/script.js) for the basic idea.

---

<div class="post-metadata">

### Author: ![sebasgut1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sebasgut1/32/11526_2.png) [@sebasgut1](https://discourse.paraview.org/u/sebasgut1)
#### Post date: [September 18, 2023, 10:18am UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871/5 "2023-09-18T10:18:14Z")

</div>

I was thinking on using ImageStream.OnImageReady with an interval that checks how many images arrive every second. Do you think this approach is valid?

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [September 18, 2023, 3:26pm UTC](https://discourse.paraview.org/t/how-can-i-get-the-real-fps-from-a-remote-rendering/12871/6 "2023-09-18T15:26:28Z")

</div>

It is a valid approach. I think you can even tap onto an other event that provide addition info such as the server time… Either way, this is the way to go.
