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:
- Set the
Static
flag on mapper.mapper->SetStatic(1)
- See if using
vtkPointGaussianMapper
instead helps performance. - Check if there are any OpenGL errors. For release builds, configure VTK with
VTK_REPORT_OPENGL_ERRORS_IN_RELEASE_BUILDS=ON