# UMG widgets big performance impact

**URL:** <https://forums.unrealengine.com/t/umg-widgets-big-performance-impact/472309>\
**Category:** UI\
**Tags:** fps, unreal-engine, Performance, slow, Widget, question, UMG\
**Created:** [October 2, 2020, 4:23pm UTC](https://forums.unrealengine.com/t/umg-widgets-big-performance-impact/472309 "2020-10-02T16:23:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frix](https://forums.unrealengine.com/u/Frix)\
**Post date:** [October 2, 2020, 4:23pm UTC](https://forums.unrealengine.com/t/umg-widgets-big-performance-impact/472309/1 "2020-10-02T16:23:41Z")

</div>

Greetings,

In my 2D game there can be 100+ enemies on the screen. After I extended my Enemy actor blueprint with a healthbar (UMG Widget) I noticed a staggering drop in fps from 100 to about 40!

As a simplified test I created a widget blueprint with nothing but a button in it. Next I created a blank actor blueprint to which I added the button widget.  
In the level blueprint I used a loop to spawn 200 of these, causing the fps to drop significantly.

What could be causing this slowdown?

Random extra info:  
Setting the UMG widget component to ‘Hidden in game’ restores the FPS.

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [October 2, 2020, 5:34pm UTC](https://forums.unrealengine.com/t/umg-widgets-big-performance-impact/472309/2 "2020-10-02T17:34:54Z")

</div>

If you just need a healthbar you can use a billboard material and animate the progress.

---

<div class="post-metadata">

**Author:** ![Frix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frix](https://forums.unrealengine.com/u/Frix)\
**Post date:** [October 2, 2020, 6:11pm UTC](https://forums.unrealengine.com/t/umg-widgets-big-performance-impact/472309/3 "2020-10-02T18:11:39Z")

</div>

Thanks for your suggestion. I’ll be giving it a try as soon as I can.
