Hi i hope someone can help me with this problem:
Iam try to make trees harvestable and yes its working, but it gives me a huge fps drop / lag when i try to remove a Tree Foliage Instance (cutting down a tree) - this fps drop multiplies with the count of trees and foliage instances in my level
Does anyone know any work arround or possible fix how to do this better using the foliage tool? (its a very large map, it would be impossible to place every mesh by hand)
This happens everytime when the engine convert the instance back to a mesh to destroy it
Can you maybe post a screenshot of the Unreal Frontend Profiler tab running at the time you are cutting the trees?
I mean full-screen of the profiler with details of which tasks are taking the most milliseconds.
Perhaps that could give us a way of identifying the culprit.
Did you find a reliable solution ? I have the same problem and I donât know what to do. When I use the âremove instanceâ in a blueprint, the CPU stalls. My profile data look exactly the same as yours !
I tried to move it and realized that the âphysicsâ are stressing. I think itâs having a hard time re-adjusting the collisions. Weird, since some of the resource foliage donât take physics collisions.
I managed to reduce the lag by shrinking the Tile Size and increasing the Unique Tiles number so it wonât really look tiled.
Iâm wondering if my world is âslicedâ enough (world composition). A sub-level âtileâ is ~1500m long.
Iâm suffering with the same problem, couldnât find any topic related to this issue either. If there are too many foliage instances in the game, removing foliage instances or any instance in the game causes FPS drops. For example, Iâm using hierarchical instance mesh for my building system. If I build or remove a building part in the environment map which is full of foliages, it causes huge FPS drops even though I donât touch foliage instances.
Sounds to me like this issue isnât with foliage, but with the BETA procedural stuff?
ââââin which case the problem is both the fact its still in Beta after ages, and the fact that it doesnât take kindly to BP when GC is involved.
you should probably script a remove function in Cpp to call in BP.
or just stick to using foliage.
Iâve never checked that before. Iâm working on other things right now but Iâll use profiler and try to figure out whatâs going on soon. Iâll share my results.