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"

C++ Variable reference slow

Hi,

I don't know if this is a bug or working as intended. The scenario is this. I have an array in blueprint, that I pass to c++ as a reference. It is an array of structs (a lot), and in 4.7.5 there are no spikes in the unit graph. But if I update to 4.8 or 4.9, there are big spikes in the graph, event though the function doesn't do anything.

I have created a test project to illustrate what I am saying. You can generate and build the solution, test, then update to 4.9 and see the difference. Note: The funciton runs on "T".

https://github.com/kimFrost/TestCReferencePerf

The test function can be found in the level blueprint and in a c++ function library.

I have previously posted this as a question, but no one could supply and answer:

https://answers.unrealengine.com/questions/296145/c-tarray-reference-performance-slow-in-48-49.html

Product Version: UE 4.9
Tags:
more ▼

asked Sep 08 '15 at 05:28 PM in Bug Reports

avatar image

DekanTrue
28 4 7 10

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

1 answer: sort voted first

Hey DekanTrue-

I was able to test the sample project you included and have submitted a report (UE-20865) for investigation.

Cheers

Doug Wilson

more ▼

answered Sep 08 '15 at 07:16 PM

(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