How to enable gpu acceleration on laptop for ros? [closed]
I m trying to simulate Intel Realsense camera on Asus Tuf A15 with 1650ti GPU and 16GB ram. Whenever I enable pointcloud2 in rviz fps drops to 2-3fps. I guess rviz is not using my GPU. Is there any way to enable the GPU acceleration? I could not find any support.
did you searched it in the web?
https://discourse.ros.org/t/challenge...
I'm not aware of any ways to force rviz to use a GPU (though they may exist). There is a way to force it to not use a gpu, per http://wiki.ros.org/rviz/Troubleshooting so you could make sure that
LIBGL_ALWAYS_SOFTWARE
isn't set to true... A few things to check..gazebo_ros_gpu_laser.so
plugin and not the default "cpu" variant (gazebo_ros_laser.so
)if you start rviz by itself, what is the output related to the graphics drivers? Do you see something like this that indicates that your Nvidia driver is being used?
[/rviz_1637200062035959003.RenderSystem::detectGlVersion]: OpenGL device: NVIDIA GeForce RTX 3080/PCIe/SSE2 [/rviz_1637200062035959003.RenderSystem::detectGlVersion]: OpenGl version: 4.6 (GLSL 4.6).
if not, maybe run
nvidia-smi
to check that your driver is runningThank you so much. I tried reinstalling the Nvidia drivers and it worked.
Glad that worked out! Just moving my comment to the answers below so this question can be closed.