Tree leaves shadows kill performance

Hello

This is my whole scene

As you can see it’s quite a big scene. I’ve added some grass, turned off shadows for them and my performance has been untouched. I’ve than proceduraly created trees for the whole scene, with some bad leaves texture. Once again performance was untouched {120FPS}

However once I swapped the bad leaves texture for a 1k transparent leaf texture, my performance has gone down to 24FPS. As you can see on this image the scene doesnt have thousands of trees on this part for it to run on 24PS.

So I switched the dynamic lighting to static lighting, and that made it go to 27-30FPS, which is still not my target (60FPS). After using statGPU command, I’ve found out that it’s actually Shadow Depths value thats causing the drops, and only occurs with the leaves.

My question is, is there a way to get 60FPS on a scene like this, without having the leaves look really bad? Im also using LOD’s as you can see on some farer trees

Also could this be a hardware issue?

Specs: GTX 1650 Super 4gb
Ryzen 5 3600 OC
RAM 16GB 2133MHz DDR4
Samsung SSD 860 EVO 500GB

Thank you for all answers

1 Like

With that hardware 60fps should be feasible for a scene like this.

The biggest bang for you buck will be to adjust the LOD screen size. You can adjust it for one tree type and then copy/paste to others.

You are using billboards with the trees, right? You must do this if not already. If you bought your trees, chances are most likely they should include some billboards that will be assigned to the highest LOD level.

Besides that, you can decrease texture resolution for some gain, and adjust how far you are drawing shadows.

In a scene like this you only need one directional light - that is where you adjust the shadow resolution values - search “shadows” in the directional lights details.

Another big performance boost would come from switching to forward rendering - that does change the look a bit so you have to decide if it is worth it, but that might net 10-30 more fps.

edit: actually I shouldnt say so much about the hardware. I was using a 1060 and had scenes liek this with 60fps, however that GPU had 16gb of RAM. I am not a big hardware guy so I guess I shouldn’t give such a certain answer. I think you may be under min specs for ue4, in which case getting 60fps on a foliage heavy scene may be unrealistic. But maybe somebody who knows more can say something about that.

1 Like

Alright so I spent a long time playing around with all things you mentioned, actually managed to make things worse a few times cause Im silly lol, but in the end I was able to get 40-45FPS when looking into that specific area on screenshot, and 60FPS on all other areas of the game. I think it’s just that area that is too heavy shadows wise.

I was able to get 60FPS on that area with the forward shading, however the visuals were really bad and so I decided it was not worth it. Also it is a horror game, and only the beginning of the game is set during the day, the rest is in night and during night I get 75FPS+ all the time so I think it won’t be a problem.

Thank you very much for your help :smile:

just a quick reminder that trees usually dont grow along the surface normal :wink:

2 Likes

Haha yes I turned that off, I was just so frustrated by the poor performance I didnt focus on stuff like that :smile: But thank you