x

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"

[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!

Product Version: Not Selected
Tags:
more ▼

asked Aug 14 '14 at 12:35 PM in Bug Reports

avatar image

AntonioModer
198 16 21 25

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

2 answers: sort voted first

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

Cheers, Sebastian

more ▼

answered Aug 27 '14 at 05:05 PM

avatar image AntonioModer Aug 27 '14 at 06:12 PM

Fixed in 4.4.1?

avatar image [DEV]Sebastian.Kowalczyk STAFF Aug 27 '14 at 06:17 PM

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

avatar image AntonioModer Aug 27 '14 at 06:20 PM

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

avatar image AntonioModer Aug 28 '14 at 02:21 PM
avatar image Teigaga Jan 20 '15 at 04:35 PM

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

avatar image MieszkoZ STAFF Jan 20 '15 at 04:37 PM

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

avatar image Teigaga Jan 20 '15 at 08:56 PM

Oh right, thanks

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

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 ;)

Cheers,

--mieszko

more ▼

answered Aug 14 '14 at 03:50 PM

avatar image

MieszkoZ STAFF
7.4k 225 57 414

avatar image AntonioModer Aug 14 '14 at 05:46 PM

Thanks MieszkoZ !

Heh, i use BT for my AI movement. And i create new Task_MoveTo, where call "AI MoveTo". :)

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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