# Wait For Task taking too long in Development Build

**URL:** <https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, question\
**Created:** [August 5, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909 "2024-08-05T14:06:20Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 5, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/1 "2024-08-05T14:06:20Z")

</div>

Hello Everyone,

I am facing a problem from last one week that is when i package my game as development build and run that on device the fps goes down very very low whereas when i package my game as shipping build the performance comes out to be very Good.

I am testing my game on mobile although if i create a new project and package that as a development build it works almost same as this build.

In order to check if the performance is reducing due to some assets in my level I created a new default level which have nothing in it. I even disabled the character and set the game mode to GameModeBase. Even after that the Framerate are same as 5-10 fps.

After doing research I got able to run Unreal Insight workflow for mobile Game and after analyzing the .utrace file I got to know that Wait for task is taking almost all the time. But I am not able to identify why this is too much.

 ![WhatsApp Image 2024-07-24 at 17.03.18_f9c3b993](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/0/7008979de215f206a543836bb4d2e912e5488a20.jpeg)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/d/d8dcf5f3b83488dd03b44b8fcca9c128be283406.png)

I am attaching the .utrace file.  
[20240805\_185550.utrace](https://forums.unrealengine.com/uploads/short-url/h7cK4buBmjXFhoMIoyJEWTUMids.utrace) (4.0 MB)

Any help, no matter how small, is greatly appreciated !

Update- I have now checked new blank projects in 5.3.2 and 5.4.3 and the results I got is that in 5.3 (50-60fps) the game is working perfectly whereas in 5.4.3 it’s still laggy (5-10fps) and wait for task taking a lot of time.

Update-2 Till now i concluded that this a engine bug which comes only on low end mobile devices. I asked my friend to package a new project on his pc and share the apk with me. when he tested the game on his mobile which is a good device, it was giving good 60fps performance whereas when i tested that on my mobile which is about 5 year old the fps are low as 10-12 fps. Also when i checked some 5.4 documentations i found this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/5/0f5816763c2b3d3a9b648aeb500223852c9e2d25.jpeg)

1. Maybe this new change is creating the problem on low end devices As usual the problem is only on dev build. Shipping build works fine on every supported device

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 6, 2024, 10:26am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/2 "2024-08-06T10:26:28Z")

</div>

It’s not the ‘wait for task’ that’s taking a long time, it’s what the system is waiting for, during that gap.

You’ll need to look at other channels in the dump to find out what that task is waiting for… 🙂

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 6, 2024, 2:44pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/3 "2024-08-06T14:44:00Z")

</div>

So what is making this lag so much in a blank new level and only in development build ?I have also tested new blank projects that i get from my friends and the problem is same. It only happening in 5.4.3, in 5.3 it’s working perfect.

Have you checked the .utrace file in your pc?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 6, 2024, 3:41pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/4 "2024-08-06T15:41:50Z")

</div>

Every time I see that wait, I also see

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/e/77e3571a84ae716a255c5a61579e4f80e28fc137.png)

I have no idea what EndFlushResourcesRHI is, but that’s what it’s waiting for

> [@EndFlushResourcesRHI? What is it and why is it spiking some frames?](https://forums.unrealengine.com/t/endflushresourcesrhi-what-is-it-and-why-is-it-spiking-some-frames/1609430):
>
> Hi all, I have some spike frames while the camera zooms out of moves with high MS being caused by “EndFlushResourcesRHI”. Unfortunately I’m not able to find what this is for the life of me to fix the issue. I have reduced the draw calls, triangles and rendering settings with no noticeable effect. Noting this is on Android, meaning I don’t have visibility on GPU through Unreal Insights. Full read out for a frame for reference: Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 8, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/5 "2024-08-08T15:45:14Z")

</div>

So what should I do now. I didn’t know how can i fix this issue. I need the development build for optimization and quick launch on devices😣.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 8, 2024, 4:53pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/6 "2024-08-08T16:53:45Z")

</div>

If it is that problem, you have to work around it, unfortunately, it won’t be patched yet 🤔

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [August 8, 2024, 8:56pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/7 "2024-08-08T20:56:31Z")

</div>

Heya! Which device and OS are you operating on? Our team is attempting to repro.

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 9, 2024, 3:42am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/8 "2024-08-09T03:42:18Z")

