# Macros vs. Functions

**URL:** <https://forums.unrealengine.com/t/macros-vs-functions/319437>\
**Category:** Blueprint\
**Tags:** macro, branch, unreal-engine, Performance, function, question, Blueprint\
**Created:** [May 22, 2015, 11:13am UTC](https://forums.unrealengine.com/t/macros-vs-functions/319437 "2015-05-22T11:13:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [May 22, 2015, 11:13am UTC](https://forums.unrealengine.com/t/macros-vs-functions/319437/1 "2015-05-22T11:13:56Z")

</div>

Hi folks,

please help me understanding what shall i prefer: macros or functions.

I have already read this article: [link text](https://answers.unrealengine.com/questions/30834/whats-the-difference-between-blueprint-macros-and.html)

I am very familiar with macros and functions, but that is the problem 😃

I can change almost every macro into a function and reverse.

For example i can realize a branch in a macro by multiplying the forwarding values with the boolean value and adding them together, so the sum is always the value that i need depending on the boolean value.

When i need delays or other “time” nodes, the solution is clear: macro.

But when i just putting values together with a bunch of branches, i am hesitating: macro or functions?

Hope, anybody can give me the final guideline, so that i am not having decision difficulties anymore 😃

Thanks in advance

PS: What is better when it comes to perfromance

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d9ba6e93](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d9ba6e93](https://forums.unrealengine.com/u/anonymous_user_d9ba6e93)\
**Post date:** [December 18, 2016, 6:53am UTC](https://forums.unrealengine.com/t/macros-vs-functions/319437/2 "2016-12-18T06:53:29Z")

</div>

Short answer:

Neither is significantly different in terms of performance. There’s a large programming difference when it comes to how macros and functions work and compile. However, in blueprints, there’s not much difference; just use functions and don’t worry about macros.

---

<div class="post-metadata">

**Author:** ![J\_Manoel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@J\_Manoel](https://forums.unrealengine.com/u/J_Manoel)\
**Post date:** [February 21, 2018, 1:51am UTC](https://forums.unrealengine.com/t/macros-vs-functions/319437/3 "2018-02-21T01:51:23Z")

</div>

> **[What's the difference between Blueprint Macros and Blueprint Functions?](https://forums.unrealengine.com/questions/30834/whats-the-difference-between-blueprint-macros-and.html)**
>
> They both seem to do the same thing in the end. When should I use a function and when should I use a function?
