# Limit max FPS of vtkRenderWindow

**URL:** https://discourse.vtk.org/t/limit-max-fps-of-vtkrenderwindow/6641
**Category:** Support
**Created:** [September 15, 2021, 10:16am UTC](https://discourse.vtk.org/t/limit-max-fps-of-vtkrenderwindow/6641 "2021-09-15T10:16:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![PWeissenbacher](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pweissenbacher/32/3686_2.png) [@PWeissenbacher](https://discourse.vtk.org/u/PWeissenbacher)
#### Post date: [September 15, 2021, 10:16am UTC](https://discourse.vtk.org/t/limit-max-fps-of-vtkrenderwindow/6641/1 "2021-09-15T10:16:00Z")

</div>

Hello.

The `vtkRenderWindow` as well as the `vtkRenderWindowInteractor` both provide an interface to set the `DesiredUpdateRate`. This ensures, that I will get at least `DesiredUpdateRate` (FPS).

Is there a way to limit the maximum FPS achieved by the `vtkRenderWindow` such that the `vtkRenderWindow` will not render faster than a given max FPS value, e.g. 30 FPS?

Best Regards,  
Philipp

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [September 15, 2021, 9:48pm UTC](https://discourse.vtk.org/t/limit-max-fps-of-vtkrenderwindow/6641/2 "2021-09-15T21:48:28Z")

</div>

This cannot be implemented in purely rendering classes, because it requires a timer, which is an application-level feature. An implementation for Qt is available in [ctkVTKAbstractView](https://github.com/commontk/CTK/blob/master/Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.h#L131).
