godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.21k stars 19.17k forks source link

Vulkan: 3D editor grid renders incorrectly when using Lavapipe software rendering #92653

Open Naputt1 opened 4 weeks ago

Naputt1 commented 4 weeks ago

Tested versions

Godot Engine v4.3.beta1.official.a4f2ea91a - https://godotengine.org/ Vulkan 1.3.274 - Forward+ - Using Device #0: Unknown - llvmpipe (LLVM 17.0.6, 256 bits)

System information

Godot v4.3.beta1 - Ubuntu 24.04 LTS 24.04 - X11 - Vulkan (Forward+) - (software emulation on CPU) llvmpipe (LLVM 17.0.6, 256 bits) () - AMD Ryzen 5 PRO 4650U with Radeon Graphics (6 Threads)

Issue description

Not sure what is going on.

https://github.com/godotengine/godot/assets/94742489/3ec7c39c-9ebb-40e8-adaa-40553503740a

I'm using a vm so this might be the problem

Steps to reproduce

open an empty project

Minimal reproduction project (MRP)

empty project

Calinou commented 4 weeks ago

This is a known issue with Lavapipe in Forward+/Mobile, which I can reproduce on Linux. It does not occur with llvmpipe when using the Compatibility rendering method.

It's likely an issue that should be fixed in upstream Lavapipe, as I don't think we are doing anything against the Vulkan specification when rendering the 3D editor grid.

I'm using a vm so this might be the problem

VMs don't have Vulkan hardware acceleration available (and OpenGL support is often limited to OpenGL 2.x), so you should run Godot on bare metal whenever possible (or use VFIO passthrough). It'll also be much faster.