</div>

There are few others also but the main minimum end device I am targeting is this

 ![Screenshot_2024-08-09-09-09-22-59_fc704e6b13c4fb26bf5e411f75da84f2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/c/14cd0f291637cc55527ff970bb0291f10c0b8c22.jpeg)

Also I am operating on Windows 11  
These are my pc specs if required  
Rtx 3060  
AMD Ryzen 7 5800H

The problem according to me is not in operating machine as I have tested development apks build on different machines and got the same results

Let me know if you didn’t get the exact information out of it🙂.

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 11, 2024, 4:14pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/9 "2024-08-11T16:14:36Z")

</div>

Any Updates?

---

<div class="post-metadata">

**Author:** ![11TheSaver11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@11TheSaver11](https://forums.unrealengine.com/u/11TheSaver11)\
**Post date:** [August 14, 2024, 9:27am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/10 "2024-08-14T09:27:00Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/d/35def71437c6c7381092afd8cbd99831c749c166.jpeg)

1. What is RHIT and why is it loading my phone?

2. _[16:18]_

RHIT: 100ms

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 14, 2024, 9:39am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/11 "2024-08-14T09:39:01Z")

</div>

It is because of wait for task same as Mine.

 ![WhatsApp Image 2024-07-24 at 17.03.18_f9c3b993](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/0/7008979de215f206a543836bb4d2e912e5488a20.jpeg)

---

<div class="post-metadata">

**Author:** ![MadaraAlmighty](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/madaraalmighty/32/1122034_2.png) [@MadaraAlmighty](https://forums.unrealengine.com/u/MadaraAlmighty)\
**Post date:** [August 14, 2024, 11:36am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/12 "2024-08-14T11:36:46Z")

</div>

I spent 8 hours to find the cause of this FPS drop. Even when disabling all the rendering features for mobile it still fails to get to 60FPS. It was in 60FPS with all these features turned on

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [August 14, 2024, 3:34pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/13 "2024-08-14T15:34:53Z")

</div>

> [@Hariomjangra](#):
>
> Any Updates?

The team has a fix for this issue—it’s slated for the next hotfix!

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [August 15, 2024, 6:59am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/14 "2024-08-15T06:59:01Z")

</div>

Thankyou

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [September 2, 2024, 1:14pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/15 "2024-09-02T13:14:21Z")

</div>

Still the issue is there 🙁

---

<div class="post-metadata">

**Author:** ![snowy0110](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@snowy0110](https://forums.unrealengine.com/u/snowy0110)\
**Post date:** [October 17, 2024, 8:09am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/16 "2024-10-17T08:09:59Z")

</div>

Could you share commit SHA with us for that fix? I would like to try it out, I have POCO X3 phone (target hardware for my project) and on non-shipping builds I have the same experience as OP

---

<div class="post-metadata">

**Author:** ![11TheSaver11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@11TheSaver11](https://forums.unrealengine.com/u/11TheSaver11)\
**Post date:** [October 18, 2024, 7:09am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/17 "2024-10-18T07:09:23Z")

</div>

Problem don’t fixed in unreal 5.4.4 and 5.5 (blank project)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/5/5d55895302897d225d64cf8a697ba5c4b2ab5348.jpeg)

---

<div class="post-metadata">

**Author:** ![11TheSaver11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@11TheSaver11](https://forums.unrealengine.com/u/11TheSaver11)\
**Post date:** [October 19, 2024, 10:23am UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/18 "2024-10-19T10:23:56Z")

</div>

Fix this please!!

---

<div class="post-metadata">

**Author:** ![Hariomjangra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hariomjangra/32/967493_2.png) [@Hariomjangra](https://forums.unrealengine.com/u/Hariomjangra)\
**Post date:** [November 3, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/wait-for-task-taking-too-long-in-development-build/1962909/19 "2024-11-03T16:08:03Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/f/7ef5d2f02e565de6191ec7b920a5eb9ad39f75a1.png)  
Still Waiting for the Fix It is creating a lot of Problem in debugging the Game.  
[20241103\_213259.utrace](https://forums.unrealengine.com/uploads/short-url/sGWY072PpixxV4hRo90fBuQT7vQ.utrace) (19.1 MB)
