Gazebo | Ignition | Community
Ask Your Question

How to ensure Gazebo is utilizing a graphics card?

asked 2020-08-12 15:10:51 -0500

luna gravatar image

I'm currently running Gazebo on a machine with an Nvidia GEForce RTX 2070 card. When I launch the simulation and then run nvidia-smi, it shows that the Nvidia graphics card is only at anywhere from 0-4% utilization, and gazebo is not listed as a process at the bottom, so I assume that it's hardly using the GPU at all. Would I need to configure Gazebo to utilize a graphics card or reconfigure the Nvidia drivers to work with Gazebo?

Any input is appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-08-17 16:29:25 -0500

luna gravatar image

updated 2020-08-17 16:40:58 -0500

Okay, so I think I solved the problem. After having the graphics card driver reinstalled, it seemed to function properly (gzclient and gzserver are both listed as processes on the GPU after running nvidia-smi). That being said, it looks like only 8-9% of the GPU (about 550 MiB/7982 MiB) is being utilized. I'm wondering if people have achieved better utilization of their GPU, or if this looks about right?

Edit: wanted to add that the whole reason for this is question that the RTF of the simulation started out at 0.9 and would deteriorate to 0.1. I do know that I'm adding models continuously so that definitely contributes to the problem, but I'm deleting them at the same time, so the model shouldn't deteriorate that much over time. Is there something else I'm missing/could be improving on? Appreciate any thoughts.

edit flag offensive delete link more


Another note: I was using NoMachine previously so that I could see graphics generated by the Ubuntu server I was running the simulation on. For some reason, when running nvidia-smi while NoMachine was running caused the GPU-utilization to be lower (8-9%). Without NoMachine, the GPU-utilization was about 25-35%, which seems much better, although I didn't notice a speed up in the RTF of the simulation. My guess is that NoMachine probably also utilizes the GPU/CPU of whatever it runs on as well.

luna gravatar imageluna ( 2020-08-19 14:11:12 -0500 )edit

I think that gazebo use the gpu only for rendering purpose, for exemple if you have a camera or laser in your setup, or simply to display the gzclient. But the physics engine itself use only CPU.

Clément Rolinat gravatar imageClément Rolinat ( 2020-08-26 03:17:34 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-08-12 15:10:51 -0500

Seen: 154 times

Last updated: Aug 17