How do I get rid of these artifacts?

Hello,

After I enabled Early Z Pass and Mask Material only in early z pass settings I noticed a huge performance boost because my level is very foliage heavy but I also noticed very bad and numerous artifacts.

Does anyone know how to fix these?

Have you tried a restart of the editor?

Yes and that worked perfectly. Thank you.

1 Like

You’re running out of VRAM, but I think it might be a 5.03 bug. Wait and see…?

You could also just change your foliage to not have overlapping transparencies.
All cards past the 1060 handle geometry better than transparency overlaps.
In any engine.

Obviously, having individual grass blades is likely too much geometry - for instance - but it really just depends on the content and how the art direction goes.

Run a test on your game’s default view in a field full of grass (with individual blades) to determine an approximate baseline performance based on tris count.
From there, decide how much to cull/simplify the mesh geometry.

Newer cards can get away with individual blades even in 3rd person 4k, but most players won’t have that kind of power.

If find that defining the Foliage LOD type and culling based on hardware is a great alternative to get better performance.

Additionally for anyone reading this thinking it’s a solution, keep in mind that Early Z Pass does not really work in engines from around 4.18 to 4.24 or so.