# \#threads

**URL:** https://forums.unrealengine.com/tag/threads/1402.md

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

---

## [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 …

---

## [Passing data from GameThread to Render thread. ](https://forums.unrealengine.com/t/passing-data-from-gamethread-to-render-thread/2568651)

<div class="topic-metadata">

**Author:** [@Alex196](https://forums.unrealengine.com/u/Alex196)\
**Replies:** 3\
**Last updated:** [June 23, 2025, 2:35pm UTC](https://forums.unrealengine.com/t/passing-data-from-gamethread-to-render-thread/2568651 "2025-06-23T14:35:12Z")

</div>

Hello, i am looking for a way to transfer a FVector2f variable from the GameThread to the RenderThread every frame and making the variable visible/usable by a post processing material without (or with minimal) frame dela…

---

## [Threading/Plugin Issue](https://forums.unrealengine.com/t/threading-plugin-issue/2493765)

<div class="topic-metadata">

**Author:** [@Bdissa](https://forums.unrealengine.com/u/Bdissa)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 4:01pm UTC](https://forums.unrealengine.com/t/threading-plugin-issue/2493765 "2025-05-06T16:01:57Z")

</div>

I am making a mobile game, starting with android, and am currently trying to get ads working in my game. I could not figure out how to get it working correctly by myself so I eventually decided to get this plugin to esse…

---

## [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

---

## [IsInGameThread Exception thrown](https://forums.unrealengine.com/t/isingamethread-exception-thrown/1806121)

<div class="topic-metadata">

**Author:** [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Replies:** 6\
**Last updated:** [May 3, 2024, 8:31am UTC](https://forums.unrealengine.com/t/isingamethread-exception-thrown/1806121 "2024-05-03T08:31:39Z")

</div>

Hii, I’m trying to convert an audio signal using threads here’s how it works : I have an Actor named AAudioActor and when I press the vKey, I call the start imitation Function of it : void AAudioCaptureActor::StartImi…

---

## [Getting Overflow error when creating a thread](https://forums.unrealengine.com/t/getting-overflow-error-when-creating-a-thread/1789023)

<div class="topic-metadata">

**Author:** [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 12:38pm UTC](https://forums.unrealengine.com/t/getting-overflow-error-when-creating-a-thread/1789023 "2024-04-05T12:38:33Z")

</div>

Hiii, In my Character’s Blueprint, I added an event to when I press the v Key it calls this startImitation function : void UMyCaptureComponent::startImitation() { start(); } //My Capture Comp inherits from RingBuffer…

---

## [UE.5.3) Cycles64 gives inaccurate result](https://forums.unrealengine.com/t/ue-5-3-cycles64-gives-inaccurate-result/1772545)

<div class="topic-metadata">

**Author:** [@CookieSakje](https://forums.unrealengine.com/u/CookieSakje)\
**Replies:** 0\
**Last updated:** [March 26, 2024, 4:45am UTC](https://forums.unrealengine.com/t/ue-5-3-cycles64-gives-inaccurate-result/1772545 "2024-03-26T04:45:26Z")

</div>

uint32 FTestThread::Run() { uint64 tLastStampedCycle = FPlatformTime::Cycles64() while(bStop) { uint64 tCurrentTimeCycle = FPlatformTime::Cycles64(); const double DeltaTime = FPlatformTime::ToMilliseconds64(tCurr…

---

## [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…

---

## [Multiple server on one server](https://forums.unrealengine.com/t/multiple-server-on-one-server/1643700)

<div class="topic-metadata">

**Author:** [@Elites94](https://forums.unrealengine.com/u/Elites94)\
**Replies:** 4\
**Last updated:** [January 30, 2024, 11:37am UTC](https://forums.unrealengine.com/t/multiple-server-on-one-server/1643700 "2024-01-30T11:37:56Z")

</div>

Hello ! I am doing a multiplayer game and am working currently on the exports versions. Actually, my game take too much CPU on the server. So I plan to optimize it more and eventually upgrade a bit the server. But I d…

---

## [Mass Entity Processors not processing in parallel ?](https://forums.unrealengine.com/t/mass-entity-processors-not-processing-in-parallel/1297162)

<div class="topic-metadata">

**Author:** [@Nerbert.Fekkes](https://forums.unrealengine.com/u/Nerbert.Fekkes)\
**Replies:** 1\
**Last updated:** [September 22, 2023, 8:23am UTC](https://forums.unrealengine.com/t/mass-entity-processors-not-processing-in-parallel/1297162 "2023-09-22T08:23:08Z")

</div>

Hello! We’re using Mass Entities at the moment and while looking into optimizing the performance of this (as some processors were taking a lot of time), we noticed that the execution of this isn’t really done in paralle…

---

## [Feature Request: Property Access node support Interfaces](https://forums.unrealengine.com/t/feature-request-property-access-node-support-interfaces/1206470)

<div class="topic-metadata">

**Author:** [@BenVlodgi](https://forums.unrealengine.com/u/BenVlodgi)\
**Replies:** 0\
**Last updated:** [June 21, 2023, 4:31pm UTC](https://forums.unrealengine.com/t/feature-request-property-access-node-support-interfaces/1206470 "2023-06-21T16:31:09Z")

</div>

What Property Access node currently supports nested calling of functions and getting values from objects. But it doesn’t support calling interface functions on these objects. Why Without this functionality, it is impo…

---

## [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 …

---

## [Async() EAsyncExecution::TaskGraph vs EAsyncExecution::ThreadPool](https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509)

<div class="topic-metadata">

**Author:** [@undercover](https://forums.unrealengine.com/u/undercover)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 6:05am UTC](https://forums.unrealengine.com/t/async-easyncexecution-taskgraph-vs-easyncexecution-threadpool/489509 "2023-02-15T06:05:27Z")

</div>

Hi! I wonder what the difference is between using Async(EAsyncExecution::TaskGraph, ...); vs. Async(EAsyncExecution::ThreadPool, ...);. Isn’t the task graph executed through the thread pool? Which one is to prefer? Put …

---

## [How to create a task in game thread and wait for it?](https://forums.unrealengine.com/t/how-to-create-a-task-in-game-thread-and-wait-for-it/490735)

<div class="topic-metadata">

**Author:** [@jywhy6](https://forums.unrealengine.com/u/jywhy6)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 8:41am UTC](https://forums.unrealengine.com/t/how-to-create-a-task-in-game-thread-and-wait-for-it/490735 "2022-10-22T08:41:30Z")

</div>

In a plugin whose code is not on game thread, I want to use some functions from EditorAssetLibrary, which must be executed in game thread to work. I tried the following code piece, but the whole engine GUI freezes. Seem…

---

## [What threading system should I use?](https://forums.unrealengine.com/t/what-threading-system-should-i-use/415641)

<div class="topic-metadata">

**Author:** [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Replies:** 3\
**Last updated:** [October 15, 2021, 2:56pm UTC](https://forums.unrealengine.com/t/what-threading-system-should-i-use/415641 "2021-10-15T14:56:04Z")

</div>

There are numerous ways to run asynchronous code in UE4. However, I can’t find much information on them other than mentions of their existence and how to use them. Is there a spreadsheet listing their pros and cons somew…

---

## [How to specify one particular thread to execute async code?](https://forums.unrealengine.com/t/how-to-specify-one-particular-thread-to-execute-async-code/489220)

<div class="topic-metadata">

**Author:** [@somawheels](https://forums.unrealengine.com/u/somawheels)\
**Replies:** 0\
**Last updated:** [September 26, 2021, 1:26pm UTC](https://forums.unrealengine.com/t/how-to-specify-one-particular-thread-to-execute-async-code/489220 "2021-09-26T13:26:12Z")

</div>

I am using : AsyncTask(ENamedThreads::AnyBackgroundThreadNormalTask, \[parameter\]()\]{ //some async code }); to execute code async. This executes the code on various threads, and doesn’t give me complete control over w…

---

## [Is it safe to read TArray from two threads at once?](https://forums.unrealengine.com/t/is-it-safe-to-read-tarray-from-two-threads-at-once/489195)

<div class="topic-metadata">

**Author:** [@somawheels](https://forums.unrealengine.com/u/somawheels)\
**Replies:** 0\
**Last updated:** [September 25, 2021, 5:40pm UTC](https://forums.unrealengine.com/t/is-it-safe-to-read-tarray-from-two-threads-at-once/489195 "2021-09-25T17:40:29Z")

</div>

I understand its not safe fro one thread to write any data while others read it. However would it be safe for multiple threads to read TArray data at the sametime, providing no writes are happening? If so are TMaps also…

---

## [Libcurl FTP-Download incomplete](https://forums.unrealengine.com/t/libcurl-ftp-download-incomplete/482921)

<div class="topic-metadata">

**Author:** [@j.windgassen](https://forums.unrealengine.com/u/j.windgassen)\
**Replies:** 1\
**Last updated:** [July 14, 2021, 4:30am UTC](https://forums.unrealengine.com/t/libcurl-ftp-download-incomplete/482921 "2021-07-14T04:30:28Z")

</div>

I am currently trying to download a File from a public git-Repository using curl in my Unreal C++ Project. Here is the code I’m trying to execute that I derived from the FTP-Example: // This is in the .h file struct FFt…

---

## [Make thread wait until another thread has changed a variable. How?](https://forums.unrealengine.com/t/make-thread-wait-until-another-thread-has-changed-a-variable-how/485192)

<div class="topic-metadata">

**Author:** [@somawheels](https://forums.unrealengine.com/u/somawheels)\
**Replies:** 5\
**Last updated:** [July 8, 2021, 6:08pm UTC](https://forums.unrealengine.com/t/make-thread-wait-until-another-thread-has-changed-a-variable-how/485192 "2021-07-08T18:08:01Z")

</div>

I have a struct in thread1. I pass the struct to thread 2. I want thread 1 to wait until thread 2 has modified the struct. I have tried doing a while loop, which makes the thread sleep until the variable in the struct h…

---

## [URGENT: loading level freezes application. \[784\]LogAudio: Display: Waited XXX ms for audio thread.](https://forums.unrealengine.com/t/urgent-loading-level-freezes-application-784-logaudio-display-waited-xxx-ms-for-audio-thread/483471)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5ab5f476](https://forums.unrealengine.com/u/anonymous_user_5ab5f476)\
**Replies:** 0\
**Last updated:** [May 16, 2021, 6:43pm UTC](https://forums.unrealengine.com/t/urgent-loading-level-freezes-application-784-logaudio-display-waited-xxx-ms-for-audio-thread/483471 "2021-05-16T18:43:29Z")

</div>

link text Everything loaded fine up until yesterday. Works fine in editor. I have no idea what is holding up the thread.

---

## [Game stay in processes after quit](https://forums.unrealengine.com/t/game-stay-in-processes-after-quit/478944)

<div class="topic-metadata">

**Author:** [@RitorKeir](https://forums.unrealengine.com/u/RitorKeir)\
**Replies:** 0\
**Last updated:** [February 17, 2021, 6:06pm UTC](https://forums.unrealengine.com/t/game-stay-in-processes-after-quit/478944 "2021-02-17T18:06:37Z")

</div>

Hi Epic! Our testers found a bug. Game stay in processes after exit. We attached to game process and found a thread which infinitely waiting the end of GPU work with samples. Here the code: // Some samples still need…

---

## [Code running simultaneously?](https://forums.unrealengine.com/t/code-running-simultaneously/477808)

<div class="topic-metadata">

**Author:** [@KanakemitHacke](https://forums.unrealengine.com/u/KanakemitHacke)\
**Replies:** 0\
**Last updated:** [January 26, 2021, 3:09pm UTC](https://forums.unrealengine.com/t/code-running-simultaneously/477808 "2021-01-26T15:09:56Z")

</div>

Hey everyone, I have a graph that I parse and have to mark parsed nodes. For this I would just set a bool IsParsed to true and “clean” afterwards and set to false. But all players can call the function to parse the gra…

---

## [UE4 and STD::Atomic](https://forums.unrealengine.com/t/ue4-and-std-atomic/386103)

<div class="topic-metadata">

**Author:** [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 1:58pm UTC](https://forums.unrealengine.com/t/ue4-and-std-atomic/386103 "2021-01-21T13:58:29Z")

</div>

Hello, I am still new to UE4 programming, I am planning to run some threads in my game, and I am used to use std::atomic for a simple thread safe lookups. Question: Will std::atomic be appropriate to use in UE4 or t…

---

## [CPU out of sync?](https://forums.unrealengine.com/t/cpu-out-of-sync/473361)

<div class="topic-metadata">

**Author:** [@zompi2](https://forums.unrealengine.com/u/zompi2)\
**Replies:** 3\
**Last updated:** [October 27, 2020, 1:11pm UTC](https://forums.unrealengine.com/t/cpu-out-of-sync/473361 "2020-10-27T13:11:34Z")

</div>

This might be absolutely normal. There are so many background OS services that take advantage of available CPU cycles… It would be worrying if you were observing unjustified spikes while the CPU is under considerable loa…

---

## [Can I use std::thread?](https://forums.unrealengine.com/t/can-i-use-std-thread/356552)

<div class="topic-metadata">

**Author:** [@antoinegloum](https://forums.unrealengine.com/u/antoinegloum)\
**Replies:** 15\
**Last updated:** [August 18, 2020, 4:37am UTC](https://forums.unrealengine.com/t/can-i-use-std-thread/356552 "2020-08-18T04:37:45Z")

</div>

Hi, I tried to make a std::thread in UE 4.11.2 and the editor immediately crashes. It compiles and the same source code works outside Unreal in a normal VS2015 C++ project. So, I am doing something wrong or are std::thr…

---

## [Task queueing best practices](https://forums.unrealengine.com/t/task-queueing-best-practices/295396)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e1690214](https://forums.unrealengine.com/u/anonymous_user_e1690214)\
**Replies:** 3\
**Last updated:** [July 18, 2020, 10:06pm UTC](https://forums.unrealengine.com/t/task-queueing-best-practices/295396 "2020-07-18T22:06:23Z")

</div>

I’m making an in-editor tool which will frequently need to perform large processing tasks. I’d like to do them asynchronously on a separate thread (or threads), to keep the editor as responsive as possible. My assumption…

---

## [Thread are slower in cooked game](https://forums.unrealengine.com/t/thread-are-slower-in-cooked-game/463467)

<div class="topic-metadata">

**Author:** [@azukaar](https://forums.unrealengine.com/u/azukaar)\
**Replies:** 2\
**Last updated:** [April 12, 2020, 9:21pm UTC](https://forums.unrealengine.com/t/thread-are-slower-in-cooked-game/463467 "2020-04-12T21:21:48Z")

</div>

When executing a simple C++ loop in a FRunnable in the game like so, the performance are widely different from the uncooked game (Whether it’s in editor, or in right click\>launch game standalone) and cooked (whether the …

---

## [How to minimize the impact of loading a sublevel?](https://forums.unrealengine.com/t/how-to-minimize-the-impact-of-loading-a-sublevel/462010)

<div class="topic-metadata">

**Author:** [@n1lknarf](https://forums.unrealengine.com/u/n1lknarf)\
**Replies:** 3\
**Last updated:** [March 3, 2020, 10:20am UTC](https://forums.unrealengine.com/t/how-to-minimize-the-impact-of-loading-a-sublevel/462010 "2020-03-03T10:20:08Z")

</div>

Hi all, I have this one streaming sublevel with 21 overlap events controlling 5 different fog actors. I have nearly 60 references to the main character (due to the different overlap events) and I’m dragging up to 5 varia…

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