utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
27.16k stars 1.34k forks source link

gpu acceleration causes gazebo black worldview #3122

Open ml2s opened 3 years ago

ml2s commented 3 years ago

Black worldview in Gazebo if gpu-gl (or ramfs-gl) acceleration is turned on. When it's off, Gazebo works fine but slow.

Screenshot from 2021-09-19 19-55-09

My Configuration:

I also tried on my old rMBP 15 with intel cpu, same black worldview when using gpu-gl. Virtualbox on the other hand, works olk when enabling graphics acceleration. Not sure if it is a bug of the opengl in UTM or misconfiguration of some sorts. Appreciate any help!

lianne commented 3 years ago

I confirm the same problem with UTM version 2.4.1 (and all the same for OS, VM and processor). Thanks.

ml2s commented 3 years ago

Thanks for confirming, same here. I have since tried VMware fusion tech preview for M1, which works better and no more this bug.

JMrobotUdes commented 2 years ago

Same problem here, but if it can give a hint, I am using Parallels

JMrobotUdes commented 2 years ago

Thanks for confirming, same here. I have since tried VMware fusion tech preview for M1, which works better and no more this bug.

@ml2s How did you manage to get the preview. I have no answer from my request? Also, do you see a big difference in term of performance with and without 3d acceleration?

JMrobotUdes commented 2 years ago

@ml2s I now have the VMware Fusion tech preview and installed Ubuntu 20, but it seems I cannot use 3d acceleration. Have you managed to do it?

ml2s commented 2 years ago

@ml2s I now have the VMware Fusion tech preview and installed Ubuntu 20, but it seems I cannot use 3d acceleration. Have you managed to do it?

Following the tech guide (https://communities.vmware.com/t5/Fusion-for-Apple-Silicon-Tech/Fusion-Tech-Preview-Testing-Guide/ta-p/2867908?attachment-id=105429), update kernel to 5.14, disable wayland, install tools etc.

JMrobotUdes commented 2 years ago

@ml2s , really appreciate your follow up and I followed this tech guide of yours. I managed to update to 5.14 and I can now change my resolution. But even than... I still can not use 3d acceleration. It even says in the "Known Issues" section it is not yet available :

image

I would really appreciate If you could at least confirm it is possible to use it, if you really saw a significant improvement and if you could tell me where to look for to enable it...

ml2s commented 2 years ago

My 3D acceleration is greyed out in VM fusion too, but performance wise, I can't tell the difference between VMware fusion and UTM with GPU acceleration, most time it feels even faster, no gazebo bug. Besides, the network interface is by default bridged, so no need of port forwarding. My vscode can directly ssh into the vm ip address. Currently I have moved all my work on VM fusion.

atyshka commented 2 years ago

Same issue here, with UTM / Gazebo 9 and any of the virtio GPU devices. Things work fine but slow under the vmware emulated gpu

m0rphine1 commented 1 month ago

i solved it by using --render-engine ogre. when i use this param i can use both 3d acceleration and gazebo simulation without performance issues.