ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
831 stars 463 forks source link

How to enable GPU for rviz #1779

Closed ZhangZh3ng closed 1 year ago

ZhangZh3ng commented 1 year ago

I need to render a large number of point cloud and marker array in rviz, now the rviz fps is very low(< 1fps), I tried to open a terminal with GPU(mine is Nvidia1050Ti) and then run rviz in that terminal, but it doesn't help. I found the the GPU memory usage by rviz is very low(4 Mb) which is abnormal. So I want to know is there any way to enable GPU for rviz?

Your environment

rhaschke commented 1 year ago

The output OpenGL device: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 already indicates that the GPU is used for rendering. Maybe you GPU is already overloaded with (pre)processing of the point-cloud data, i.e. receiving and preparing data for display? This is done in a separate thread for each PC display.

ZhangZh3ng commented 1 year ago

The output OpenGL device: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 already indicates that the GPU is used for rendering. Maybe you GPU is already overloaded with (pre)processing of the point-cloud data, i.e. receiving and preparing data for display? This is done in a separate thread for each PC display.

Thank you for your reply, maybe I need to decrease to point number.

rhaschke commented 1 year ago

Yes.