# Bug: Landscape Grass Takes Forever To Load

**URL:** <https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386>\
**Category:** World Creation\
**Tags:** unreal-engine, Foliage, Landscape, grass, question\
**Created:** [October 6, 2015, 8:48am UTC](https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386 "2015-10-06T08:48:46Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![E-CO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@E-CO](https://forums.unrealengine.com/u/E-CO)\
**Post date:** [November 23, 2022, 6:47am UTC](https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386/21 "2022-11-23T06:47:30Z")

</div>

Hi,

Your solution seems to be exactly what I’m looking for but I have no idea how to implement it !

How do you create those files YourProject.build.cs, LFLandscapeGrassHack.h and LandscapeGrassHacK.cpp ? With notepad or any other text editor I presume ?

Where do you put those files in order they will be loaded at project startup ?

I’m pretty new for this kind of stuff on unreal, a little help will be greatly appreciated !

Thanks.

---

<div class="post-metadata">

**Author:** ![E-CO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@E-CO](https://forums.unrealengine.com/u/E-CO)\
**Post date:** [November 23, 2022, 1:40pm UTC](https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386/22 "2022-11-23T13:40:22Z")

</div>

Hi, Would you share how you did put this in place ?

---

<div class="post-metadata">

**Author:** ![E-CO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@E-CO](https://forums.unrealengine.com/u/E-CO)\
**Post date:** [November 29, 2022, 9:44am UTC](https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386/23 "2022-11-29T09:44:31Z")

</div>

Hi Kaspi,

I tried to implement your solution but I get a lot of errors. Would you explain more in details how you did it ? I’m a beginner with all the C++ stuff. Thanks

---

<div class="post-metadata">

**Author:** ![Skowroshima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skowroshima/32/493792_2.png) [@Skowroshima](https://forums.unrealengine.com/u/Skowroshima)\
**Post date:** [August 12, 2023, 7:07pm UTC](https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386/24 "2023-08-12T19:07:03Z")

</div>

I found that the UpdateGrass(,true) method worked, but loaded ALL grass for a landscape, regardless of distance. This had a negative impact on my performance, instead I was able to find this setting which speed up grass generation at the start, but still accounted for camera position.

```auto
	UWorld* World = GetWorld();
	ULandscapeSubsystem* LandscapeSubsystem = World ? World->GetSubsystem<ULandscapeSubsystem>() : nullptr;
	LandscapeSubsystem->PrioritizeGrassCreation(true);

```

[Previous page](https://forums.unrealengine.com/t/bug-landscape-grass-takes-forever-to-load/334386.md?page=1)
