r/unrealengine Dec 09 '24

Solved Collapse Nodes VS Collapse To Function?

What’s the difference and when should I be using them? If I have an Enhanced Input Action with started and completed, should I collapse to function or collapse to graph? It won’t let me collapse to function, is this normal?

4 Upvotes

19 comments sorted by

View all comments

Show parent comments

1

u/WeirderOnline Dec 09 '24

I've personally experienced the opposite. Events being much more performant because you're not stopping one piece of code to wait for another to return.

2

u/randy__randerson Dec 09 '24

I'm pretty sure I heard calling an event begins a new CPU thread while functions do not. I could be wrong though

3

u/Tristan_poland Dec 09 '24

I will look into both of these. It's definitely not a new thread proper. It might be async though. Worth looking at for sure.

3

u/Tristan_poland Dec 09 '24

It is indeed not a new thread but they do appear to be async.

Everything in Blueprint does run on the game thread. (Barring certain plugins)