Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Lag with high count of Instance Static Meshes

We have a project that has a pretty large map, in the map we have some dense forest, for the forest we use Instanced Static Meshes.

We spawn around 300k foliage instances on the map.

All those trees have a collision box because we are allowed to cut them to get wood.

When a tree is cut, there is a lag spike happening that last close to 1 second due to the instance being removed from the list. This seems excessive. Surely there are better ways to handle this ?

If anyone has ideas on how to improve this we would like to hear about it please.

Product Version: UE 4.20
more ▼

asked Oct 18 '18 at 08:42 PM in Everything Else

avatar image

36 7 4

avatar image Doctor_Kannon Oct 18 '18 at 08:48 PM

Use LoDs for the trees. The higher LoDs won't need collision.

That should help overall, but I can't say for certain if that will reduce the lag during instance removal.

Also, are all 300K trees in one group? Maybe break it up into sections.

In this video, the clouds are grouped into a 3x3 grid.


Edit: For LoDs, you'll need to use Hierarchical Instanced Static Meshes.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question