# \#multithreading

**URL:** https://forums.unrealengine.com/tag/multithreading/2597.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Multi thread animation blueprint and anim notify in multiplayer project](https://forums.unrealengine.com/t/multi-thread-animation-blueprint-and-anim-notify-in-multiplayer-project/2655361)

<div class="topic-metadata">

**Author:** [@cdotro](https://forums.unrealengine.com/u/cdotro)\
**Replies:** 1\
**Last updated:** [May 31, 2026, 8:10pm UTC](https://forums.unrealengine.com/t/multi-thread-animation-blueprint-and-anim-notify-in-multiplayer-project/2655361 "2026-05-31T20:10:35Z")

</div>

Hi! I have implemented multi thread and ALS system in a multiplayer project. It works fine but I have an issue with anim notifies: I have noticed when a multicast function fires a montage with Anim notify, the anim notif…

---

## [How to create thread safe nodes and functions in AnimBP](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746)

<div class="topic-metadata">

**Author:** [@cridia](https://forums.unrealengine.com/u/cridia)\
**Replies:** 6\
**Last updated:** [August 9, 2025, 6:07pm UTC](https://forums.unrealengine.com/t/how-to-create-thread-safe-nodes-and-functions-in-animbp/388746 "2025-08-09T18:07:54Z")

</div>

Since I have updated to 4.15, my animation blueprint gives me warnings on pure functions from my AnimInstance class, custom anim node implementations and various functions within the animation blueprint. Since I am using…

---

## [UDP connection: "Assertion Failed:  Not on GameThread or SlateLoadingThread" ](https://forums.unrealengine.com/t/udp-connection-assertion-failed-not-on-gamethread-or-slateloadingthread/2624233)

<div class="topic-metadata">

**Author:** [@Lemon\_Yoinker](https://forums.unrealengine.com/u/Lemon_Yoinker)\
**Replies:** 1\
**Last updated:** [August 8, 2025, 9:15pm UTC](https://forums.unrealengine.com/t/udp-connection-assertion-failed-not-on-gamethread-or-slateloadingthread/2624233 "2025-08-08T21:15:12Z")

</div>

I am new to Unreal Engine and a lot of these things in general, so I have been scratching my head over this for about a week now. I am suffering a crashing error when connecting a drone over UDP to the application. My U…

---

## [FRunnables Continue When Editor Stopped](https://forums.unrealengine.com/t/frunnables-continue-when-editor-stopped/2600788)

<div class="topic-metadata">

**Author:** [@EricSambell](https://forums.unrealengine.com/u/EricSambell)\
**Replies:** 0\
**Last updated:** [July 11, 2025, 2:27pm UTC](https://forums.unrealengine.com/t/frunnables-continue-when-editor-stopped/2600788 "2025-07-11T14:27:51Z")

</div>

I was able to replicate the first part of this excellent wiki: Multithreading With FRunnable | Unreal Engine Community Wiki. It works great, the only issue is that when I stop the editor the thread continues to run (the …

---

## [How do I simulate a living world like Stellaris?](https://forums.unrealengine.com/t/how-do-i-simulate-a-living-world-like-stellaris/2533458)

<div class="topic-metadata">

**Author:** [@FinesseAndStyle](https://forums.unrealengine.com/u/FinesseAndStyle)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 12:47am UTC](https://forums.unrealengine.com/t/how-do-i-simulate-a-living-world-like-stellaris/2533458 "2025-05-30T00:47:43Z")

</div>

I’m looking to create a space game with large number of ships flying about to different systems as well as many planets with simulated economies. Think of Starsector, Bethesda style NPC scheduling and Stellaris. My goa…

---

## [How do I setup FRunnable threads that notify game thread on completion?](https://forums.unrealengine.com/t/how-do-i-setup-frunnable-threads-that-notify-game-thread-on-completion/1732669)

<div class="topic-metadata">

**Author:** [@MikeS\_R](https://forums.unrealengine.com/u/MikeS_R)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 7:17am UTC](https://forums.unrealengine.com/t/how-do-i-setup-frunnable-threads-that-notify-game-thread-on-completion/1732669 "2025-02-14T07:17:49Z")

</div>

I’m trying to make my own “thread pool” where I would have permanent couple of threads that will be used to generate mesh data for my grid chunks in my game and this is my current setup: UpdateChunkThread.h struct FCom…

---

## [Call non thread safe function in thread safe](https://forums.unrealengine.com/t/call-non-thread-safe-function-in-thread-safe/2132967)

<div class="topic-metadata">

**Author:** [@NajwanAzhiim.M](https://forums.unrealengine.com/u/NajwanAzhiim.M)\
**Replies:** 0\
**Last updated:** [November 18, 2024, 2:55pm UTC](https://forums.unrealengine.com/t/call-non-thread-safe-function-in-thread-safe/2132967 "2024-11-18T14:55:47Z")

</div>

I have a question, in game animation sample there are many function in abp using thread safe, there is an idea to call non thread safe function in thread safe

---

## [Multithreading and Performance in Unreal](https://forums.unrealengine.com/t/multithreading-and-performance-in-unreal/1216417)

<div class="topic-metadata">

**Author:** [@Ayliroe](https://forums.unrealengine.com/u/Ayliroe)\
**Replies:** 14\
**Last updated:** [October 26, 2024, 5:40pm UTC](https://forums.unrealengine.com/t/multithreading-and-performance-in-unreal/1216417 "2024-10-26T17:40:17Z")

</div>

There’s a criminal lack of condensed documentation on how to implement actually useful multithreading in Unreal, and also a general difficulty to find a good overview of practices that lead to performant code, so here’s …

---

## [Multithreading a Custom Landscape](https://forums.unrealengine.com/t/multithreading-a-custom-landscape/2014852)

<div class="topic-metadata">

**Author:** [@aMustachedPotato](https://forums.unrealengine.com/u/aMustachedPotato)\
**Replies:** 4\
**Last updated:** [September 22, 2024, 8:46pm UTC](https://forums.unrealengine.com/t/multithreading-a-custom-landscape/2014852 "2024-09-22T20:46:42Z")

</div>

The Problem I’m creating a landscape using an InstancedStaticMeshComponent using noise. The calculations were taking up too much of the game thread, so I decided to put it on a separate thread. The problem seems to be t…

---

## [Multithreading function that runs on all logic threads except Game Thread](https://forums.unrealengine.com/t/multithreading-function-that-runs-on-all-logic-threads-except-game-thread/1815443)

<div class="topic-metadata">

**Author:** [@Sitiana](https://forums.unrealengine.com/u/Sitiana)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 1:35am UTC](https://forums.unrealengine.com/t/multithreading-function-that-runs-on-all-logic-threads-except-game-thread/1815443 "2024-06-20T01:35:52Z")

</div>

Hello Devs, I’m working on some things that require millions of traces and for that I need to use multithreading. The problem is that I need to have a function that is not blocking Game Thread, but is using all other l…

---

## [How to adapt "IsValid" node logic for a thread safe environment?](https://forums.unrealengine.com/t/how-to-adapt-isvalid-node-logic-for-a-thread-safe-environment/1167647)

<div class="topic-metadata">

**Author:** [@devmonkey](https://forums.unrealengine.com/u/devmonkey)\
**Replies:** 2\
**Last updated:** [May 24, 2024, 4:04pm UTC](https://forums.unrealengine.com/t/how-to-adapt-isvalid-node-logic-for-a-thread-safe-environment/1167647 "2024-05-24T16:04:57Z")

</div>

I have some logic in my Event Graph that needs to be moved to the BlueprintThreadSafeUpdationAnimation function (like how Lyra works). I have a section that uses e.g. Try Get Pawn Owner → Get Component by Class → Is Val…

---

## [How to use thread safe container in UE5](https://forums.unrealengine.com/t/how-to-use-thread-safe-container-in-ue5/1819504)

<div class="topic-metadata">

**Author:** [@Sygono](https://forums.unrealengine.com/u/Sygono)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 5:19pm UTC](https://forums.unrealengine.com/t/how-to-use-thread-safe-container-in-ue5/1819504 "2024-04-24T17:19:35Z")

</div>

Hi, I’m new to UE5 and trying to make a simplest multithreading function. void AThreadTester::RunStep3() { int32 NumThreads = 20; // Number of threads to create // Array to hold the promises for each thread …

---

## [TPromise Destructor Error After Closing Editor](https://forums.unrealengine.com/t/tpromise-destructor-error-after-closing-editor/1788994)

<div class="topic-metadata">

**Author:** [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 10:19am UTC](https://forums.unrealengine.com/t/tpromise-destructor-error-after-closing-editor/1788994 "2024-04-05T10:19:28Z")

</div>

Hi, I have a question about TPromise. I am working on LibHv based HTTP server implementation to UE5. I have a an UCLASS and it has a TPromise\<int\> Promise; I set it’s value with a function which is inside a member fun…

---

## [Making DeltaTime in FRunnable](https://forums.unrealengine.com/t/making-deltatime-in-frunnable/1771151)

<div class="topic-metadata">

**Author:** [@CookieSakje](https://forums.unrealengine.com/u/CookieSakje)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 10:16am UTC](https://forums.unrealengine.com/t/making-deltatime-in-frunnable/1771151 "2024-03-25T10:16:26Z")

</div>

std::chrono::steady\_clock::time\_point PreviousTime; // uint32 FTestThread { while(!Stop) { const std::chrono::steady\_clock::time\_point tClock\_Start = std::chrono::steady\_clock::now(); const double DeltaTime = std::c…

---

## [Stop UI freezing while actors are spawned?](https://forums.unrealengine.com/t/stop-ui-freezing-while-actors-are-spawned/1540649)

<div class="topic-metadata">

**Author:** [@jm94949](https://forums.unrealengine.com/u/jm94949)\
**Replies:** 0\
**Last updated:** [December 20, 2023, 2:30pm UTC](https://forums.unrealengine.com/t/stop-ui-freezing-while-actors-are-spawned/1540649 "2023-12-20T14:30:09Z")

</div>

I am currently spawning in actors during runtime upon the click of a UMG widget button (this could be just a few actors or thousands, so either takes a few seconds or many more). I would like a loading screen to appear w…

---

## [TAtomic deprecated?](https://forums.unrealengine.com/t/tatomic-deprecated/770207)

<div class="topic-metadata">

**Author:** [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 3:39am UTC](https://forums.unrealengine.com/t/tatomic-deprecated/770207 "2023-10-19T03:39:43Z")

</div>

Hello, I’ve just learned C++ multithreading and want to practice the basics in Unreal. Reading the 5.1 documents, I see the TAtomic is deprecated. Does anyone know any Unreal alternative or what is planned to replace …

---

## [Plugin Task Failed: Cannot open include file: 'Runnable.h': No such file or directory. (Plugin uses Multi-threading)](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545)

<div class="topic-metadata">

**Author:** [@El-Magic16](https://forums.unrealengine.com/u/El-Magic16)\
**Replies:** 3\
**Last updated:** [August 9, 2023, 7:18am UTC](https://forums.unrealengine.com/t/plugin-task-failed-cannot-open-include-file-runnable-h-no-such-file-or-directory-plugin-uses-multi-threading/449545 "2023-08-09T07:18:30Z")

</div>

I want to package my plugin for UE 4.20 and unreal cannot find Runnable.h? I’m really confused because when I compile this normally I get no compile errors, but when I go to package the plugin for use in other projects, …

---

## [The best way to create and manage threads on Unreal](https://forums.unrealengine.com/t/the-best-way-to-create-and-manage-threads-on-unreal/1191025)

<div class="topic-metadata">

**Author:** [@AntonioPR](https://forums.unrealengine.com/u/AntonioPR)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 7:54pm UTC](https://forums.unrealengine.com/t/the-best-way-to-create-and-manage-threads-on-unreal/1191025 "2023-06-06T19:54:33Z")

</div>

Hi, an Unreal C++ newbie here. I’m trying to create a thread to run some task, to avoid using the typical if on the tick event and keep it disabled for performance. I have worked with threads on C++, but not on Unreal …

---

## [FCriticalSection not working reliably?](https://forums.unrealengine.com/t/fcriticalsection-not-working-reliably/1162453)

<div class="topic-metadata">

**Author:** [@MaxPower42](https://forums.unrealengine.com/u/MaxPower42)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 12:24pm UTC](https://forums.unrealengine.com/t/fcriticalsection-not-working-reliably/1162453 "2023-05-11T12:24:53Z")

</div>

I am new to multi-threading. I am trying to reserve sectors of voxels being worked on for one Task/Thread at a time by using an FCriticalSection (aka Mutex) as a private member of each sector. I made sure it can only be …

---

## [Low performance after packaging](https://forums.unrealengine.com/t/low-performance-after-packaging/470981)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4a318649](https://forums.unrealengine.com/u/anonymous_user_4a318649)\
**Replies:** 1\
**Last updated:** [March 11, 2023, 3:10am UTC](https://forums.unrealengine.com/t/low-performance-after-packaging/470981 "2023-03-11T03:10:18Z")

</div>

I am making a plugin using multi-threading. In the editor, I checked that it worked, but when I packaged it for testing, I found a problem. I couldn’t check the main game thread, but at least the multithreaded performan…

---

## [Use std::mutex instead of CRITICAL\_SECTION in FCriticalSection on Windows platforms?](https://forums.unrealengine.com/t/use-std-mutex-instead-of-critical-section-in-fcriticalsection-on-windows-platforms/735232)

<div class="topic-metadata">

**Author:** [@FLake2022](https://forums.unrealengine.com/u/FLake2022)\
**Replies:** 0\
**Last updated:** [December 24, 2022, 8:12pm UTC](https://forums.unrealengine.com/t/use-std-mutex-instead-of-critical-section-in-fcriticalsection-on-windows-platforms/735232 "2022-12-24T20:12:50Z")

</div>

Thanks for the Unreal team do these incredible works! Just a little advise: Can we change the implementation of FCriticalSection on Windows platforms? Since std::mutex is faster than WIN32’s CRITICAL\_SECTION in latest…

---

## [Batch FBX import](https://forums.unrealengine.com/t/batch-fbx-import/456269)

<div class="topic-metadata">

**Author:** [@Sean.Sedlak](https://forums.unrealengine.com/u/Sean.Sedlak)\
**Replies:** 2\
**Last updated:** [October 16, 2022, 7:20am UTC](https://forums.unrealengine.com/t/batch-fbx-import/456269 "2022-10-16T07:20:38Z")

</div>

I am attempting to import 10s of thousands of FBX static meshes into a project. I am importing them in using a batch script which is importing the FBX correctly to the project. The issue I am having is that it is only …

---

## [Python Multithreading in UE4](https://forums.unrealengine.com/t/python-multithreading-in-ue4/488546)

<div class="topic-metadata">

**Author:** [@Saucy\_Sells](https://forums.unrealengine.com/u/Saucy_Sells)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 7:49pm UTC](https://forums.unrealengine.com/t/python-multithreading-in-ue4/488546 "2021-09-08T19:49:42Z")

</div>

I’m creating a plugin in C++ and calling a Python script from my C++ code. This is working fine for the most part, but my python script was using the joblibs library to parallelize a certain task, and UE4 seems to hate t…

---

## [Performance declines after packaging](https://forums.unrealengine.com/t/performance-declines-after-packaging/470933)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4a318649](https://forums.unrealengine.com/u/anonymous_user_4a318649)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 2:51am UTC](https://forums.unrealengine.com/t/performance-declines-after-packaging/470933 "2020-09-07T02:51:11Z")

</div>

I am making a plugin using multi-threading. In the editor, I checked that it worked, but when I packaged it for testing, I found a problem. I couldn’t check the main game thread, but at least the multithreaded performa…

---

## [Unreal Interface and parallelization](https://forums.unrealengine.com/t/unreal-interface-and-parallelization/454754)

<div class="topic-metadata">

**Author:** [@Norbert\_Ozdoba](https://forums.unrealengine.com/u/Norbert_Ozdoba)\
**Replies:** 1\
**Last updated:** [September 5, 2019, 12:01pm UTC](https://forums.unrealengine.com/t/unreal-interface-and-parallelization/454754 "2019-09-05T12:01:17Z")

</div>

Hello. It will be very convenient for me to use Unreal Interfaces as a part of parallel task in C++. Is it thread safe task, or I am not able to do that ? If I can’t do that, is there a way to expose anything to BP that …

---

## [How can I call ENQUEUE\_UNIQUE\_RENDER\_COMMAND\_ONEPARAMETER in another thread?](https://forums.unrealengine.com/t/how-can-i-call-enqueue-unique-render-command-oneparameter-in-another-thread/335760)

<div class="topic-metadata">

**Author:** [@windywang](https://forums.unrealengine.com/u/windywang)\
**Replies:** 1\
**Last updated:** [August 13, 2019, 7:18am UTC](https://forums.unrealengine.com/t/how-can-i-call-enqueue-unique-render-command-oneparameter-in-another-thread/335760 "2019-08-13T07:18:26Z")

</div>

I want to call ENQUEUE\_UNIQUE\_RENDER\_COMMAND\_ONEPARAMETER in another thread(not game thread). Sometimes it works, but mostly crashed at: void FRHICommandListBase::WaitForDispatch() { check(IsImmediate() && IsInRender…

---

## [Nested ParallelFor](https://forums.unrealengine.com/t/nested-parallelfor/452894)

<div class="topic-metadata">

**Author:** [@NuclearNadal](https://forums.unrealengine.com/u/NuclearNadal)\
**Replies:** 0\
**Last updated:** [July 26, 2019, 10:46pm UTC](https://forums.unrealengine.com/t/nested-parallelfor/452894 "2019-07-26T22:46:47Z")

</div>

How do I parallelize the following code using ParallelFor: \`const TMap \< int32, TSet \< int32 \> \> map; for(int i=0;i\< map.Num();++i) { for (int j=0;j\< map\[i\].Num();++j) { //do something } }\` using ParallelFor on …

---

## [Using cycle counters in multithreaded function](https://forums.unrealengine.com/t/using-cycle-counters-in-multithreaded-function/438623)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_13399bb2](https://forums.unrealengine.com/u/anonymous_user_13399bb2)\
**Replies:** 0\
**Last updated:** [November 30, 2018, 5:01pm UTC](https://forums.unrealengine.com/t/using-cycle-counters-in-multithreaded-function/438623 "2018-11-30T17:01:15Z")

</div>

Lets say I have a function: void fun(){ SCOPE\_CYCLE\_COUNTER(STAT\_fun); ... Do something } But fun will be getting called by multiple threads at the same time. Stat will thus complain about multiple threads usin…

---

## [Async task crash Editor](https://forums.unrealengine.com/t/async-task-crash-editor/436371)

<div class="topic-metadata">

**Author:** [@enearle](https://forums.unrealengine.com/u/enearle)\
**Replies:** 0\
**Last updated:** [October 25, 2018, 9:57pm UTC](https://forums.unrealengine.com/t/async-task-crash-editor/436371 "2018-10-25T21:57:36Z")

</div>

Ok, so I think I understand things better now. Though, for some reason, I still can’t get my FAutoDeleteAsyncTask to run perpetually. Is there a way to allocate TArray to the heap?Edit: Nevermind it is on the heap by de…

---

## [Linetrace on multiple threads](https://forums.unrealengine.com/t/linetrace-on-multiple-threads/427622)

<div class="topic-metadata">

**Author:** [@Michel\_Nijland](https://forums.unrealengine.com/u/Michel_Nijland)\
**Replies:** 0\
**Last updated:** [June 18, 2018, 10:45am UTC](https://forums.unrealengine.com/t/linetrace-on-multiple-threads/427622 "2018-06-18T10:45:52Z")

</div>

Currently I am trying to use line traces on multiple threads but sometimes it is breaking on: TArray Tags = Hitresult-\>GetComponent()-\>ComponentTags Could this be because of the multiple threads accessing the HitResult…

[Next page](https://forums.unrealengine.com/tag/multithreading/2597.md?match_all_tags=true&page=1&tags%5B%5D=multithreading)
