I have run into a problem that when I start an empty world with Gazebo (I have tested this with Citadel, Fortress and Harmonic) inside a docker container my CPU usage shoots up to 70%. When I start Gazebo on my computer without a container the CPU usage is much smaller, about 10%. This is when the GUI is turned on.
I have an NVIDIA GeForce RTX 3050 graphics card, and I think I set the system up so the container can use it. Both the nvidia-smi and the glxgears commands give the expected outputs. When I look at the GPU usage after starting Gazebo I see that it goes up to about the same level both when I start Gazebo on my computer and inside the container. Unfortunately I cannot see the processes running inside the container with the nvidia-smi command, but based on the usage I assume that Gazebo does use my GPU.
Has anyone encountered this problem before? Did you find what causes this, is it possible that my GPU setup is still missing something?
Thanks in advance!