[UE5] Optimise Nanite Materials : how to reduce / optimise this?

Hello ! Two questions :

  1. Is combining merging nanite mesh have any usefull effect for performance now ?
    Let’s take an armory with a lot of books, should we merge as before for optimisation ? or this is useless ?

  2. I’ve see on my stat gpu a line i try to optimise, this is “Nanite Materials” : what cause this line to take 3ms ? How we can improve this ? reducing materials amount ? is using virtual texture can help ?

Thanks !

Most likely, yes. Each material in the scene incurs a drawcall cost, so the fewer materials you have the better.

Hum… and virtual texture by loading only the material we need can help with this ?

Like i’ve got the feeling that materials are loaded even if the mesh is occlued (but if i’m close to him)

I don’t think virtual textures will matter, that is more of a memory optimization. You need to reduce the number of materials you use.

When I last tested it, it seemed like only the materials that were within the camera frustum impacted performance, so it may not necessarily be every material in the scene, just the ones in the direction of the camera.

You’d have to try doing a stress test