Strange culling behavior - Foliage
Hi guys, I have big problems with the performance of my scene. Usually, it runs with 100fps in an average, but when I look on the whole scene it shrinks down to 10 fps. The problem is the grass. When I hide it, everything is fine.
The culling doesn't work properly. The cull distance is measured in Unreal Units, right? Well, I set it to 1 unit (1cm) and the grass in the back disappear. Well, fair enough, this is what I thought would happen ... but the grass in the foreground is still visible.
After zooming out - several meters - the grass disappears.What could cause this and what could be a solution here? And here, this is pretty 'good' culling. Some grass clusters didn't even disappear even after 20000 units.
Thanks for your help!
asked Apr 19 '18 at 01:54 PM in Using UE4
You are probably having LOD problems. I believe your solution is in here: https://forums.unrealengine.com/development-discussion/content-creation/7941-foliage-brush-and-lod-meshes?9629-Foliage-brush-and-LOD-meshes=&highlight=foliage+lod
answered Apr 19 '18 at 01:57 PM
Okay okay, it's definitely the grass mesh, but I do not know why, to be honest. I created a new map (in the same project) and placed some grass patches. The same problem - I replaced the mesh with one of my crate mesh and it works perfectly. Now I have to get a clue what is wrong here ^^
I will be back soon with more information.
EDIT: For me, this is a bug. In case it isn't, please explain me this behavior:
First screenshot. I've painted some grass with the fresh imported grass. Culling doesn't work (well, it works, but with the described problems).
Second screenshot. I switched the mesh. Culling works as expected.
Third screenshot. I switched back and et voila ... it works for some time. After tabbing onto the desktop and back it's broken like before. It's wonderful _
It is definitely a bug - my project is broken. I started a completely new project and placed everything there. It works perfectly.
Now I have to transfer everything into a new project ... I hope this is even possible :D
Okay, an update. Now, after setting Dithered LODs to true in the material panel per hand, the dithering works ... BUT there is no change in the performance. Everything is still laggy as hell.
I've set the culling distance to 1, so no grass is drawn. FPS is still low. After hiding the whole grass instance, the performance goes to around 100fps.
Visually it's the same. In both version the grass is not rendered, but with culling there is no performance difference. Still buggy ... it seems, the foliage is still in the memory...
answered Apr 23 '18 at 08:40 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here