# Penalty for using functions to make blueprints easier to follow

**URL:** <https://forums.unrealengine.com/t/penalty-for-using-functions-to-make-blueprints-easier-to-follow/103970>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [December 16, 2017, 9:29pm UTC](https://forums.unrealengine.com/t/penalty-for-using-functions-to-make-blueprints-easier-to-follow/103970 "2017-12-16T21:29:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_daa7817f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_daa7817f1](https://forums.unrealengine.com/u/anonymous_user_daa7817f1)\
**Post date:** [December 16, 2017, 9:29pm UTC](https://forums.unrealengine.com/t/penalty-for-using-functions-to-make-blueprints-easier-to-follow/103970/1 "2017-12-16T21:29:38Z")

</div>

To achieve the effects I want in the HUD (and other places), I find I am reusing all or most of the variables.

This can become visually messy and hard to follow. But if I put content into functions and link input to Return Node. I can daisy-chain these functions, which simplifies the main blueprints, making them easier to follow and trouble-shoot. This is especially important if I change the variable values for subsequent use.

Before I commit to the function approach, I’d like an idea of the performance penalty.

For example, I need to redraw some textures:

[ATTACH=JSON]{“data-align”:“none”,“data-size”:“full”,“data-tempid”:“temp\_125213\_1513458358819\_322”,“title”:“Function1.jpg”}[/ATTACH]  
https://forums.unrealengine.com/core/image/gif;base64

I am reusing OffsetX, OffsetY and Scale. But if I put the DrawTexture into a function, the function is messy (but understandable) and the main blueprint is clean and easy to follow.

Does anyone have an idea of the performance penalty for this approach?

 ![5fc836337db76f0e0ac3645680f20dc4f388a7af.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/c/5fc836337db76f0e0ac3645680f20dc4f388a7af.jpeg)
