[4.2.1-4.4.0] Lag (freeze) after in game accumulates in average 10 000 objects

Hello.

I enable “Show Frame Rate and Memory” from “Editor preferences” → “Miscellaneous” → “Performance”.
Then i see object count in editor in real time.

I use “AI MoveTo” BP node in my Blueprint code.
When in game “AI MoveTo” BP node called then added 1 object to objects count.
When in game accumulates in average 10 000 objects the editor freezes and after 10 second editor unfreezes and objects count that are reduced by 10 000.
And this is repeated again and again.

I think this is garbage collector clear memory from unused objects.
But garbage collector do this very-very slow.

I right?

And if I’m right, then you need to get rid of this lag.

I try this is in 4.2.1, 4.3.0 (i build from GitHub), 4.4.0 (i build from GitHub). Everywhere there is this lag.

Thanks!

Hey Antonio,

There seems to be some terribleness happening under the hood of AI Move To. We’ve filed this issue and someone will handle it, with a reasonably high priority.

You should be using BTs instead anyway :wink:

Cheers,

–mieszko

Thanks MieszkoZ !

Heh, i use BT for my AI movement. And i create new Task_MoveTo, where call “AI MoveTo”. :slight_smile:

I solve this problem for yourself.
I use the “Move to location” node, this node don’t collect garbage in memory.

Issue is fixed now. Change should be available in master branch on github soon.

Cheers,
Sebastian

Fixed in 4.4.1?

Thanks! :slight_smile:
I would like to know the link to the github for this hotfix.

Unfortunately no - I fixed it today. It should be on github (master branch) soon and it’ll be in 4.5.

the links to the github for this hotfix: https://github.com/EpicGames/UnrealEngine/commit/25e0f211b357828e3773d4ca370c6d72c7590da5
and https://github.com/EpicGames/UnrealEngine/commit/8631b76215dfde28aab922f89713da59ff976f5b

The Github link is now expired, can someone post the solution on here please? :slight_smile:

The links are just fine, you just need to be logged in the github with your UE4-subscribed account.

The links are fine, you just need to log into github with your UE4-subscribed account.

Oh right, thanks