# Foliage reduces performance drastically

**URL:** <https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828>\
**Category:** World Creation\
**Tags:** unreal-engine, Foliage, slow, question\
**Created:** [January 8, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828 "2023-01-08T15:30:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![M1l0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m1l0/32/88719_2.png) [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Post date:** [January 8, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/1 "2023-01-08T15:30:01Z")

</div>

Hi there,

I am creating a forest and don’t even have that many trees, but it drops my fps from 60 to 10 when in play and looking at them. Simple grass also hurts the performance a lot.  
When I set the grass models (from quixel) to nanite, it goes from about 30 fps to 4 fps.  
Isn’t nanite supposed to improve performance?

Any advice?

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 9, 2023, 12:32am UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/2 "2023-01-09T00:32:02Z")

</div>

> [@M1l0](#):
>
> Isn’t nanite supposed to improve performance?

No. The whole engine is a dud.

Check/enable transparency in early z-pass and see if that makes any difference.

Depending on hardware, 1fps for a full forest sounds correct with respect to the current engine performance.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [January 9, 2023, 1:18am UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/3 "2023-01-09T01:18:44Z")

</div>

If your hardware specs don’t suck, you might be using the wrong settings. The number of foliage instances can easily grow to thousands for a very simple forest (grass, trees, flowers, etc.) so every instance must be optimized.

First off, are you using the engine’s foliage types? do you paint them with the foliage painter and optimize draw distance / amount per instance? are you calculating shadows for all of them or not?

If you’d place that amount of plants as unoptimized hand placed static meshes I’d not be surprised at low performance on good hardware.

---

<div class="post-metadata">

**Author:** ![TheRealBiomes](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/therealbiomes/32/1017675_2.png) [@TheRealBiomes](https://forums.unrealengine.com/u/TheRealBiomes)\
**Post date:** [January 9, 2023, 10:23am UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/4 "2023-01-09T10:23:19Z")

</div>

Nanite doesn’t cull assets, for foliage this is terrible because it will cause a huge amount of overdraw since you’re always drawing LOD0 while keeping the same need for the engine to render through so many transparent layers.

Best way to fix this is to change the way you think when making foliage for nanite. Triangles are not really a problem anymore, so you need to model any foliage as close as possible to the opacity map to minimize transparent areas, then in the shader you need to fill the opacity based on distance to the asset, in practice removing opacity after x distance. If you did a good job making geometry that has similar silhoutte to the opacity map and have good padding on your texture you shouldn’t notice too much visual difference.

If you use VSM and the foliage has WPO enabled you will also destroy performance. Ideally we would be able to have a static shadowcasting mesh so VSM can cache the shadows but don’t think this is possible with anything but maybe static meshes you placed by hand, not foliage.

---

<div class="post-metadata">

**Author:** ![M1l0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m1l0/32/88719_2.png) [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Post date:** [January 9, 2023, 4:07pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/5 "2023-01-09T16:07:00Z")

</div>

I’m using these trees: [temperate Vegetation: Spruce Forest in Props - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/interactive-spruce-forest?sessionInvalidated=true)

And a simple grass pack from Quixel Bridge.  
I am using the foliage painter (Shift + 3)  
I dragged the assets in there, adjusted the density and painted.  
Is there something I’m missing?

---

<div class="post-metadata">

**Author:** ![M1l0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m1l0/32/88719_2.png) [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Post date:** [January 9, 2023, 4:27pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/6 "2023-01-09T16:27:29Z")

</div>

If I don’t use Nanite, what are base culling distances I can start with to test this?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 9, 2023, 4:45pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/7 "2023-01-09T16:45:00Z")

</div>

Just adding my two cents worth here, but the is no ‘simple grass’ from Quixel 🙂

They’re all massively highpoly.

A simple grass mesh, would be about 200 tris.

---

<div class="post-metadata">

**Author:** ![M1l0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m1l0/32/88719_2.png) [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Post date:** [January 9, 2023, 4:57pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/8 "2023-01-09T16:57:24Z")

</div>

Well, relatively speaking for a game that should like quite realistic. There are also some fancy ones. Basic makes more sense.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 9, 2023, 5:30pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/9 "2023-01-09T17:30:54Z")

</div>

510 tris

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/8/3d8952806f8cb3d689576ca688f791cf718c5618.jpeg)

Lod0 of a MS grass mesh is about 2800 and covers about 1/8 of the area 🙂

---

<div class="post-metadata">

**Author:** ![M1l0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m1l0/32/88719_2.png) [@M1l0](https://forums.unrealengine.com/u/M1l0)\
**Post date:** [January 9, 2023, 5:34pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/10 "2023-01-09T17:34:35Z")

</div>

I was thinking about using some other assets. Where are these from if you don’t mind me asking?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 9, 2023, 5:38pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/11 "2023-01-09T17:38:49Z")

</div>

Landscape auto mat

> **[Landscape Auto Material in Environments - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/landscape-auto-material)**
>
> Boost your outdoor production using auto-painting landscape material and production-quality forest setting.

Very useable stuff, this one is only 94

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/5/ea50a0570370fcaf9727222549b23bc6b8b4092d.jpeg)

🙂

Also, this stuff is quite performant ( although higher poly )

> **[Grasses And Plants Pack in Props - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/grasses-and-plants-pack)**
>
> Grasses And Plants Pack

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [January 11, 2023, 11:04pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/12 "2023-01-11T23:04:01Z")

</div>

Depends on what the eye can see. If you are doing an airplane simulator and see massive amounts of land, you will likely set the cull distance for low poly trees to very far away, while removing most of the grass. If you are building a first person shooter where most of the map can’t be seen at once, say a city environment, you can get away with lower cull distances. try to have as few plants on screen as possible while making it look OK to the eye.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [January 11, 2023, 11:04pm UTC](https://forums.unrealengine.com/t/foliage-reduces-performance-drastically/744828/13 "2023-01-11T23:04:28Z")

</div>

Thanks, bookmarked
