Unusually High Shader Complexity on Nanite meshes in Vulkan

I’m seeing extremely high shader complexity when using Vulkan to render Nanite meshes.

Example:
DX12: https://i.imgur.com/jK8iX1N.jpeg
Vulkan: https://i.imgur.com/QUoUCjp.jpeg

The building which is green in both pictures is not using Nanite. Is this expected behaviour?

4 Likes

I also noticed the same bug with my grass. Shader complexity greatly increased on F5 view to Red from Green with nanite grass.

1 Like

Experiencing this too with Vulkan, and this seems to not just be related to Nanite.
Noticed when dragging a simple Plane into a scene with Shader Complexity viewmode on:


And here’s a new VR template project shown with 4 different RHI settings, and with nothing else changed:

I submitted a bug report because this seems quite wrong.

To be honest, it feels more like the viewmode itself is reporting inaccurately; the performance doesn’t feel worse in Vulkan than DirectX. But I’m no expert in graphics, thus me submitting a bug report…

1 Like

im having the same problem in 5.3 with vulkan and linux. i don’t have tho option to switch to d3d
my material is super simple yet when i switched to 5.3 the performance is really bad.
i even tried to make a material that outputs a constant 0 on all pins and the performance doesn’t change at all.

with nanite

if i disable nanite for a mesh

and the overview