I’m having some trouble creating a forest for a large scale environment.
Basically I have made a terrain about the size of 10 x 10 kilometers that needs a lot of trees and other foliage. For some reason, as soon as I paint an area with some foliage, be it grass or trees (taken from the Nature mega pack) the FPS dramatically decreases, and I mean a lot. Without foliage the scene runs at 70+ FPS. With foliage it runs max 30 FPS, and with a decent amount of foliage that actually makes the scene look like a forrest I may be lucky if I get 2 FPS.
First I thought this was an LoD issue, but these assets have all been pre-made, and if I turn down the culling distance to 1 so that all foliage disappears, there’s no improvement in performance whatshowever, even though not a single plant is rendered.
The weird thing is, the Nature Mega pack comes with an example scene that contains loads of grass and trees. Almost the entire scene is covered with it. Yet it runs marvelous with a solid framerate. I can’t for the life of me figure out what this scene does differently opposed to mine. My scene contains way less foliage and it’s a slideshow. Even if I bombard the example scene with thousands of plants using the foliage painter the performance barely decreases only until I reach a ridiculous amount of plants.
I also tried using smaller terrain meshes that overlap but performance wise it’s no difference.
Can anyone give me some insight on why my performance is so bad? 30 FPS is unacceptable for me considering 98% of the game’s mechanics still need to be put in. I’m running on an GTX 970, 8 Gig of RAM and an i7 processor of 2.8 Ghz. Engine version 4.9.2.
There’s one other thing I cannot figure out that I might as well mention right now;
In the example scene of the Nature Mega Pack, all trees are individual objects and aren’t placed using the foliage tool. Performance wise it seems to run a bit better, but the trees also have collisions which they don’t have when added as foliage.
Is there a way to paint objects on the terrain without using the foliage tool? I can hardly imagine they placed all of those trees by hand. The advantage of this method besides performance and collisions is that the position and rotation of each individual tree can be manually adjusted.
I did read about SpeedTree, but it’s too expensive for me to have another montly subscription.