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"

TActorIterator Efficiency

Hi,

I am using the QA version of 4.4.

I noticed that over time my game would slow down, leaving it on over night would bring me to 2-3 frames per second, so I investigated why. I found that having TActorIterator in the tick functions of pawns was causing the slow down over time, and when I fixed these to be more efficient to not use TActorIterator the slow down problem disappeared.

What confuses me is that when I started the game, there was 50 actors in the scene, at some point that drops down to 49 actors, and after leaving the game overnight it would still be at 49 actors in the scene. If the number of actors stay they same, why would usiing a type-casted TActorIterator to find certain types of pawns slow down so much over time?

Product Version: Not Selected
Tags:
more ▼

asked Oct 09 '14 at 02:14 PM in C++ Programming

avatar image

vellocet
36 5 8 14

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi, there was an issue where actor iterators would keep adding redundant callbacks that would never get freed, essentially creating a memory leak. The change was fixed in this commit on github.

Let us know if this doesn't solve the problem!

more ▼

answered Oct 09 '14 at 03:49 PM

avatar image

BrɑκеPɑd STAFF
1.4k 33 22 78

(comments are locked)
10|2000 characters needed characters left
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