# What are the performance implications of not using UBOs on Mobile for GPU Scene

**URL:** <https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, Rendering, question, CPP\
**Created:** [October 15, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671 "2024-10-15T15:02:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameerad2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameerad2001](https://forums.unrealengine.com/u/sameerad2001)\
**Post date:** [October 15, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/1 "2024-10-15T15:02:56Z")

</div>

I was reading unreal engine 5.4’s release notes and it mentioned that on mobile when GPU scene is enabled, UBOs will be used. It mentioned that if UBO support is not present it will fall back on using the PC GPU scene.

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

I wanted to know what the performance implications of not using UBOs would be on mobile such that the PC GPU scene is used.

---

<div class="post-metadata">

**Author:** ![Apachi\_max](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apachi\_max](https://forums.unrealengine.com/u/Apachi_max)\
**Post date:** [December 11, 2024, 7:29pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/2 "2024-12-11T19:29:59Z")

</div>

It will render an empty scene basically. For example in my case with android 10 vulkan version 1.1.87 it just skips all geometry and scene appears empty with only light being visible. Even though it shows that it renders something in stat unit by drawcalls. Btw GPU scene never worked well. Many of my fellow game developers of mobile games mentioned that they had to disable it due to insane number of crashes from production related to it.

---

<div class="post-metadata">

**Author:** ![Apachi\_max](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apachi\_max](https://forums.unrealengine.com/u/Apachi_max)\
**Post date:** [December 11, 2024, 7:31pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/3 "2024-12-11T19:31:45Z")

</div>

Fyi it seems to only work fine only for the most recent android devices and maybe iphone 16

---

<div class="post-metadata">

**Author:** ![sameerad2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameerad2001](https://forums.unrealengine.com/u/sameerad2001)\
**Post date:** [December 30, 2024, 4:10pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/4 "2024-12-30T16:10:24Z")

</div>

Yes, when using the GPU scene I noticed that **static mesh objects** were not rendered correctly(Instanced objects seem fine).

Using RDC I found that a cube which should be rendered in front of the camera was being rendered behind it. It seems that it’s not the GPU scene that is the problem it is the UBO usage that causes this issue. That’s why I asked this question, why use UBOs in the first place if they screw up the render. What performance benefit do they provide?

Also I am testing on an S23 running android 14 with VK 1.3.128

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [December 30, 2024, 4:54pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/5 "2024-12-30T16:54:31Z")

</div>

GPU scenes reduce CPU usage, so the CPU can be used for other things (like physics) and/or sleep more and consume less battery.

Mobile devices/chipsets are notorious for being much buggier than their desktop counterparts, so I would expect all mobile support features to be for experimentation for the first two years, and only turn it on for a release game after there’s broad market compatibility. Also, if I can test on specific devices with specific minimum OS versions, maybe I could have a device whitelist for popular, well supported devices, where I know it will work. That optimization of course takes labor for testing and support, so I’d have to profile the game to make sure it’s worth it before I committed to that.

---

<div class="post-metadata">

**Author:** ![sameerad2001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sameerad2001](https://forums.unrealengine.com/u/sameerad2001)\
**Post date:** [February 11, 2025, 5:14pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/6 "2025-02-11T17:14:35Z")

</div>

The PC GPUScene makes use of 2 SSBOs, one for instance data and another for primitive data. The primitive data in the SSBO has a stride of 42(can’t be bothered to lookup the stride of the instance data).

The GPUScene on mobile platforms that support uniform views make use of a single UBO with interleaved instance and primitive data. The primitive data in the UBO has a stride of 32 and the instance data has a stride of 16.

The benefit of using the second option in terms of performance is that data is accessed more efficiently.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 13, 2025, 5:15pm UTC](https://forums.unrealengine.com/t/what-are-the-performance-implications-of-not-using-ubos-on-mobile-for-gpu-scene/2069671/7 "2025-03-13T17:15:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
