Multithread/Background Call to increase performance

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:


**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!

:slight_smile:

Rama