How to show fps on the web client?

Hello,
I am puzzling about how to show fps on the web client. Now we have use the vtk as sever rendering core.
Could anyone please show me some inspiration?
Thank you all!

In what technology: vtk.js, vtkWeb, ParaViewWeb?
For local rendering or remote?
The remote fps or the local one?

If you use visualizer, you can check the “Show Rendering stats”.
Screen Shot 2021-01-29 at 08.11.00

In vtk.js you have that example.

In Visualizer you can check “Show Annotation” to in-print in the view the remote rendering stats.

Thank you for your help, Sebastien.

In what technology: I think we have used vtkWeb. Vtk offered the rendering function.
For local rendering or remote? For remote rendering.
The remote fps or the local one? It is remote fps. Local fps is worked out.

I have not used the Visualizer. I used a SimpleDemo: https://github.com/tsgouros/ParaViewWeb-SimpleDemo.

So which cases should I refer to?

Thank you a lot!

Looking at the code, it is actually using ParaView, so you just need to turn the annotation on to see the remote fps.

Just put that somewhere on your server side.

from paraview import simple
pxm = simple.servermanager.ProxyManager()
renderingSettings = pxm.GetProxy('settings', 'RenderViewSettings')
renderingSettings.ShowAnnotation = 1

Thank you Sebastien,
With the codes you offered, I worked out the fps. Thank you for your help.
image

Now, we find that we are using paraview as server. As this:https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html#Using-ParaView-as-server
It has some weak points, such as slow drawing speed according to VTK server: https://kitware.github.io/paraviewweb/examples/RemoteRenderer.html#Using-VTK-as-server
So we are changing to use the vtk as server. But the remote fps can not be shown using the same codes. Do you have some good ideas for this situation?

Thank you a lot.

What do you mean by slow rendering using ParaView server? It won’t be faster with VTK and 500 fps is plenty good.

The problem is likely related to your setup of rendering on the client side. You should look at https://github.com/Kitware/web-project-templates/tree/master/vue-vtkjs-pvw-template and see if you see any speed up.