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. 

Editor freeze/memory leak when having many array values

How to reproduce:

  1. Create a struct that contains an array of Transforms

  2. Create a DataTable of this struct

  3. In a new Blueprint, generate large amount (let's say 5-10k) of Transforms, e.g. by For Loop in Construction Script and add all the generated transforms into a public array variable (to be able to Copy the values from editor)

  4. Place the blueprint into a scene and in its details panel right click on the transform array variable (it should have many generated transfom values inside) and click Copy.

  5. Create a new row in the DataTable and right click -> Paste the values into it.

  6. This action will cause a major lag, in my case freezing my whole PC for 1-2 minutes. During the freeze, RAM usage peaks incredibly high, it takes almost all of my 8GB memory.

When pasting these values to e.g. a text file, there is no lag at all. Why it behaves differently with DataTable and causes this big freeze? The freeze will appear also when re-opening the saved DataTable, but no freeze when we close it. Why does it need so much RAM to only paste/display the values? This looks like some memory leak...

BTW. I'm not the only one experiencing the major slowdown when having many values in blueprints: https://forums.unrealengine.com/showthread.php?131785-Storing-large-lists-(arrays)-in-blueprints


Product Version: UE 4.14
more ▼

asked Dec 26 '16 at 05:07 PM in Bug Reports

avatar image

2k 157 153 207

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

1 answer: sort voted first

Hi Slavq,

Yeah, this is expected when dealing with really large numbers of values. The severity of the lag is of course dependent on your hardware but there isn't really a way to avoid it using the workflow you described. But it also seems that you would only need to do it once per Data Table you create.

As everynone explains in that Forum thread, it would be best to use the .csv file method when dealing with this many Member Variables.



more ▼

answered Jan 04 '17 at 08:28 PM

avatar image

41.1k 1009 183 493

(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