Distance Field Shadow, impact performance

Hello,
In my game (4.26), I have a big city that is cut in several Streaming Levels.
My problem is that I identified that the Mesh Distance Field is causing lag in the game.

When I load one of my level streaming, I have the message :
“Allocated 500x502x289 distance field atlas = 138.4Mb, with 1359 objects containing 114.7Mb backing data”

The thing is that this allocation cause a hitch.

I haven’t done anything like increasing the resolution of mesh distance field on static meshes. I have seen that I can disable it on some meshes by setting a resolution of 0 (but I have no idea which mesh is the most heavy for distance field !).

I could just disable distance field, but if I do that it will not be as beautiful as it is currently…

Another fact that I don’t understand :

  • in my sublevel 1, I have like 300 meshes, and it always cause a hitch
  • in my sublevel 2, I have almost the same number of meshes and it NEVER cause hitch (and I NEVER have the message of memory allocation !).

Would someone explain me why ?

Thank you a lot for your time !
All the best

Ok, I found the solution.
I had several pack from the marketplace. And one of them was causing the issue. It has all it meshes with a high distance field resolution ! So I turned it to 1 and then it worked.

It is hard to know if one of your mesh have a resolution greater than 1, I didn’t find any other solution than opening each mesh and verify the resolution.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.