# Multithread/Background Call to increase performance

**URL:** <https://forums.unrealengine.com/t/multithread-background-call-to-increase-performance/28643>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 28, 2015, 11:07am UTC](https://forums.unrealengine.com/t/multithread-background-call-to-increase-performance/28643 "2015-04-28T11:07:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 28, 2015, 11:49pm UTC](https://forums.unrealengine.com/t/multithread-background-call-to-increase-performance/28643/2 "2015-04-28T23:49:16Z")

</div>

**UE4 Task Graph For Periodic Intense Calculations**

**Welcome to the forums Naocan!**

For small multi-threading tasks where you dont want to incur the overhead of creating a whole new thread, you can use UE4’s Task Graph system!

I have a different wiki on Task Graphing here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

```auto

**Task Graph vs New Thread**

The difference with task graphing is that it is for relatively short operations that you dont want to hang up the game thread with.

A new thread would be for things that are constantly running all game long in the background, and require continous CPU power.

```

**Great Use of Task Graph**

If you just need to periodically call fancy math functions that then set global vars that you then access from the game thread (or flip a bool to indicate you are done with the task), **then Task Graphing is a far better choice.**

I wrote a multi-threaded 3D AI navigation/pathfinding system from scratch that runs using the UE4 Task Graph system and it works great! FPS untouched!

🙂

Rama

---

_[View the full topic](https://forums.unrealengine.com/t/multithread-background-call-to-increase-performance/28643)._
