The rendering performance of VTK is lower than that of QOpenGLWidget. How can I improve VTK's display performance?

Can you confirm that VTK is built in Release mode? Debug builds are known to result in extremely slow rendering for large no. of points. The default is Debug, so please check your build.

Otherwise, here is what you can try:

  1. Set the Static flag on mapper. mapper->SetStatic(1)
  2. See if using vtkPointGaussianMapper instead helps performance.
  3. Check if there are any OpenGL errors. For release builds, configure VTK with VTK_REPORT_OPENGL_ERRORS_IN_RELEASE_BUILDS=ON
1 Like