# After suspending and resuming the packaged game on Android, the framerate is cut in half. I need help diagnosing what is happening.

**URL:** <https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292>\
**Category:** Mobile\
**Tags:** Frame-Rate, performance-issues, Android-Packaging, vulkan, unreal-engine, Performance, Performance-Profiling, Android, question\
**Created:** [January 27, 2024, 12:39pm UTC](https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292 "2024-01-27T12:39:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorosz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorosz](https://forums.unrealengine.com/u/dorosz)\
**Post date:** [January 27, 2024, 12:39pm UTC](https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292/1 "2024-01-27T12:39:10Z")

</div>

All my projects packaged and installed on device will run at 60 FPS, but then drop to 30 FPS when I sleep / resume the device. I have a newly created blank project to test, with a level map that has no actors or assets, and it’s still happening.

I have no idea what is going wrong or how to fix it. Does anyone know what it might be?

Device: Pixel 6 Pro, Android 14

---

<div class="post-metadata">

**Author:** ![dorosz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorosz](https://forums.unrealengine.com/u/dorosz)\
**Post date:** [January 27, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292/2 "2024-01-27T13:35:39Z")

</div>

I got some insights frames before and after the framerate drop

Before Sleep / Resume:

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

After:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/6/f56726dc6f77c3a0f10b5512d7d88af76b6dcd47.png)

Any ideas what to look at? I noticed that “EndFlushResourcesRHI” jumps from 11ms to 50ms. No idea if that’s part of the cause.

---

<div class="post-metadata">

**Author:** ![dorosz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dorosz](https://forums.unrealengine.com/u/dorosz)\
**Post date:** [January 27, 2024, 5:28pm UTC](https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292/3 "2024-01-27T17:28:36Z")

</div>

Apparently this issue had to do with using Vulkan as the shader RHI. I switched to OpenGL and it worked fine. No drop in FPS.

Has anyone successfully created a Vulkan project?

---

<div class="post-metadata">

**Author:** ![I.PUBG.I](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I.PUBG.I](https://forums.unrealengine.com/u/I.PUBG.I)\
**Post date:** [February 22, 2024, 9:39pm UTC](https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292/4 "2024-02-22T21:39:42Z")

</div>

Basically UE5 limit the game to 30fps to keep the experience smooth. I know it is stupid. But it is what it is. Give me your discord account so i help you tomorrow. Then if we find a solution I or you post it here for others.

---

<div class="post-metadata">

**Author:** ![Emokee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Emokee](https://forums.unrealengine.com/u/Emokee)\
**Post date:** [August 2, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/after-suspending-and-resuming-the-packaged-game-on-android-the-framerate-is-cut-in-half-i-need-help-diagnosing-what-is-happening/1646292/5 "2024-08-02T13:16:06Z")

</div>

Late answer, but after digging into this issue a lot, I found a solution (though I’m not proud of it, it works).

The concept is to add a lifecycle application component in your Player Controller and bind it to the “Application Has Reactivated” delegate event. On reactivation, add a delay (0.3 seconds), send a command (Execute Command blueprint) with `r.VSync 1`, then add another delay (0.3 seconds), and send a command with `r.VSync 0`.

The delays are important :'(.

I’m sorry, it’s a terrible solution, but at least I get my FPS back.

> **[UE5 Android Vulkan Issue - back from resume - 30fps posted by anonymous |...](https://blueprintue.com/blueprint/dqt5nf40/)**
>
> No description provided
