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"

What is the time complexity of add spline point?

Specifically using blueprints, when creating a single large spline with many points, is it best to: 1) use the function "add spline point" repeatedly, or 2) create an array of locations then use the function "set spline points."

Even better would be to know what the time complexities of these functions are? For example, if add spline point is O(n) and set spline points is also O(n) then I dont want to take O(n^2) time to create a spline when I could be doing it in linear time.

Product Version: UE 4.7
Tags:
more ▼

asked Aug 01 '15 at 01:12 AM in Blueprint Scripting

avatar image

TacoSauce
1

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

1 answer: sort voted first

Hi,

you can perform test on large amount points and compare function calls time consumption or try dive into profiler, maybe it have stats for specific function calls and their time execution https://docs.unrealengine.com/latest/INT/Engine/Performance/Profiler/index.html

p.s. don't forget mark question as answered with little gray circle button under any answer (not comment, but whole answer) when problem solved, so anyone else later can have same question and may find solution faster, if you find solution on your own, don't forget write it too

more ▼

answered Aug 01 '15 at 02:32 AM

avatar image

happyhorror
571 53 45 72

(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