Foliage and Edges flickering in the distance

291249-ezgif-3-f4e94775f6fa.gif

I have a weird problem, the foliage/static meshes in my game are flickering very very fast.

After 2 days I’m lost, I don’t know how to fix it, besides changing the material to Unlit.

I have a Post Process Toon Shader involved, but removing it doesnt stop the flickering.
Changing Static Mesh bounds didnt help.
Removing the light, changing the Materials didnt work either.
Reducing the Lightmap Resolution didn’t do anything.
Changing the mesh to tris only didn’t change anything.
Changing Anti-Aliasing from TemporalAA to none did help, but the edges are extremly ugly, which is why I can’t disable it without making everything hella ugly.

It doesn’t flicker in wireframe mode or unlit*

Please help, I can give any information you need.
This has been very exhausting to only change parameters for two whole days without accomplishing anything.

Shouldn’t the foliage have culled by that point? Maybe you’re having problem just because you’re trying to draw at such a huge distance…