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"

Tick and input actions order of execution

I was wondering about the order of execution concerning ticking and inputactions. Specifically I have an input action that causes the recalculation of a motor vector. This motorvector is added to the movementvector and the movement is then applied, each tick.

Is it possible that the tick continues doing whatever it's doing without ever waiting for whatever the inputaction does to finish? I don't know much about threading but does tick have its own thread possibly?

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked Apr 27 '15 at 12:21 PM in C++ Programming

DanaFo gravatar image

DanaFo
219 11 20 28

Rockseller gravatar image Rockseller Sep 05 '15 at 11:11 PM

Any answer to this?

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

1 answer: sort voted first

Ticks are executed asychronically (if multithreading is on) in groups called tick groups, here you got list of them (saddly this enum dissapered from API refrence so link is to github):

https://github.com/EpicGames/UnrealEngine/blob/311e18ff369078e192a83f27834b45bdb288168a/Engine/Source/Runtime/Engine/Classes/Engine/EngineBaseTypes.h#L42

If one group is finished the other one is executed. You can switch tick group of invidual actor with this function:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/SetTickGroup/index.html

You can also define invidual actors which need to be ticked before tick is triggered in specific actor

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AActor/SetTickPrerequisite/index.html

This way you can control order of actor ticking.

As for input i'm not sure, it probably updated before ticking is started. There function that let you check if specific button is pressed at the moment:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/APlayerController/IsInputKeyDown/index.html

Which let you order up input checking too

more ▼

answered Sep 06 '15 at 04:23 AM

Shadowriver gravatar image

Shadowriver ♦
24.3k 885 116 1009

(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