Foliage quality low

Some time ago, i checked or unchecked some box that was like “more foliage performance, lower quality”, and now i can’t find it to turn it back to quality D:

My foliage quality is after building light now very bad, no matter what lightmap resolution i set for the foliage meshes. Help please!
no matter if foliage casts shadows, or not, the quality is always like this with those dark parts. lightmap resolution is set to 4, but even 64 makes no difference.